Module/main.cpp
2024-01-16 20:05:11 +01:00

14 lines
297 B
C++

/* SIMPLE EXAMPLE: LED blinking */
import io; // use module !!!
import sys;
//////////////////////////////////////
static io::GpioClass led (GpioPortA, 10);
int main () {
sys::init ();
for (;;) {
~led; // change status - unary ~
sys::delay ();
}
return 0;
}