Tipkalo pali LED-icu koja ispisuje S.O.S. u Morse-ovom codu
Dependents: MorseCODE-MarkoJuric
MorseWrite.h
- Committer:
- mjuric
- Date:
- 2021-05-07
- Revision:
- 0:40962a766bc2
File content as of revision 0:40962a766bc2:
#ifndef MBED_MORSEWRITE_H #define MBED_MORSEWRITE_H #include "mbed.h" class MorseWrite { public: MorseWrite(PinName pin); void write(int message, short n); private: DigitalOut _pin; const short dotDuration = 1; const short dashDuration = 3; const short newLetterDuration = 3; const short spaceDuration = 7; const float duration = 0.3; }; #endif