Hi,
I had issues with the code from #73 , and I found that the display will work if the initilise function looks like this:
`void initDisplay()
{
// SPI.begin(PIN_EPD_SCK,
// PIN_EPD_MISO,
// PIN_EPD_MOSI,
// PIN_EPD_CS);
But when I connect it to a battery it won't work, I tried plugging in the usb cable to an outlet and it refreshes the first time to show the data well but doesn't refresh after an hour.
Hi, I had issues with the code from #73 , and I found that the display will work if the initilise function looks like this: `void initDisplay() { // SPI.begin(PIN_EPD_SCK, // PIN_EPD_MISO, // PIN_EPD_MOSI, // PIN_EPD_CS);
display.init(115200, true, 20, false); display.setRotation(0); display.setTextSize(1); display.setTextColor(GxEPD_BLACK); display.setTextWrap(false); //display.fillScreen(GxEPD_WHITE); display.setFullWindow(); display.firstPage(); // use paged drawing mode, sets fillScreen(GxEPD_WHITE) return; } // end initDisplay`
But when I connect it to a battery it won't work, I tried plugging in the usb cable to an outlet and it refreshes the first time to show the data well but doesn't refresh after an hour.
What should I do?