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

     1  // +build avr,arduino
     2  
     3  package machine
     4  
     5  const CPU_FREQUENCY = 16000000
     6  
     7  // LED on the Arduino
     8  const LED = 13
     9  
    10  // ADC on the Arduino
    11  const (
    12  	ADC0 = 0
    13  	ADC1 = 1
    14  	ADC2 = 2
    15  	ADC3 = 3
    16  	ADC4 = 4 // Used by TWI for SDA
    17  	ADC5 = 5 // Used by TWI for SCL
    18  )
    19  
    20  // UART pins
    21  const (
    22  	UART_TX_PIN = 1
    23  	UART_RX_PIN = 0
    24  )