Files
tinygo/src/machine/machine.go
T
2018-09-20 21:39:45 +02:00

26 lines
234 B
Go

package machine
type GPIOConfig struct {
Mode GPIOMode
}
type GPIO struct {
Pin uint8
}
func (p GPIO) High() {
p.Set(true)
}
func (p GPIO) Low() {
p.Set(false)
}
type PWM struct {
Pin uint8
}
type ADC struct {
Pin uint8
}