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:
- 25:49e5d653d789
- Parent:
- 24:4c5909becda6
- Child:
- 26:750f21025bb9
--- a/main.cpp Sat Sep 15 19:43:38 2018 +0000 +++ b/main.cpp Sat Sep 15 19:47:28 2018 +0000 @@ -36,6 +36,10 @@ void pb_hit_interrupt (void) { pc.printf("Button pressed\r\n"); }; + +void pb_out_interrupt (void) { + pc.printf("Button unpressed\r\n"); +}; int main() { @@ -43,6 +47,7 @@ pb.mode(PullUp); pb.fall(&pb_hit_interrupt); + pb.rise(&pb_out_interrupt); float temp[5] = { 85,85,85,85,85 // initial temperature