This commit is contained in:
Dan Halbert 2018-06-25 11:06:24 -04:00
parent d766a325f7
commit bf250bb237

View file

@ -1,13 +1,14 @@
from board import *
import busio
from adafruit_seesaw.seesaw import Seesaw
import time import time
myI2C = busio.I2C(SCL, SDA) import board
import busio
from adafruit_seesaw.seesaw import Seesaw
myI2C = busio.I2C(board.SCL, board.SDA)
ss = Seesaw(myI2C) ss = Seesaw(myI2C)
ss.pin_mode(15, ss.OUTPUT); ss.pin_mode(15, ss.OUTPUT)
while True: while True:
ss.digital_write(15, True) # turn the LED on (True is the voltage level) ss.digital_write(15, True) # turn the LED on (True is the voltage level)