We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
APS2embarcados/MXT_EXAMPLE_USART1/src/main.c
Lines 177 to 230 in 0cd9f13
The text was updated successfully, but these errors were encountered:
Mas qual parte poderia ter sido colocada em uma função? Porque essa função já faz apenas uma tarefa, que é mudar a pagina na navegação...
Sorry, something went wrong.
Um possível exemplo.
void slice_right_callback(void){ laundry_event = (laundry_event + 1) % 3; draw_laundry_screen(laundry_event); } void slice_right_callback(void){ laundry_event = laundry_event - 1; if(laundry_event < 0) laundry_event = 2; draw_laundry_screen(laundry_event); } void draw_laundry_screen(int laundry_type) { if(!unlocked_flag) return; draw_screen(); switch(laundry_type) { case 0: laundry_event = 1; draw_heavy_page(); botoes[0] = botaoLavagemPesada; break; ... (mesmo pros outros casos) } botoes[1] = botaoDireita; botoes[2] = botaoEsquerda; botoes[3] = botaoUnlock; botoes[4] = botaoLock; n_botoes_na_tela = 5; }
No branches or pull requests
APS2embarcados/MXT_EXAMPLE_USART1/src/main.c
Lines 177 to 230 in 0cd9f13
The text was updated successfully, but these errors were encountered: