mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
28 lines
329 B
Go
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) {
|
|
}
|