mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
reelboard: support Reel Board (nrf52840 dev board)
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
committed by
Ayke van Laethem
parent
8f35a4711a
commit
8325f2a53d
@@ -0,0 +1,35 @@
|
||||
// +build reelboard
|
||||
|
||||
package machine
|
||||
|
||||
const HasLowFrequencyCrystal = true
|
||||
|
||||
// LEDs on the reel board
|
||||
const (
|
||||
LED = LED1
|
||||
LED1 = LED_YELLOW
|
||||
LED2 = LED_RED
|
||||
LED3 = LED_GREEN
|
||||
LED4 = LED_BLUE
|
||||
LED_RED = 11
|
||||
LED_GREEN = 12
|
||||
LED_BLUE = 41
|
||||
LED_YELLOW = 13
|
||||
)
|
||||
|
||||
// User "a" button on the reel board
|
||||
const (
|
||||
BUTTON = 7
|
||||
)
|
||||
|
||||
// UART pins
|
||||
const (
|
||||
UART_TX_PIN = 6
|
||||
UART_RX_PIN = 8
|
||||
)
|
||||
|
||||
// I2C pins
|
||||
const (
|
||||
SDA_PIN = 26
|
||||
SCL_PIN = 27
|
||||
)
|
||||
Reference in New Issue
Block a user