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 725B

123456789101112131415161718192021222324252627282930313233343536
  1. #define ARD_UTILS_DELAYMS
  2. #define ARD_UTILS_UTF8
  3. #include "ArdUtils/ArdUtils.h"
  4. #define ARD_USBKBD_AZERTY
  5. #define ARD_USBKBD_QWERTY
  6. #include "UsbKeyboard.h"
  7. #define ledPin 13
  8. void setup()
  9. {
  10. pinMode (ledPin, OUTPUT);
  11. digitalWrite (ledPin, HIGH);
  12. }
  13. void loop()
  14. {
  15. WAIT_USB;
  16. ArdUtils::delayMs(42);
  17. char* str = "abcdefghijklmnopqrstuvwxyz\nABCDEFGHIJKLMNOPQRSTUVWXYZ\n0123456789\n&\"\'(-_)=\n~#{[|`\\^@]}\n,;:!$\n?.<>/\n+-*/%\nµù§\néèçà\n";
  18. ArdUtils::utf8ToAscii(str);
  19. UsbKeyboard.setLayout("fr");
  20. UsbKeyboard.sendKeyStrokes(str);
  21. ArdUtils::delayMs(4000);
  22. UsbKeyboard.setLayout("us");
  23. UsbKeyboard.sendKeyStrokes(str);
  24. digitalWrite(ledPin, !digitalRead(ledPin));
  25. }