diff --git a/GNC255/GNC255.cpp b/GNC255/GNC255.cpp index ddb2af0..d85bcfe 100644 --- a/GNC255/GNC255.cpp +++ b/GNC255/GNC255.cpp @@ -34,14 +34,19 @@ void GNC255::attach() Next call the constructor of your custom device adapt it to the needs of your constructor ********************************************************************************** */ - if (!FitInMemory(sizeof(U8G2_SSD1322_NHD_256X64_F_4W_SW_SPI))) { + // if (!FitInMemory(sizeof(U8G2_SSD1322_NHD_256X64_F_4W_SW_SPI))) { + if (!FitInMemory(sizeof(U8G2_SSD1362_256X64_F_4W_HW_SPI))) { // Error Message to Connector cmdMessenger.sendCmd(kStatus, F("Custom Device does not fit in Memory")); return; } + /* SSD1322 */ //_oledDisplay = new (allocateMemory(sizeof(U8G2_SSD1322_NHD_256X64_F_4W_SW_SPI))) U8G2_SSD1322_NHD_256X64_F_4W_SW_SPI(U8G2_R0, _clk, _data, _cs, _dc); - _oledDisplay = new (allocateMemory(sizeof(U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI))) U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI(U8G2_R0, 53, _dc, _reset); + //_oledDisplay = new (allocateMemory(sizeof(U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI))) U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI(U8G2_R0, 53, _dc, _reset); + + // Surenoo SOG25664B2 (SSD1362) 7pin module + _oledDisplay = new (allocateMemory(sizeof(U8G2_SSD1362_256X64_F_4W_HW_SPI))) U8G2_SSD1362_256X64_F_4W_HW_SPI(U8G2_R0, _cs, _dc, _reset); begin(); } diff --git a/GNC255/GNC255.h b/GNC255/GNC255.h index f197f45..4532f44 100644 --- a/GNC255/GNC255.h +++ b/GNC255/GNC255.h @@ -38,7 +38,9 @@ class GNC255 private: // U8G2_SSD1322_NHD_256X64_F_4W_SW_SPI *_oledDisplay; - U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI *_oledDisplay; + // U8G2_SSD1322_NHD_256X64_F_4W_HW_SPI *_oledDisplay; + /* Surenoo SOG25664B2 (SSD1362) 7pin module */ + U8G2_SSD1362_256X64_F_4W_HW_SPI *_oledDisplay; bool _initialised; uint8_t _clk, _data, _cs, _dc, _reset; bool _hasChanged;