13 lines
267 B
C++
13 lines
267 B
C++
|
/* SIMPLE EXAMPLE: LED blinking */
|
||
|
import io; // use module !!!
|
||
|
//////////////////////////////////////
|
||
|
static io::GpioClass led (GpioPortA, 10);
|
||
|
|
||
|
int main () {
|
||
|
for (;;) {
|
||
|
~led; // change status - unary ~
|
||
|
io::wait ();
|
||
|
}
|
||
|
return 0;
|
||
|
}
|