2024-01-16 16:14:54 +01:00
|
|
|
/* SIMPLE EXAMPLE: LED blinking */
|
|
|
|
import io; // use module !!!
|
2024-01-16 20:05:11 +01:00
|
|
|
import sys;
|
2024-01-16 16:14:54 +01:00
|
|
|
//////////////////////////////////////
|
|
|
|
static io::GpioClass led (GpioPortA, 10);
|
|
|
|
|
|
|
|
int main () {
|
2024-01-16 20:05:11 +01:00
|
|
|
sys::init ();
|
2024-01-16 16:14:54 +01:00
|
|
|
for (;;) {
|
|
|
|
~led; // change status - unary ~
|
2024-01-16 20:05:11 +01:00
|
|
|
sys::delay ();
|
2024-01-16 16:14:54 +01:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|