Browse Source

examples: replace fmt with encoding/hex in usb-midi example

Signed-off-by: deadprogram <ron@hybridgroup.com>
pull/3665/head
deadprogram 2 years ago
committed by Ron Evans
parent
commit
48ef68dd86
  1. 5
      src/examples/usb-midi/main.go

5
src/examples/usb-midi/main.go

@ -1,9 +1,10 @@
package main
import (
"fmt"
"machine"
"machine/usb/midi"
"encoding/hex"
"time"
)
@ -20,7 +21,7 @@ func main() {
m := midi.Port()
m.SetHandler(func(b []byte) {
led.Set(!led.Get())
fmt.Printf("% X\r\n", b)
println(hex.EncodeToString(b))
m.Write(b)
})

Loading…
Cancel
Save