![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dd
Dependencies: BufferedSerial FastAnalogIn FastPWM mbed SHT75
Diff: commandt.cpp
- Revision:
- 10:c751a0e8b7f9
- Parent:
- 4:7ca449fca19b
--- a/commandt.cpp Thu Mar 31 14:01:49 2016 +0000 +++ b/commandt.cpp Mon Jul 11 01:05:52 2016 +0000 @@ -67,6 +67,26 @@ case 'e': control->set_period((int)asci_to_bin(data+2)); printf("set period %d\n", (int)asci_to_bin(data+2)); + break; + case 'h': + control->highTemp=asci_to_bin(data+2); + printf("set high temp %2.2f\n", asci_to_bin(data+2)); + break; + case 'l': + control->lowTemp=asci_to_bin(data+2); + printf("set low temp %2.2f\n", asci_to_bin(data+2)); + break; + case 'a': + control->highTempTime=(int)asci_to_bin(data+2); + printf("set high temp time%d\n", (int)asci_to_bin(data+2)); + break; + case 'b': + control->lowTempTime=(int)asci_to_bin(data+2); + printf("set low temp %d\n", (int)asci_to_bin(data+2)); + break; + case 'o': + control->periodNumber=(int)asci_to_bin(data+2); + printf("set period repeat number %d \n", (int)asci_to_bin(data+2)); break; default: pc->printf("command error");