Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This is an arduino sketch to demonstrate a custom library.
- Filename: reddit_library_morse_halford88.ino
- Reddit example: library creation for Morse function
- August 20, 2018
- */
- #include <Morse_halford88.h>
- Morse_halford88 morse(13); // --- I changed the name of the library to something unique
- void setup()
- {
- morse.setUpValues();
- }
- void loop()
- {
- morse.dot(); morse.dot(); morse.dot();
- morse.dash(); morse.dash(); morse.dash();
- morse.dot(); morse.dot(); morse.dot();
- delay(3000);
- }
Advertisement
Add Comment
Please, Sign In to add comment