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