new rpo

Dependencies:   mbed

Committer:
bogthe
Date:
Sat Jan 12 13:50:33 2019 +0000
Revision:
0:c7febcfb1a01
Aomewth

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogthe 0:c7febcfb1a01 1 #include "mbed.h"
bogthe 0:c7febcfb1a01 2
bogthe 0:c7febcfb1a01 3 DigitalOut gpo(D0);
bogthe 0:c7febcfb1a01 4 DigitalOut led(LED_RED);
bogthe 0:c7febcfb1a01 5
bogthe 0:c7febcfb1a01 6 int main()
bogthe 0:c7febcfb1a01 7 {
bogthe 0:c7febcfb1a01 8 while (true) {
bogthe 0:c7febcfb1a01 9 gpo = !gpo; // toggle pin
bogthe 0:c7febcfb1a01 10 led = !led; // toggle led
bogthe 0:c7febcfb1a01 11 wait(0.2f);
bogthe 0:c7febcfb1a01 12 }
bogthe 0:c7febcfb1a01 13 }