1st comit

Dependencies:   lib_Transmission SEN0169 DS1820

Committer:
jsanchez
Date:
Tue Jan 11 15:04:26 2022 +0000
Revision:
0:851e1c7a4454
1st commit :)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jsanchez 0:851e1c7a4454 1 #ifndef MAIN_H
jsanchez 0:851e1c7a4454 2 #define MAIN_H
jsanchez 0:851e1c7a4454 3 #define MBED_PROJECT "2022_TICE_Electrolyse"
jsanchez 0:851e1c7a4454 4 #define com Transmission::enum_trans_delivery::SERIAL_DELIVERY
jsanchez 0:851e1c7a4454 5
jsanchez 0:851e1c7a4454 6 #include "mbed.h"
jsanchez 0:851e1c7a4454 7
jsanchez 0:851e1c7a4454 8 #include "lib_Transmission.h"
jsanchez 0:851e1c7a4454 9 #include "lib_SEN0169.h"
jsanchez 0:851e1c7a4454 10 #include "DS1820.h"
jsanchez 0:851e1c7a4454 11
jsanchez 0:851e1c7a4454 12 UnbufferedSerial pc(USBTX, USBRX, 230400);
jsanchez 0:851e1c7a4454 13
jsanchez 0:851e1c7a4454 14 SEN0169 PH_anode(A0);
jsanchez 0:851e1c7a4454 15 DS1820 T_anode(A1);
jsanchez 0:851e1c7a4454 16 SEN0169 PH_cathode(A2);
jsanchez 0:851e1c7a4454 17 DS1820 T_cathode(A3);
jsanchez 0:851e1c7a4454 18
jsanchez 0:851e1c7a4454 19 string processing(string);
jsanchez 0:851e1c7a4454 20 Transmission transmission(&pc, &processing);
jsanchez 0:851e1c7a4454 21
jsanchez 0:851e1c7a4454 22 // Prototypes __________________________________________________________________
jsanchez 0:851e1c7a4454 23
jsanchez 0:851e1c7a4454 24 void initialisations(void);
jsanchez 0:851e1c7a4454 25 string processing(string);
jsanchez 0:851e1c7a4454 26
jsanchez 0:851e1c7a4454 27 // Variables ___________________________________________________________________
jsanchez 0:851e1c7a4454 28
jsanchez 0:851e1c7a4454 29 float temperature_anode = 0.0f, temperature_cathode = 0.0f;
jsanchez 0:851e1c7a4454 30 float ph_anode = 0.0f, ph_cathode = 0.0f;
jsanchez 0:851e1c7a4454 31 #endif