mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-11-04 15:57:35 -05:00
9b9a1610c2
This reverts commit 1f97be3263
.
28 lines
850 B
C
28 lines
850 B
C
#pragma once
|
|
|
|
#include "button.h"
|
|
#include "menu.h"
|
|
|
|
//Returns true if button was found, false otherwise
|
|
bool findPressedButton(const Button* const* buttons,
|
|
const uint8_t num_buttons,
|
|
Button *const button_out,
|
|
const Point touch_point);
|
|
|
|
enum MorsePlaybackType_e : uint8_t {
|
|
PlayChar,
|
|
PlayText
|
|
};
|
|
void initSelector(int16_t *const raw_select_val_in_out,
|
|
const Button* const* buttons,
|
|
const uint8_t num_buttons,
|
|
const MorsePlaybackType_e);
|
|
|
|
void adjustSelector(int16_t *const raw_select_val_in_out,
|
|
int16_t knob,
|
|
const Button* const* buttons,
|
|
const uint8_t num_buttons,
|
|
const MorsePlaybackType_e);
|
|
|
|
void endSelector(const Button *const button);
|