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

     1  // +build pca10056
     2  
     3  package machine
     4  
     5  const HasLowFrequencyCrystal = true
     6  
     7  // LEDs on the pca10056
     8  const (
     9  	LED  = LED1
    10  	LED1 = 13
    11  	LED2 = 14
    12  	LED3 = 15
    13  	LED4 = 16
    14  )
    15  
    16  // Buttons on the pca10056
    17  const (
    18  	BUTTON  = BUTTON1
    19  	BUTTON1 = 11
    20  	BUTTON2 = 12
    21  	BUTTON3 = 24
    22  	BUTTON4 = 25
    23  )
    24  
    25  // UART pins
    26  const (
    27  	UART_TX_PIN = 6
    28  	UART_RX_PIN = 8
    29  )
    30  
    31  // ADC pins
    32  const (
    33  	ADC0 = 3
    34  	ADC1 = 4
    35  	ADC2 = 28
    36  	ADC3 = 29
    37  	ADC4 = 30
    38  	ADC5 = 31
    39  )
    40  
    41  // I2C pins
    42  const (
    43  	SDA_PIN = 26 // P0.26
    44  	SCL_PIN = 27 // P0.27
    45  )
    46  
    47  // SPI pins
    48  const (
    49  	SPI0_SCK_PIN  = 47 // P1.15
    50  	SPI0_MOSI_PIN = 45 // P1.13
    51  	SPI0_MISO_PIN = 46 // P1.14
    52  )