Updated fetchprogram, ignores pycache, created ledtest with npn
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os, sys
|
||||
lib_path = os.path.abspath(os.path.join('..', 'modules'))
|
||||
lib_path = os.path.abspath(os.path.join('.', 'modules'))
|
||||
sys.path.append(lib_path)
|
||||
import hdc1000
|
||||
import weight
|
||||
|
||||
2
modules/.gitignore
vendored
Normal file
2
modules/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
__pycache__
|
||||
|
||||
17
testprograms/ledtest
Executable file
17
testprograms/ledtest
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
import sys
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setup(23, GPIO.OUT)
|
||||
|
||||
GPIO.output(23, 0)
|
||||
|
||||
while True:
|
||||
time.sleep(1)
|
||||
GPIO.output(23, 1)
|
||||
time.sleep(1)
|
||||
GPIO.output(23, 0)
|
||||
|
||||
Reference in New Issue
Block a user