Move button definition

This commit is contained in:
Reed Nightingale 2020-02-09 15:28:46 -08:00
parent 21eb8978d5
commit f42ad2bcd2
2 changed files with 10 additions and 8 deletions

9
button.h Normal file
View 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
};

View File

@ -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;
}