This file contains hidden or 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 time | |
| import board | |
| import time | |
| import board | |
| import neopixel | |
| from digitalio import DigitalInOut, Direction, Pull | |
| import touchio | |
| touch_pad = board.A0 # the ~1 pin | |
| high_threshold = 4059 |
This file contains hidden or 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 time | |
| import board | |
| import time | |
| import board | |
| import neopixel | |
| from digitalio import DigitalInOut, Direction, Pull | |
| import touchio | |
| touch_pad = board.A0 # the ~1 pin | |
| high_threshold = 4059 |
This file contains hidden or 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 time | |
| import board | |
| import neopixel | |
| pixel_pin = board.D2 #the ring data is connected to this pin | |
| num_pixels = 16 #number of leds pixels on the ring | |
| pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False) | |
This file contains hidden or 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 time | |
| import board | |
| import neopixel | |
| from digitalio import DigitalInOut, Direction, Pull | |
| switch = DigitalInOut(board.D3) | |
| switch.direction = Direction.INPUT | |
| switch.pull = Pull.UP |
This file contains hidden or 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 time | |
| import board | |
| import neopixel | |
| pixel_pin = board.D2 #the ring data is connected to this pin | |
| num_pixels = 16 #number of leds pixels on the ring | |
| pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False) | |
This file contains hidden or 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
| let screen = 0 | |
| let img; | |
| let sizeVar = 50 | |
| let sizeChange = 1 | |
| let myFont; | |
| let votes1 = 0 | |
| let votes2 = 0 | |
| let betbutton; | |
| let missionbutton; |
This file contains hidden or 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 time | |
| import board | |
| import neopixel | |
| pixel_pin = board.D2 #the ring data is connected to this pin | |
| num_pixels = 16 #number of leds pixels on the ring | |
| pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False) | |
| RED = (255, 0, 0) #RGB |
This file contains hidden or 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 time | |
| import board | |
| import neopixel | |
| pixel_pin = board.D2 #the ring data is connected to this pin | |
| num_pixels = 16 #number of leds pixels on the ring | |
| pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False) |
This file contains hidden or 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
| let socket; | |
| let plane1, plane2; | |
| function setup() { | |
| createCanvas(400, 400); | |
| // Connect to server | |
| socket = io.connect('http://localhost:3000'); | |
| // Listen for plane position updates |
NewerOlder