This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import digitalio | |
import analogio | |
import audioio | |
import audiocore | |
from wiichuck.nunchuk import Nunchuk | |
B_X = 0x01 | |
B_O = 0x02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from adafruit_circuitplayground import cp | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode | |
import usb_hid | |
import time | |
GREEN = (0,255,0) | |
RED = (255,0,0) | |
cp.pixels.brightness = .1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
import busio | |
from adafruit_seesaw.seesaw import Seesaw | |
from adafruit_seesaw.digitalio import DigitalIO | |
from adafruit_seesaw.neopixel import NeoPixel | |
import struct | |
_ENCODER_BASE = 0x11 | |
_ENCODER_POSITION = 0x30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# boot.py | |
import usb_hid | |
# This is only one example of a gamepad descriptor. | |
# It may not suit your needs, or be supported on your host computer. | |
GAMEPAD_REPORT_DESCRIPTOR = bytes(( | |
0x05, 0x01, # Usage Page (Generic Desktop Ctrls) | |
0x09, 0x05, # Usage (Game Pad) | |
0xA1, 0x01, # Collection (Application) |
OlderNewer