Digigurdy-baz
Loading...
Searching...
No Matches
exbutton.h
Go to the documentation of this file.
1#ifndef EXBUTTON_H
2#define EXBUTTON_H
3
4#include <Arduino.h>
5#include <EEPROM.h>
6
7#include "togglebutton.h"
8#include "exfunctions.h"
9#include "display.h"
10#include "eeprom_values.h"
11//#include "common.h"
12
13class ExButton: public ToggleButton {
14 private:
15 int my_func;
16 int eeprom_addr;
17 int eeprom_step_addr;
18 int t_toggle_steps;
19
20 public:
21 ExButton(int my_pin, int interval, int my_addr, int my_step_addr);
22
23 int getFunc();
24
25 void setFunc(int func);
26
27 void doFunc(bool playing);
28
29 String printFunc();
30
31 bool fn_choice_screen();
32
33 bool fn_choice_screen_2();
34
35 bool fn_choice_tpose();
36};
37
38#endif
Definition: exbutton.h:13
bool fn_choice_screen_2()
Prompt user to choose the button function, second page.
Definition: exbutton.cpp:158
int getFunc()
Return the current function number of the button.
Definition: exbutton.cpp:16
void doFunc(bool playing)
Execute the button's configured fucntion.
Definition: exbutton.cpp:27
void setFunc(int func)
Set the function to be called when this button is pressed.
Definition: exbutton.cpp:22
String printFunc()
Returns a short text label of the button's function.
Definition: exbutton.cpp:64
bool fn_choice_tpose()
Prompt user to choose the button function, second page.
Definition: exbutton.cpp:213
bool fn_choice_screen()
Prompt user to choose the button function.
Definition: exbutton.cpp:98
Definition: togglebutton.h:6