Display SSD1306 for ESP32
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.

23 lines
996 B

  1. #define MAX_OPTIONS 10 //Maximum number of options for each menu
  2. #define MAX_MENUS 3
  3. #define MAX_GRAPHS 3
  4. #define MAX_MODIFIERS 3
  5. #define DISP_WIDTH 128 // OLED display width
  6. #define DISP_HEIGHT 64 // OLED display height
  7. #define REFRESH 10 //Refresh time in ms
  8. //The following constants are used to configure the behaviour of the interface
  9. // MAX_OPTIONS defines the maximum number of options a menu can hold
  10. // MAX_MENUS declares the maximum number of menu screens in the interface
  11. // MAX_GRAPHS is the maximum number of graphs to create
  12. // DISP_WIDTH and DISP_HEIGHT are hardware specific (SSD1306)
  13. // REFRESH: is the time in miliseconds the interface will take in refreshing (this time affects the loop, keep that in mind)
  14. Adafruit_SSD1306 display(DISP_WIDTH, DISP_HEIGHT, &Wire, -1);
  15. #include "resources/Option.h"
  16. #include "resources/Menu.h"
  17. #include "resources/Graph.h"
  18. #include "resources/Modifier.h"
  19. #include "resources/Screen.h"
  20. #include "resources/Keyboard.h"