STM32F103C8T6_WIFI_Heating_system
Dependencies: mbed mbed-STM32F103C8T6 eeprom_flash Watchdog PinDetect DS1820
- Bluepill STM32F103C8T6 Heating system
- _This project is core part of bigger heating system project!_
Features
- Reading temperature from four DS18B20 sensors
- Making a decision about switching on/off heater and pomp
- Executing simple user commands from UART
- Storing state parameters to program memory (EEPROM emulation)
Diff: main.cpp
- Revision:
- 31:0a516ceaec4d
- Parent:
- 30:b696b5799507
- Child:
- 32:aebbfe391bbc
--- a/main.cpp Sun Sep 16 16:53:47 2018 +0000 +++ b/main.cpp Mon Sep 17 07:54:57 2018 +0000 @@ -4,6 +4,7 @@ #include <stdio.h> #include "DS1820.h" #include "PinDetect.h" +#include "Watchdog.h" #include <string> // Create a queue that can hold a maximum of 32 events @@ -19,7 +20,6 @@ Serial pc(PA_2, PA_3); DigitalOut myled(LED1); - float temp[5] = { 85,85,85,85,85 // initial temperature }; @@ -144,7 +144,7 @@ myled = 1; // turn the LED off }; -Watchdog wdt; + int main() { @@ -154,8 +154,6 @@ PinDetect pb(PA_11); pb.mode(PullUp); - wdt.kick(10.0); - // Delay for initial pullup to take effect wait(.005);