mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
usb: rename callback to handler to keep consistent
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -15,7 +15,7 @@ func main() {
|
||||
button.Configure(machine.PinConfig{Mode: machine.PinInputPullup})
|
||||
|
||||
m := midi.New()
|
||||
m.SetCallback(func(b []byte) {
|
||||
m.SetHandler(func(b []byte) {
|
||||
led.Set(!led.Get())
|
||||
fmt.Printf("% X\r\n", b)
|
||||
m.Write(b)
|
||||
|
||||
Reference in New Issue
Block a user