LPS JS / Mbed OS 2022_TICE_Electrolyse

Dependencies:   lib_Transmission SEN0169 DS1820

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef MAIN_H
00002 #define MAIN_H
00003 #define MBED_PROJECT    "2022_TICE_Electrolyse"
00004 #define com Transmission::enum_trans_delivery::SERIAL_DELIVERY
00005  
00006 #include "mbed.h"
00007 
00008 #include "lib_Transmission.h"
00009 #include "lib_SEN0169.h"
00010 #include "DS1820.h"
00011 
00012 UnbufferedSerial    pc(USBTX, USBRX, 230400);
00013 
00014 SEN0169             PH_anode(A0);
00015 DS1820              T_anode(A1);
00016 SEN0169             PH_cathode(A2);
00017 DS1820              T_cathode(A3);
00018 
00019 string              processing(string);
00020 Transmission        transmission(&pc, &processing);
00021 
00022 // Prototypes __________________________________________________________________
00023 
00024 void initialisations(void);
00025 string processing(string);
00026 
00027 // Variables ___________________________________________________________________
00028 
00029 float       temperature_anode = 0.0f, temperature_cathode = 0.0f;
00030 float       ph_anode = 0.0f, ph_cathode = 0.0f;
00031 #endif