github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/dac/pyportal.go (about) 1 //go:build pyportal 2 3 package main 4 5 import ( 6 "machine" 7 ) 8 9 func init() { 10 enable := machine.SPK_SD 11 enable.Configure(machine.PinConfig{Mode: machine.PinOutput}) 12 enable.Set(true) 13 }