2024-01-16 16:14:54 +01:00
|
|
|
/* SIMPLE EXAMPLE: LED blinking */
|
2024-01-19 15:52:53 +01:00
|
|
|
import morse; // use modules !!!
|
|
|
|
import io;
|
2024-01-16 16:14:54 +01:00
|
|
|
//////////////////////////////////////
|
|
|
|
int main () {
|
2024-01-19 15:52:53 +01:00
|
|
|
const io::GpioClass led (io::GpioPortA, 10);
|
|
|
|
const Morse morse (led, 330);
|
2024-01-16 16:14:54 +01:00
|
|
|
for (;;) {
|
2024-01-18 11:42:56 +01:00
|
|
|
morse << "Hello world";
|
2024-01-16 16:14:54 +01:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|