diff --git a/ADC.py b/ADC.py new file mode 100644 index 0000000..42fd066 --- /dev/null +++ b/ADC.py @@ -0,0 +1,8 @@ +from gpiozero import MCP3008 +import time + +pot = MCP3008(7) + +while True: + print(pot.value * 100) + time.sleep(1)