Open junhyoung91 opened 7 months ago
SSD1301 is not supported "out of the box", so the way is to add it yourself, but it's not easy. The biggest problem is that image data is prepared for display of size 128x128 and each pixel is 16-bit, so if your display is smaller and has different data representation, you will have to convert that somehow.
//#include "OLED_SSD1351_nolib.h"
//OLED_SSD1351_nolib selectedDisplay;
//constexpr bool ENABLE_VOLTAGE_MEASUREMENT = false;
//#include "TFT_TTGO.h"
//TFT_TTGO selectedDisplay;
//constexpr bool ENABLE_VOLTAGE_MEASUREMENT = true;
#include "MySSD1301.h"
MySSD1301 selectedDisplay;
constexpr bool ENABLE_VOLTAGE_MEASUREMENT = false;
How can I be compatible with SSD1301 products? As far as I know, SSD1351 and SSD1301 have only pixel and color differences. But if you look at the code now, SSD1301 doesn't show anything. Is there any way?