We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70daa2 commit 1a67795Copy full SHA for 1a67795
src/examples/usb-midi/main.go
@@ -2,9 +2,8 @@ package main
2
3
import (
4
"machine"
5
- "machine/usb/midi"
+ "machine/usb/adc/midi"
6
7
- "encoding/hex"
8
"time"
9
)
10
@@ -16,12 +15,11 @@ func main() {
16
15
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
17
18
button := machine.BUTTON
19
- button.Configure(machine.PinConfig{Mode: machine.PinInputPullup})
+ button.Configure(machine.PinConfig{Mode: machine.PinInputPulldown})
20
21
m := midi.Port()
22
m.SetHandler(func(b []byte) {
23
led.Set(!led.Get())
24
- println(hex.EncodeToString(b))
25
m.Write(b)
26
})
27
0 commit comments