Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1225

Python • Re: MCP3008 responds only to channel 0/1

$
0
0
Perhaps you try these changed code lines:

Code:

tmp = MCP3008(channel=channel) # change this linedef meetmcp(channel):    tmp.channel=channel  # change this line    waarde = (tmp.value * 3.3-0.5)*100                print (str(round(waarde,1)))    

Statistics: Posted by ghp — Mon Feb 03, 2025 9:22 pm



Viewing all articles
Browse latest Browse all 1225

Trending Articles