Commit 54bd61a2 authored by Adam Blank's avatar Adam Blank
Browse files

Update code.py

parent 37c683b3
No related merge requests found
Showing with 17 additions and 15 deletions
+17 -15
try:
import board
import neopixel
from adafruit_apds9960.apds9960 import APDS9960
import touchio
import board
import neopixel
from adafruit_apds9960.apds9960 import APDS9960
import touchio
from src.interact import run
from src.interact import run
# Setup board
i2c = board.I2C()
apds = APDS9960(i2c)
pixels = neopixel.NeoPixel(board.NEOPIXEL, 2)
touch = touchio.TouchIn(board.TOUCH2)
apds.enable_proximity = True
print("Loaded Trinkey...")
# Setup board
i2c = board.I2C()
apds = APDS9960(i2c)
pixels = neopixel.NeoPixel(board.NEOPIXEL, 2)
touch = touchio.TouchIn(board.TOUCH2)
apds.enable_proximity = True
print("Loaded Trinkey...")
# Call our run function
run(apds, pixels, touch)
\ No newline at end of file
# Call our run function
run(apds, pixels, touch)
except ModuleNotFoundError:
pass
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