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:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -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 */