Skip to content

Commit 1a67795

Browse files
committed
examples/usb-midi: remove serial communication from MIDI example
Signed-off-by: deadprogram <[email protected]>
1 parent c70daa2 commit 1a67795

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/examples/usb-midi/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ package main
22

33
import (
44
"machine"
5-
"machine/usb/midi"
5+
"machine/usb/adc/midi"
66

7-
"encoding/hex"
87
"time"
98
)
109

@@ -16,12 +15,11 @@ func main() {
1615
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
1716

1817
button := machine.BUTTON
19-
button.Configure(machine.PinConfig{Mode: machine.PinInputPullup})
18+
button.Configure(machine.PinConfig{Mode: machine.PinInputPulldown})
2019

2120
m := midi.Port()
2221
m.SetHandler(func(b []byte) {
2322
led.Set(!led.Get())
24-
println(hex.EncodeToString(b))
2523
m.Write(b)
2624
})
2725

0 commit comments

Comments
 (0)