aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/board_digispark.go
blob: f380aae85c642c9ec77696060e5e72a2491d01e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//go:build digispark

package machine

// Return the current CPU frequency in hertz.
func CPUFrequency() uint32 {
	return 16000000
}

const (
	P0 Pin = PB0
	P1 Pin = PB1
	P2 Pin = PB2
	P3 Pin = PB3
	P4 Pin = PB4
	P5 Pin = PB5

	LED = P1
)