Es un backup para las pruebas de firmware y hardware de un ventilador
Dependencies: mbed QEI FastPWM
Diff: nextion_interface.h
- Revision:
- 6:d38287621cca
- Child:
- 7:f4e248182d31
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nextion_interface.h Mon Apr 20 11:39:30 2020 +0000 @@ -0,0 +1,52 @@ + +#ifndef NEXTION_INTERFACE_H_ +#define NEXTION_INTERFACE_H_ + +/* File inclusion */ +#include "stdint.h" + +#define BLACK 0 +#define BLUE 31 +#define BROWN 48192 +#define GREEN 2016 +#define YELLOW 65504 +#define RED 63488 +#define GRAY 33840 +#define WHITE 65535 + +/* Object declaration */ +// For testing purposes only +extern Serial pc; + +// Serial port for nextion +extern Serial nextion_display; + +/* Global variable declaration */ +extern uint16_t volume_setpoint_display; +extern uint16_t volume_measured_display; +extern uint8_t resp_frequency_display; +extern float inspiration_time_display; +extern float expiration_time_display; +extern uint8_t pressure_measured_display; +extern uint8_t gas_input_display; + +extern uint16_t selection_box_coordinates[3][4]; +extern float i_e_ratio_display_table[I_E_RATIO_INDEX_LIMIT][2]; + + +/* Function declaration */ + +void Nextion_Interface_Initialize(void); +void Parameter_Selection_Box_Update(void); +void Parameter_Selection_Box_Remove(void); +void Volume_Setpoint_Display_Update(void); +void Volume_Setpoint_Fix(void); +void Resp_Frequency_Display_Update(void); +void Resp_Frequency_Fix(void); +void I_E_Ratio_Display_Update(void); +void I_E_Ratio_Fix(void); + + + + +#endif \ No newline at end of file