This commit is contained in:
Kattni Rembor 2018-05-29 14:52:24 -04:00
parent e0e084e6b0
commit d11026dc22
4 changed files with 13 additions and 11 deletions

View file

@ -100,6 +100,7 @@ def h2rgb(colour_hue):
return ret * 17 return ret * 17
# pylint: disable=global-statement
def wave_setup(): def wave_setup():
global wave global wave

View file

@ -4,11 +4,11 @@
# Acknowledgement to info at http://atariage.com/forums/topic/177286 # Acknowledgement to info at http://atariage.com/forums/topic/177286
# -any-interest-in-nes-rob-homebrews/ and Limor Ladyada Fried # -any-interest-in-nes-rob-homebrews/ and Limor Ladyada Fried
import time
import gc
from digitalio import DigitalInOut, Direction from digitalio import DigitalInOut, Direction
from adafruit_circuitplayground.express import cpx from adafruit_circuitplayground.express import cpx
import board import board
import time
import gc
# Commands, each 8 bit command is preceded by the 5 bit Init sequence # Commands, each 8 bit command is preceded by the 5 bit Init sequence
Init = [0, 0, 0, 1, 0] # This must precede any command Init = [0, 0, 0, 1, 0] # This must precede any command

View file

@ -1,9 +1,9 @@
import time
from busio import I2C from busio import I2C
from adafruit_seesaw.seesaw import Seesaw from adafruit_seesaw.seesaw import Seesaw
from adafruit_seesaw.pwmout import PWMOut from adafruit_seesaw.pwmout import PWMOut
from adafruit_motor import motor from adafruit_motor import motor
import board import board
import time
# Create seesaw object # Create seesaw object
i2c = I2C(board.SCL, board.SDA) i2c = I2C(board.SCL, board.SDA)

View file

@ -1,12 +1,13 @@
# Code for the Trash Panda tutorial with Adafruit Crickit and Circuit Playground Express 5/2018 Dano Wall # Code for the Trash Panda tutorial with Adafruit Crickit and Circuit Playground Express
# 5/2018 Dano Wall
from digitalio import DigitalInOut, Direction, Pull import time
from digitalio import DigitalInOut, Direction
from adafruit_seesaw.seesaw import Seesaw from adafruit_seesaw.seesaw import Seesaw
from adafruit_seesaw.pwmout import PWMOut from adafruit_seesaw.pwmout import PWMOut
from adafruit_motor import servo from adafruit_motor import servo
from busio import I2C from busio import I2C
import board import board
import time
# Create seesaw object # Create seesaw object
i2c = I2C(board.SCL, board.SDA) i2c = I2C(board.SCL, board.SDA)