github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_pca10031.go (about) 1 //go:build pca10031 2 3 // pca10031 is a nrf51 based dongle, intended for use in wireless applications. 4 // 5 // https://infocenter.nordicsemi.com/pdf/nRF51_Dongle_UG_v1.0.pdf 6 package machine 7 8 // The pca10031 has a 32kHz crystal on board. 9 const HasLowFrequencyCrystal = true 10 11 // LED on the pca10031 12 const ( 13 LED1 = LED_RED 14 LED2 = LED_GREEN 15 LED3 = LED_BLUE 16 LED_RED = P0_21 17 LED_GREEN = P0_22 18 LED_BLUE = P0_23 19 LED = LED_RED 20 ) 21 22 var DefaultUART = UART0 23 24 // UART pins 25 const ( 26 UART_TX_PIN = P0_09 27 UART_RX_PIN = P0_11 28 ) 29 30 // I2C pins (disabled) 31 const ( 32 SDA_PIN = NoPin 33 SCL_PIN = NoPin 34 ) 35 36 // SPI pins (unused) 37 const ( 38 SPI0_SCK_PIN = NoPin 39 SPI0_SDO_PIN = NoPin 40 SPI0_SDI_PIN = NoPin 41 )