ubitxv6/button.h

11 lines
222 B
C
Raw Normal View History

2020-02-10 00:28:46 +01:00
#pragma once
2020-02-10 02:03:37 +01:00
#include <stdint.h>
2020-02-10 00:28:46 +01:00
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
};