Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
selfisch committed Oct 29, 2017
1 parent aa6d67b commit 2fecba9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@
dname = os.path.dirname(abspath)
os.chdir(dname)

global LedPin
LedPin = 12

# lege das conf Verzeichnis an, falls es nicht existiert
if not os.path.exists('conf'):
os.mkdir('conf')

path = os.path.dirname(os.path.realpath(__file__))

def gpio_setup():
LedPin = 12
global p
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
GPIO.setup(LedPin, GPIO.OUT) # Set LedPin's mode is output
Expand Down

0 comments on commit 2fecba9

Please sign in to comment.