The way I see and understand OLED, there are two possibilities:
- in ProffieOS.ino
#ifdef ENABLE_SSD1306
#include "display/ssd1306.h"
#ifndef DISPLAY_POWER_PINS
#define DISPLAY_POWER_PINS PowerPINS<>
#endif
StandardDisplayController<128,uint32_t> display_controller;
SSD1306Template<128,uint32_t,DISPLAY_POWER_PINS> display(&display_controller);
#endif
or 2) in ProffieOS.ino
#ifdef INCLUDE_SSD1306
#include "display/ssd1306.h"
#endif
& also 2) in myconfig.h
#ifdef CONFIG_BOTTOM
DisplayHelper<128,uint32_t,
BaseLayerOp<StandardDisplayController>,
ClearRectangleOp<10,80,8,24>,
WriteBulletCountOp<10,20,5> >
SSD1306Template<128,uint32_t> display(&display_controller);
#endif // CONFIG_BOTTOM
And my question is:
about 2):
#ifdef INCLUDE_SSD1306
#include "display/ssd1306.h"
#endif
#ifdef CONFIG_BOTTOM
// ... some code here ...
#endif // CONFIG_BOTTOM
but without in ⌠some code here âŚ
DisplayHelper<128,uint32_t,
BaseLayerOp<StandardDisplayController>,
ClearRectangleOp<10,80,8,24>,
WriteBulletCountOp<10,20,5> >
SSD1306Template<128,uint32_t> display(&display_controller);
Is there something else (other than âbullet countsâ) that already exit in your ProffieOS âofficial codeâ & also âinitialize the display & can go in CONFIG_BOTTOM or somewhere elseâ that I can test with my code to see if everything that is working with your code, still works with my code ?
Not âmeâ but does âyour codeâ has other possibilities.
No.
No. I just want to know if there something else that would use #define INCLUDE_SSD1306
in myconfig.h and some other bits of code âsomewhere elseâ (in myconfig.h or other than myconfig.h) that I can test with my code to see if it still works as you intended despite my workarounds in my ProffieOS version of your code ?