blob: 01f9570ba071f575b5453c04ea0ff6eee96476bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
//go:build arduino_leonardo
package machine
// Return the current CPU frequency in hertz.
func CPUFrequency() uint32 {
return 16000000
}
// Digital pins, marked as plain numbers on the board.
const (
D0 = PD2 // RX
D1 = PD3 // TX
D2 = PD1
D3 = PD0
D4 = PD4
D5 = PC6
D6 = PD7
D7 = PE6
D8 = PB4
D9 = PB5
D10 = PB6
D11 = PB7
D12 = PD6
D13 = PC7
)
// LED on the Arduino
const LED Pin = D13
// ADC on the Arduino
const (
ADC0 Pin = PF7
ADC1 Pin = PF6
ADC2 Pin = PF5
ADC3 Pin = PF4
ADC4 Pin = PF1
ADC5 Pin = PF0
)
|