mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-21 16:45:04 -05:00
Update Test example slightly
This commit is contained in:
parent
6bacbaf537
commit
c70cf5fef6
@ -17,8 +17,8 @@ void setup()
|
||||
while (!Serial) ; // wait for Arduino Serial Monitor
|
||||
Serial.println("USB Host Testing");
|
||||
myusb.begin();
|
||||
keyboard1.attachPress(press);
|
||||
keyboard2.attachPress(press);
|
||||
keyboard1.attachPress(OnPress);
|
||||
keyboard2.attachPress(OnPress);
|
||||
midi1.setHandleNoteOff(OnNoteOff);
|
||||
midi1.setHandleNoteOn(OnNoteOn);
|
||||
midi1.setHandleControlChange(OnControlChange);
|
||||
@ -32,9 +32,11 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
void press(int key)
|
||||
void OnPress(int key)
|
||||
{
|
||||
Serial.print("key ");
|
||||
Serial.print("key '");
|
||||
Serial.print((char)key);
|
||||
Serial.print("' ");
|
||||
Serial.println(key);
|
||||
//Serial.print("key ");
|
||||
//Serial.print((char)keyboard1.getKey());
|
||||
|
Loading…
Reference in New Issue
Block a user