2024-02-29 12:22:16 +01:00
|
|
|
/* SIMPLE EXAMPLE: LED blinking */
|
2024-03-17 16:33:48 +01:00
|
|
|
/* Když už mám PWM hotové, tak to může
|
|
|
|
* na pinech PD0 a PD2 pípat. Frekvence
|
|
|
|
* je 1kHz - čistý sinus.
|
|
|
|
* */
|
2024-02-29 12:22:16 +01:00
|
|
|
#include "morse.h"
|
|
|
|
//////////////////////////////////////
|
2024-03-17 16:33:48 +01:00
|
|
|
static GpioClass led (GPIOD, 4);
|
|
|
|
static Morse morse (led, 100u);
|
2024-02-29 12:22:16 +01:00
|
|
|
int main () {
|
|
|
|
for (;;) {
|
|
|
|
morse << "hello world";
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|