Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * A Test librarydo make a light blink
- * filename: Morse.cpp
- */
- #include "Arduino.h"
- #include "Morse.h"
- Morse::Morse(int pin)
- {
- pinMode(pin, OUTPUT);
- _pin = pin;
- }
- void Morse::dot()
- {
- digitalWrite(_pin, HIGH);
- delay(250);
- digitalWrite(_pin, LOW);
- delay(250);
- }
- void Morse::dash()
- {
- digitalWrite(_pin, HIGH);
- delay(1000);
- digitalWrite(_pin, LOW);
- delay(250);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement