Teslimat Yeri United Kingdom , USD
Banggood'da %s için En Olumlu Yorum, Banggood'da en düşük fiyata en iyi %s satın alın. Satın almadan önce %s için en yararlı olumlu incelemelere göz atın., rc oyuncaklar, eğlenceli sporlar, moda, popüler elektronik
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
Yorumlar (2)
Gönder
  • derosoft Verynice of you to provide this information - It will be used as soon as I receive mine!

    Cevap 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.

    Cevap 20/12/2021
Memnuniyet anketi

Uygulamayı İndir özel 10% indirim kuponunu kap