Files
tinygo/src/machine/machine_dummy.go
T
Ayke van Laethem 62c4c5e90b go fmt
2018-08-17 23:23:20 +02:00

28 lines
329 B
Go

// +build !avr,!nrf
package machine
// Dummy machine package, filled with no-ops.
type GPIOMode uint8
const (
GPIO_INPUT = iota
GPIO_OUTPUT
)
// Fake LED numbers, for testing.
const (
LED = LED1
LED1 = 0
LED2 = 0
LED3 = 0
LED4 = 0
)
func (p GPIO) Configure(config GPIOConfig) {
}
func (p GPIO) Set(value bool) {
}