mirror of
https://github.com/c0de-archive/pixoPython.git
synced 2024-12-22 13:22:40 +00:00
Setup board
This commit is contained in:
parent
ea4a4114d3
commit
0b4a52872b
12
board.py
Normal file
12
board.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import micropython_dotstar as dotstar
|
||||||
|
from machine import Pin, SPI
|
||||||
|
|
||||||
|
# Configure some globals, such as the LED board
|
||||||
|
TOTAL_DOTS = 256
|
||||||
|
DOTSTAR_CLOCK = Pin(18)
|
||||||
|
DOTSTAR_TX = Pin(19)
|
||||||
|
DOTSTAR_RX = Pin(17) # Note: This is unused as the LEDs don't send data back
|
||||||
|
|
||||||
|
# Setup the LED board
|
||||||
|
DOTSTAR_SPI = SPI(sck=DOTSTAR_CLOCK, mosi=DOTSTAR_TX, miso=DOTSTAR_RX)
|
||||||
|
BOARD = dotstar.DotStar(DOTSTAR_SPI, TOTAL_DOTS, brightness=0.2, auto_write=False)
|
Loading…
Reference in New Issue
Block a user