diff --git a/.pins.txt.swp b/.pins.txt.swp new file mode 100644 index 0000000000000000000000000000000000000000..20ac69af186b2994d1f46d857e61c430bdf1b686 Binary files /dev/null and b/.pins.txt.swp differ diff --git a/bcm.py b/bcm.py index 223ecbe5737e43fefe50d3415079bb71cba0e167..79b4fd3a3d21e5e84089e134165a7944b44d8d46 100644 --- a/bcm.py +++ b/bcm.py @@ -1,12 +1,16 @@ #!/usr/bin/env python2 import RPi.GPIO as g +import time g.setmode(g.BCM) g.setup(17, g.IN) g.setup(18, g.OUT) -input_value = g.input(17) -print input_value +while True: + print g.input(17) + time.sleep(0.1) + +# print input_value #g.output(18, g.HIGH) diff --git a/test.py b/machine.py similarity index 100% rename from test.py rename to machine.py diff --git a/pins.txt b/pins.txt new file mode 100644 index 0000000000000000000000000000000000000000..8ae22133da112ca1cfe4d0033eb9285794fdfca9 --- /dev/null +++ b/pins.txt @@ -0,0 +1,10 @@ +10 pins for lasers +1 pin for start +6 for direct display + +Character Display +1 | VSS | GND +2 | VDD | +5V +3 | V0 | Contrast +... +