Thermometer connected to internet
Dependencies: BME280 EthernetInterface FXOS8700Q HTTPClient-wolfSSL NTPClient NetworkAPI OAuth4Tw TSL2561_I2C eCompass_FPU_Lib mbed-rtos mbed wolfSSL
Fork of TCP_Server_Example by
StatusLED.cpp
- Committer:
- zeus3110
- Date:
- 2015-09-27
- Revision:
- 12:12369ee344ab
File content as of revision 12:12369ee344ab:
#include "StatusLED.h" //------------------------------------------------------------------------------------------ StatusLED::StatusLED(DigitalOut *_pHBLed,DigitalOut *_pDataLed, DigitalOut *_pServerLed) { pHBLed=_pHBLed; pDataLed=_pDataLed; pServerLed=_pServerLed; pHBLed->write(1); pDataLed->write(1); pServerLed->write(1); } void StatusLED::HBLedTick(){ pOBStatusLED->pHBLed->write(pOBStatusLED->pHBLed->read()?0:1); } StatusLED *pOBStatusLED; //------------------------------------------------------------------------------------------ void HBLedTicker(void const *args) { pOBStatusLED->HBLedTick(); }