You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
277B

  1. #include <USBHost_t36.h>
  2. USBHost myusb;
  3. USBHub hub1(myusb);
  4. USBHub hub2(myusb);
  5. AntPlus ant1(myusb);
  6. void setup() {
  7. while (!Serial) ; // wait for Arduino Serial Monitor
  8. Serial.println("Ant+ USB Test");
  9. myusb.begin();
  10. ant1.begin();
  11. }
  12. void loop() {
  13. myusb.Task();
  14. }