github.com/aykevl/tinygo@v0.5.0/src/machine/board_pca10031.go (about)

     1  // +build nrf51,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  	LED       = LED_RED
    14  	LED1      = LED_RED
    15  	LED2      = LED_GREEN
    16  	LED3      = LED_BLUE
    17  	LED_RED   = 21
    18  	LED_GREEN = 22
    19  	LED_BLUE  = 23
    20  )
    21  
    22  // UART pins
    23  const (
    24  	UART_TX_PIN = 9
    25  	UART_RX_PIN = 11
    26  )
    27  
    28  // I2C pins (disabled)
    29  const (
    30  	SDA_PIN = 0xff
    31  	SCL_PIN = 0xff
    32  )
    33  
    34  // SPI pins (unused)
    35  const (
    36  	SPI0_SCK_PIN  = 0
    37  	SPI0_MOSI_PIN = 0
    38  	SPI0_MISO_PIN = 0
    39  )