SNE S1/S2 prime
/
Nucleo446RE_echo_circular_buffer
Echo buffer circulaire
main.cpp
- Committer:
- gr91
- Date:
- 2020-10-23
- Revision:
- 3:500dfd62fb76
- Parent:
- 2:08d83543c8ec
- Child:
- 4:11a93a6e4fa7
File content as of revision 3:500dfd62fb76:
#include "mbed.h" // // test led et liaison serie // GR 2020 // Serial pc(USBTX, USBRX); DigitalOut led(LED1); int main() { pc.printf("Press '1' to turn LED1 ON, '0' to turn it OFF\r\n"); led=1; while(1) { char c = pc.getc(); // Read hyperterminal if (c == '0') { led = 0; // OFF } if (c == '1') { led = 1; // ON } } }