github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_arduino_nano.go (about)

     1  //go:build arduino_nano
     2  
     3  package machine
     4  
     5  // Digital pins.
     6  const (
     7  	D0  = PD0 // RX0
     8  	D1  = PD1 // TX1
     9  	D2  = PD2
    10  	D3  = PD3
    11  	D4  = PD4
    12  	D5  = PD5
    13  	D6  = PD6
    14  	D7  = PD7
    15  	D8  = PB0
    16  	D9  = PB1
    17  	D10 = PB2
    18  	D11 = PB3
    19  	D12 = PB4
    20  	D13 = PB5
    21  )
    22  
    23  // LED on the Arduino
    24  const LED Pin = D13
    25  
    26  // ADC on the Arduino
    27  const (
    28  	ADC0 Pin = PC0
    29  	ADC1 Pin = PC1
    30  	ADC2 Pin = PC2
    31  	ADC3 Pin = PC3
    32  	ADC4 Pin = PC4 // Used by TWI for SDA
    33  	ADC5 Pin = PC5 // Used by TWI for SCL
    34  )
    35  
    36  // UART pins
    37  const (
    38  	UART_TX_PIN Pin = PD1
    39  	UART_RX_PIN Pin = PD0
    40  )