mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2025-02-21 06:57:27 -05:00
Move button definition
This commit is contained in:
parent
21eb8978d5
commit
f42ad2bcd2
9
button.h
Normal file
9
button.h
Normal file
@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
struct Button {
|
||||
int x, y, w, h;
|
||||
unsigned int id;
|
||||
char text[5];
|
||||
char morse;
|
||||
void (*morse_status)(int8_t* val_out);//-1 if a low tone should play, +1 if a high tone should play
|
||||
};
|
@ -1,4 +1,5 @@
|
||||
#include <Arduino.h>
|
||||
#include "button.h"
|
||||
#include "morse.h"
|
||||
#include "nano_gui.h"
|
||||
#include "settings.h"
|
||||
@ -79,14 +80,6 @@ enum btn_set_e {
|
||||
BUTTON_TOTAL
|
||||
};
|
||||
|
||||
struct Button {
|
||||
int x, y, w, h;
|
||||
unsigned int id;
|
||||
char text[5];
|
||||
char morse;
|
||||
void (*morse_status)(int8_t* val_out);//-1 if a low tone should play, +1 if a high tone should play
|
||||
};
|
||||
|
||||
void msVfoA(int8_t* val_out){
|
||||
*val_out = (Vfo_e::VFO_A == globalSettings.activeVfo) ? 1 : -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user