Skip to content

Commit

Permalink
ADC file uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Irfan committed Mar 29, 2023
0 parents commit 50da34a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ADC.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from gpiozero import MCP3008
import time

pot = MCP3008(7)

while True:
print(pot.value * 100)
time.sleep(1)

0 comments on commit 50da34a

Please sign in to comment.