mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
26 lines
234 B
Go
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
|
|
}
|