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