diff --git a/web.cpp b/web.cpp index 803494ce3d59f4f99a92000c30e8279a18c98bd7..c912e27c8844d899fc4ac7306539b5a373614cc7 100644 --- a/web.cpp +++ b/web.cpp @@ -1,91 +1,10 @@ -// This is the ESPUI example -// it does nothing more yet and is not connected with the stepper motor code - -#include <DNSServer.h> - -#include <ESPUI.h> // https://github.com/s00500/ESPUI - -#include "common.h" -#include "syringe.h" -#include "syringefilled.h" - -#include <EEPROM.h> - -#define syringe_pump_length_mm 50 - - -int status_label_id1; -int status_label_id2; -int graph_id; -int millis_label_id; -int test_switch_id; - -uint16_t status; - -uint16_t activation; - -uint16_t etat_button_seringue; - -uint16_t bouton1, bouton2, bouton3, bouton4, bouton5, bouton6, bouton7, bouton8, bouton9, bouton10, bouton11, bouton12, bouton13, bouton14, bouton15, bouton16, bouton17, bouton18, bouton19, bouton20, bouton21, bouton22, bouton23, bouton24, bouton25, bouton26, bouton27, bouton28, bouton29, bouton30, bouton31, bouton32, bouton33, bouton34, bouton35, bouton36, bouton37, bouton38, bouton39, bouton40, bouton41, bouton42, bouton43, bouton44, bouton45, bouton46, bouton47, bouton48, bouton49, bouton50, bouton51, bouton52, bouton53, bouton54, bouton55, bouton56, bouton57, bouton58, bouton59, bouton60, bouton61, bouton62, bouton63, bouton64, bouton65, bouton66, bouton67, bouton68, bouton69, bouton70, bouton71, bouton72, bouton73, bouton74, bouton75, bouton76, bouton77, bouton78, bouton79, bouton80, bouton81, bouton82, bouton83, bouton84, bouton85, bouton86, bouton87, bouton88, bouton89, bouton90, bouton91, bouton92, bouton93, bouton94, bouton95, bouton96, bouton97, bouton98; - -uint16_t zero; - -uint16_t style_button, style_label, style_switcher, style_slider, style_button2, style_label2, style_slider2; - -uint16_t nv_bouton_ctrl, nv_bouton; - -uint16_t slider; - -char couleur1[30], couleur2[30], couleur3[30], couleur4[30], couleur5[30], couleur6[30], couleur7[30], couleur8[30], couleur9[30], couleur10[30]; - -bool test = true; - -long unsigned last_time = 0; - -// Couleurs à utiliser -const char* couleurs[] = { - couleur1, - couleur2, - couleur3, - couleur4, - couleur5, - couleur6, - couleur7, - couleur8, - couleur9, - couleur10 -}; - -uint8_t mock_read_uart(void); - -void number_callback(Control* sender, int type); -void text_callback(Control* sender, int type); -void slider_callback(Control* sender, int type); -void button_status_callback1(Control* sender, int type, void* param); -void button_status_callback2(Control* sender, int type, void* param); -void button_callback(Control* sender, int type); -void pad_callback(Control* sender, int value); -void switch_status_callback1(Control* sender, int value, void* param); -void switch_status_callback2(Control* sender, int value, void* param); -void select_callback(Control* sender, int value); -void other_switch_callback(Control* sender, int value); -void button_seringue(Control* sender, int type); -void general_callback(Control* sender, int type); -void nv_bouton_ctrl_callback(Control* sender, int type); -void nv_bouton_callback(Control* sender, int type); -void position_choice(Control* sender, int type); -void go_to_zero(Control* sender, int type); -void on_off(); - +#include "web.h" void web_setup () { - - - //Creation des différents styles //Les verts pour la mise en mrche de la seringue