Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pousseseringue-arduino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FabLAAS
PousseSeringue
pousseseringue-arduino
Commits
b12bba51
Commit
b12bba51
authored
1 year ago
by
Malaurie Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Splitting web .cpp into web.cpp and web.h
parent
fd949444
No related branches found
Branches containing commit
No related tags found
1 merge request
!17
Malaurie's work on UI + CLI interface + AccelStepper interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web.cpp
+1
-82
1 addition, 82 deletions
web.cpp
with
1 addition
and
82 deletions
web.cpp
+
1
−
82
View file @
b12bba51
// 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment