github.com/aykevl/tinygo@v0.5.0/src/machine/board_nrf52840-mdk.go (about) 1 // +build nrf52840_mdk 2 3 package machine 4 5 const HasLowFrequencyCrystal = true 6 7 // LEDs on the nrf52840-mdk (nRF52840 dev board) 8 const ( 9 LED = LED_GREEN 10 LED_GREEN = 22 11 LED_RED = 23 12 LED_BLUE = 24 13 ) 14 15 // UART pins 16 const ( 17 UART_TX_PIN = 20 18 UART_RX_PIN = 19 19 ) 20 21 // I2C pins (unused) 22 const ( 23 SDA_PIN = 0xff 24 SCL_PIN = 0xff 25 ) 26 27 // SPI pins (unused) 28 const ( 29 SPI0_SCK_PIN = 0 30 SPI0_MOSI_PIN = 0 31 SPI0_MISO_PIN = 0 32 )