mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-12 16:35:43 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -36,52 +36,47 @@
|
|||
namespace ui {
|
||||
|
||||
class SIGFRXView : public View {
|
||||
public:
|
||||
SIGFRXView(NavigationView& nav);
|
||||
~SIGFRXView();
|
||||
void on_channel_spectrum(const ChannelSpectrum& spectrum);
|
||||
|
||||
void on_show() override;
|
||||
void on_hide() override;
|
||||
void focus() override;
|
||||
void paint(Painter& painter) override;
|
||||
public:
|
||||
SIGFRXView(NavigationView& nav);
|
||||
~SIGFRXView();
|
||||
void on_channel_spectrum(const ChannelSpectrum& spectrum);
|
||||
|
||||
private:
|
||||
uint8_t last_channel;
|
||||
uint8_t detect_counter = 0;
|
||||
|
||||
const Style style_white {
|
||||
.font = font::fixed_8x16,
|
||||
.background = Color::white(),
|
||||
.foreground = Color::black()
|
||||
};
|
||||
|
||||
const uint16_t sigfrx_marks[18] = {
|
||||
10, 8, 0,
|
||||
60, 52, 90,
|
||||
119, 95, 180,
|
||||
121, 122, 220,
|
||||
179, 171, 310,
|
||||
230, 214, 400 };
|
||||
|
||||
Text text_type {
|
||||
{ 1 * 8, 1 * 16, 28 * 8, 16 },
|
||||
"SIGFOX interceptor. Yap !"
|
||||
};
|
||||
|
||||
Text text_channel {
|
||||
{ 1 * 8, 3 * 16, 28 * 8, 16 },
|
||||
"PL: "
|
||||
};
|
||||
Text text_data {
|
||||
{ 1 * 8, 4 * 16, 28 * 8, 16 },
|
||||
"??: "
|
||||
};
|
||||
|
||||
Button button_exit {
|
||||
{ 22 * 8, 160 - 32, 56, 32 },
|
||||
"Exit"
|
||||
};
|
||||
void on_show() override;
|
||||
void on_hide() override;
|
||||
void focus() override;
|
||||
void paint(Painter& painter) override;
|
||||
|
||||
private:
|
||||
uint8_t last_channel;
|
||||
uint8_t detect_counter = 0;
|
||||
|
||||
const Style style_white{
|
||||
.font = font::fixed_8x16,
|
||||
.background = Color::white(),
|
||||
.foreground = Color::black()};
|
||||
|
||||
const uint16_t sigfrx_marks[18] = {
|
||||
10, 8, 0,
|
||||
60, 52, 90,
|
||||
119, 95, 180,
|
||||
121, 122, 220,
|
||||
179, 171, 310,
|
||||
230, 214, 400};
|
||||
|
||||
Text text_type{
|
||||
{1 * 8, 1 * 16, 28 * 8, 16},
|
||||
"SIGFOX interceptor. Yap !"};
|
||||
|
||||
Text text_channel{
|
||||
{1 * 8, 3 * 16, 28 * 8, 16},
|
||||
"PL: "};
|
||||
Text text_data{
|
||||
{1 * 8, 4 * 16, 28 * 8, 16},
|
||||
"??: "};
|
||||
|
||||
Button button_exit{
|
||||
{22 * 8, 160 - 32, 56, 32},
|
||||
"Exit"};
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue