mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-14 13:15:00 -05:00
19 lines
277 B
C++
19 lines
277 B
C++
#include <USBHost_t36.h>
|
|
|
|
USBHost myusb;
|
|
USBHub hub1(myusb);
|
|
USBHub hub2(myusb);
|
|
AntPlus ant1(myusb);
|
|
|
|
void setup() {
|
|
while (!Serial) ; // wait for Arduino Serial Monitor
|
|
Serial.println("Ant+ USB Test");
|
|
myusb.begin();
|
|
ant1.begin();
|
|
|
|
}
|
|
|
|
void loop() {
|
|
myusb.Task();
|
|
}
|