14 lines
297 B
C++
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;
|
|
}
|