Commit 1793d21a authored by Hugo Hornquist's avatar Hugo Hornquist

changes

parent 94057a6e
File added
#!/usr/bin/env python2 #!/usr/bin/env python2
import RPi.GPIO as g import RPi.GPIO as g
import time
g.setmode(g.BCM) g.setmode(g.BCM)
g.setup(17, g.IN) g.setup(17, g.IN)
g.setup(18, g.OUT) g.setup(18, g.OUT)
input_value = g.input(17) while True:
print input_value print g.input(17)
time.sleep(0.1)
# print input_value
#g.output(18, g.HIGH) #g.output(18, g.HIGH)
10 pins for lasers
1 pin for start
6 for direct display
Character Display
1 | VSS | GND
2 | VDD | +5V
3 | V0 | Contrast
...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment