PROJ515-MASTER-No-PWM
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
Serial/Serial_PC.cpp
- Committer:
- thomasmorris
- Date:
- 2019-05-08
- Revision:
- 5:dbb984e01ded
- Parent:
- 4:020f93d35f6e
File content as of revision 5:dbb984e01ded:
#include "Serial_PC.hpp" int Logging = 0; SERIAL_PC::SERIAL_PC(){} SERIAL_PC::~SERIAL_PC(){} void SERIAL_PC::Init(){} int SERIAL_PC::Post() { return 1; } void SERIAL_PC::Main() { while(1) { if(PC.readable())//Check that you can write to the PC { PC.printf("Testing for serial\n"); } PC.scanf("%s",&_buffer); if(_buffer == "Log") { PC.printf("Logging\n"); Logging = 1; } Thread::wait(1000); } }