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.

main.ino 291B

123456789101112131415161718192021
  1. #define ARD_UTILS_DELAYMS
  2. #include "ArdUtils/ArdUtils.h"
  3. #include "UsbRawHid.h"
  4. #define ledPin 13
  5. void setup()
  6. {
  7. pinMode (ledPin, OUTPUT);
  8. digitalWrite (ledPin, HIGH);
  9. }
  10. void loop()
  11. {
  12. WAIT_USB;
  13. ArdUtils::delayMs(1000);
  14. digitalWrite(ledPin, !digitalRead(ledPin));
  15. }