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)
main.cpp
- Committer:
- hudakz
- Date:
- 2016-07-05
- Revision:
- 7:accb2c83a007
- Parent:
- 6:d99931fc19c0
- Child:
- 8:f1432e9af6c8
File content as of revision 7:accb2c83a007:
#include "stm32f103c8t6.h" #include "mbed.h" Serial pc(PA_2, PA_3); DigitalOut myled(LED1); int main() { confSysClock(); // Configuring system clock while(1) { // The on-board LED is connected, via a resistor, to +3.3V (not to GND). // So to turn the LED on or off we have to set it to 0 or 1 respectively myled = 0; // turn the LED on wait(0.2); // 200 ms myled = 1; // turn the LED off wait(1.0); // 1 sec pc.printf("Blink\r\n"); } }