![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
mDot source code for the "fan" mDot in this demo: https://twitter.com/MultiTechSys/status/621708791009124352
Dependencies: DigitDisplay MTS-Utils libmDot mbed-rtos mbed
mDot source code for the "fan" mDot in this demo: https://twitter.com/MultiTechSys/status/621708791009124352
Diff: main.cpp
- Revision:
- 2:756d0baab3fb
- Parent:
- 1:cf83fcba7d02
- Child:
- 3:68094a3aa36f
--- a/main.cpp Wed Jul 15 20:28:24 2015 +0000 +++ b/main.cpp Fri Jul 17 17:03:25 2015 +0000 @@ -2,6 +2,7 @@ // MultiTech Thermostat & Fan Demo (fan unit) // // This program runs on a MultiTech mDot with: +// - 1 Arduino base shield // - 1 Grove LED05291P 4-digit display // - 1 relay for fan control // --------------------------------------------- @@ -16,12 +17,12 @@ Ticker periodicPollTick; DigitalOut led(LED1); -DigitalOut fan(PA_1); -DigitDisplay display(PB_1, PB_0); +DigitalOut fan(PA_1); //D6 on Arduino base shield +DigitDisplay display(PB_1, PB_0); //A0 & A1 on Arduino base shield // Configuration variables -static std::string config_network_name = "mts-fan-demo1"; -static std::string config_network_pass = "multitech"; +static std::string config_network_name = "your_name_here"; +static std::string config_network_pass = "your_key_here"; static uint8_t config_frequency_sub_band = 1; static volatile bool timeToPollConduit = true;