Fileman empty directory bugfix

Ajouté trames + config collier LGE
This commit is contained in:
furrtek 2019-05-23 05:20:01 +01:00
parent 9f587e6085
commit 30db22828c
5 changed files with 218 additions and 119 deletions

View file

@ -67,37 +67,52 @@ private:
generate_lge_frame(command, 0xFFFF, 0xFFFF, data);
}
void generate_lge_frame(const uint8_t command, const uint16_t address_a, const uint16_t address_b, std::vector<uint8_t>& data);
void generate_frame_touche();
void generate_frame_pseudo();
void generate_frame_equipe();
void generate_frame_broadcast_pseudo();
void generate_frame_start();
void generate_frame_gameover();
void generate_frame_collier();
void on_tx_progress(const uint32_t progress, const bool done);
Labels labels {
{ { 7 * 8, 1 * 8 }, "NO FUN ALLOWED !", Color::red() },
{ { 4 * 8, 4 * 8 }, "Trame:", Color::light_grey() },
{ { 4 * 8, 6 * 8 }, "Salle:", Color::light_grey() },
{ { 14 * 8, 6 * 8 }, "Texte:", Color::light_grey() },
{ { 3 * 8, 8 * 8 }, "Equipe:", Color::light_grey() },
{ { 3 * 8, 10 * 8 }, "Joueur:", Color::light_grey() }
//{ { 7 * 8, 1 * 8 }, "NO FUN ALLOWED !", Color::red() },
{ { 1 * 8, 1 * 8 }, "Trame:", Color::light_grey() },
{ { 1 * 8, 3 * 8 }, "Salle:", Color::light_grey() },
{ { 14 * 8, 3 * 8 }, "Texte:", Color::light_grey() },
{ { 0 * 8, 5 * 8 }, "Equipe:", Color::light_grey() },
{ { 0 * 8, 7 * 8 }, "Joueur:", Color::light_grey() },
{ { 0 * 8, 10 * 8 }, "Collier:", Color::light_grey() },
{ { 4 * 8, 12 * 8 }, "ID:", Color::light_grey() },
{ { 3 * 8, 14 * 8 }, "Pow: /10", Color::light_grey() },
{ { 1 * 8, 16 * 8 }, "Duree: x100ms", Color::light_grey() }
};
OptionsField options_trame {
{ 10 * 8, 4 * 8 },
16,
{ 7 * 8, 1 * 8 },
13,
{
{ "Set pseudo", 0 },
{ "Set equipe", 1 },
{ "Broadcast pseudo", 2 },
{ "Start", 3 },
{ "Game over", 4 }
{ "Touche", 0 },
{ "Set pseudo", 1 },
{ "Set equipe", 2 },
{ "Brdcst pseudo", 3 },
{ "Start", 4 },
{ "Game over", 5 },
{ "Set collier", 6 }
}
};
Checkbox checkbox_channels {
{ 20 * 8, 1 * 8 },
7,
"All ch.",
true
};
NumberField field_salle {
{ 10 * 8, 6 * 8 },
{ 7 * 8, 3 * 8 },
1,
{ 1, 2 },
1,
@ -105,12 +120,12 @@ private:
};
Button button_texte {
{ 14 * 8, 8 * 8, 16 * 8, 3 * 8 },
{ 14 * 8, 5 * 8, 16 * 8, 3 * 8 },
"ABCDEF"
};
NumberField field_equipe {
{ 10 * 8, 8 * 8 },
{ 7 * 8, 5 * 8 },
1,
{ 1, 6 },
1,
@ -118,17 +133,45 @@ private:
};
NumberField field_joueur {
{ 10 * 8, 10 * 8 },
{ 7 * 8, 7 * 8 },
2,
{ 1, 50 },
1,
'0'
};
Checkbox checkbox_channels {
Checkbox checkbox_heartbeat {
{ 17 * 8, 12 * 8 },
9,
"Heartbeat",
true
};
Checkbox checkbox_rxtick {
{ 17 * 8, 15 * 8 },
7,
"RX tick",
true
};
NumberField field_id {
{ 7 * 8, 12 * 8 },
1,
{ 1, 2 },
1,
'0'
};
NumberField field_power {
{ 7 * 8, 14 * 8 },
12,
"All channels"
2,
{ 1, 10 },
1,
'0'
};
NumberField field_duration {
{ 7 * 8, 16 * 8 },
2,
{ 1, 25 },
1,
'0'
};
Console console {