Ship to United Kingdom , USD
Top Positive Review for %s on Banggood, Shop best %s with lowest price on Banggood. Browse most helpful positive review for %s before you buy., rc toys, fun sports, fashion, popular electronics
BG561861435 21/12/2020
For those trying to use these on an Arduino with an atmega328p microcontroller (eg., Uno, Nano, Pro Mini etc.) I have tested the following and found it to work: Connect the wiring as per the hardware WIKI as shown below (right column is the Arduino pins). VCC 3.3V GND GND DIN D11 CLK D13 CS D10 DC D9 RST D8 BUSY D7 In the Arduino IDE, go to the Library manager, and install the GxEPD library. To use a selection of fonts, also install the Adafruit GFX library. In your sketch, use the declarations as follows: // From GxEPD library: #include #include // 1.54" black and white #include #include // From Adafruit GFX: #include // For other fonts and sizes, look in the Adafruit GFX library files in the Fonts directory // These declarations match the WIKI hardware connections: GxIO_Class io(SPI, /*CS=*/ 10, /*DC=*/ 9, /*RST=*/ 8); GxEPD_Class display(io, /*RST=*/ 8, /*BUSY=*/ 7); void setup() { display.init(115200); } void loop() { display.drawPaged(showPageOfSomething); delay(5000); } void showPageOfSomething() { float t = 24.5; // randomise these if you want the display to change. float h = 56.0; display.fillScreen(GxEPD_WHITE); display.setTextColor(GxEPD_BLACK); display.setFont(&FreeSansBold24pt7b); display.setCursor(50, 84); display.print(t,1); display.setCursor(50, 145); display.print(h,0); display.print("%"); }
7
Comments (2)
Submit
  • derosoft Verynice of you to provide this information - It will be used as soon as I receive mine!

    Reply 29/01/2021
  • dflyer Greatjob! It is very useful information to have on hand as most of the videos I've seen move very quickly and don't supply this level of detail. It isn't an easy display to program as the SPI interfaces can vary quite dramatically from one microcontroller manufacturer to the next and the basic SPI interface pins are well marked but you also need to include GPIOs to make the display work and there are several libraries that you need to include that contain the drivers.

    Reply 20/12/2021
Satisfaction Survey

Download APP to get an exclusive 10% off coupon