Test serial communication for the VBLUNO51 board, via on-board DAPLINK interface. Read and Write tasks
Dependencies: mbed
main.cpp
- Committer:
- vbluno_support
- Date:
- 2017-11-01
- Revision:
- 1:cd16195807ca
- Parent:
- 0:4b3db0a05c69
File content as of revision 1:cd16195807ca:
/* * Note: Use fw_daplink_vbluno51_release_1.0.1.bin or later version for * DAPLINK interface on the VBLUNO51 kit. */ #include "mbed.h" /* Use pin names of the VNG VBLUNO51 platform */ DigitalOut led(LED); Serial pc(USBTX, USBRX, 115200); int main(void) { pc.printf("VBLUno51: Test Serial communication.\n"); led = 1; //No condition loop while(1) { if(pc.readable()) { pc.putc(pc.getc() + 1); // echo input back to terminal led = !led; } } }