skizziks_53

halford88_arduino_sketch

Aug 20th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. /*
  2. This is an arduino sketch to demonstrate a custom library.
  3. Filename: reddit_library_morse_halford88.ino
  4. Reddit example: library creation for Morse function
  5. August 20, 2018
  6. */
  7.  
  8. #include <Morse_halford88.h>
  9.  
  10. Morse_halford88 morse(13); // --- I changed the name of the library to something unique
  11.  
  12. void setup()
  13. {
  14. morse.setUpValues();
  15. }
  16.  
  17. void loop()
  18. {
  19. morse.dot(); morse.dot(); morse.dot();
  20. morse.dash(); morse.dash(); morse.dash();
  21. morse.dot(); morse.dot(); morse.dot();
  22. delay(3000);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment