Dmitry Dulyn
/
g474retest
1
Diff: main.cpp
- Revision:
- 0:1882a8a67511
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 30 09:34:38 2021 +0000 @@ -0,0 +1,25 @@ + +#include "mbed.h" +#include <string> + +#define LED PB_0 // LED Pin +// Serial pc(PA_2, PA_3); +Serial pc(PC_6, PC_7); +DigitalOut led_debug(PB_1); + +int main() { // Set potision sensor nonlinearity lookup table + + gpio->led = new DigitalOut(LED); + pc.baud(921600); // set serial baud rate + + //pc.attach(&serial_interrupt); // attach serial interrupt + + // ============================================================================================================= + + while(1) { + wait(.01); + pc.printf("hello_wooden"); + gpio.led->write(0); + } +} +