github.com/aykevl/tinygo@v0.5.0/src/machine/machine.go (about) 1 package machine 2 3 type GPIOConfig struct { 4 Mode GPIOMode 5 } 6 7 type GPIO struct { 8 Pin uint8 9 } 10 11 func (p GPIO) High() { 12 p.Set(true) 13 } 14 15 func (p GPIO) Low() { 16 p.Set(false) 17 } 18 19 type PWM struct { 20 Pin uint8 21 } 22 23 type ADC struct { 24 Pin uint8 25 }