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
13
class
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
ExButton
Definition:
exbutton.h:13
ExButton::fn_choice_screen_2
bool fn_choice_screen_2()
Prompt user to choose the button function, second page.
Definition:
exbutton.cpp:158
ExButton::getFunc
int getFunc()
Return the current function number of the button.
Definition:
exbutton.cpp:16
ExButton::doFunc
void doFunc(bool playing)
Execute the button's configured fucntion.
Definition:
exbutton.cpp:27
ExButton::setFunc
void setFunc(int func)
Set the function to be called when this button is pressed.
Definition:
exbutton.cpp:22
ExButton::printFunc
String printFunc()
Returns a short text label of the button's function.
Definition:
exbutton.cpp:64
ExButton::fn_choice_tpose
bool fn_choice_tpose()
Prompt user to choose the button function, second page.
Definition:
exbutton.cpp:213
ExButton::fn_choice_screen
bool fn_choice_screen()
Prompt user to choose the button function.
Definition:
exbutton.cpp:98
ToggleButton
Definition:
togglebutton.h:6
display.h
eeprom_values.h
exfunctions.h
togglebutton.h
Generated by
1.9.5