mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
machine: split board definitions in separate files
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// +build nrf,pca10040
|
||||
|
||||
package machine
|
||||
|
||||
// LEDs on the PCA10040 (nRF52832 dev board)
|
||||
const (
|
||||
LED = LED1
|
||||
LED1 = 17
|
||||
LED2 = 18
|
||||
LED3 = 19
|
||||
LED4 = 20
|
||||
)
|
||||
|
||||
// Buttons on the PCA10040 (nRF52832 dev board)
|
||||
const (
|
||||
BUTTON = BUTTON1
|
||||
BUTTON1 = 13
|
||||
BUTTON2 = 14
|
||||
BUTTON3 = 15
|
||||
BUTTON4 = 16
|
||||
)
|
||||
Reference in New Issue
Block a user