My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

draw_wifi_list.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. void lv_draw_wifi_list();
  27. void lv_clear_wifi_list();
  28. void disp_wifi_list();
  29. void cutWifiName(char *name, int len, char *outStr);
  30. void wifi_scan_handle();
  31. #define NUMBER_OF_PAGE 5
  32. #define WIFI_TOTAL_NUMBER 20
  33. #define WIFI_NAME_BUFFER_SIZE 33
  34. typedef struct {
  35. int8_t getNameNum;
  36. int8_t nameIndex;
  37. int8_t currentWifipage;
  38. int8_t getPage;
  39. int8_t RSSI[WIFI_TOTAL_NUMBER];
  40. uint8_t wifiName[WIFI_TOTAL_NUMBER][WIFI_NAME_BUFFER_SIZE];
  41. uint8_t wifiConnectedName[WIFI_NAME_BUFFER_SIZE];
  42. } WIFI_LIST;
  43. extern WIFI_LIST wifi_list;
  44. typedef struct list_menu_disp {
  45. const char *title;
  46. const char *file_pages;
  47. } list_menu_def;
  48. extern list_menu_def list_menu;
  49. typedef struct keyboard_menu_disp {
  50. const char *title;
  51. const char *apply;
  52. const char *password;
  53. const char *letter;
  54. const char *digital;
  55. const char *symbol;
  56. const char *space;
  57. } keyboard_menu_def;
  58. extern keyboard_menu_def keyboard_menu;
  59. typedef struct tips_menu_disp {
  60. const char *joining;
  61. const char *failedJoin;
  62. const char *wifiConected;
  63. } tips_menu_def;
  64. extern tips_menu_def tips_menu;
  65. #ifdef __cplusplus
  66. } /* C-declarations for C++ */
  67. #endif