Hi all. I am trying to use the Waveshare 2.9inch epaper display with my MKR wifi 1010 and I can not get it to work.
I have read all the documentation I could find, however, I am not 100% sure I have the wiring correct for SPI on the 1010. I am also not sure the libraries are compatible with the 1010.
Any help someone could provide would be greatly appreciated.
Update: I was able to get the Waveshare demo to run on the MKR wifi 1010 using the following pinout. So my wiring is correct now. I think I must be doing something wrong with the implementation of the library. Thanks again.
Thanks for the quick response! I noticed those in the GxEPD2_display_selection_added.h on one of the example sketches, but I am afraid it is a little beyond my programming comprehension. So please go easy on me if my methodology is a little strange.
I updated my sketch to add #include the GxEPD2_display_selection_added.h Then copied the whole file into a new tab. I also added the GxEPD2_selection_check.h tab. I then uncommented the display definition in GxEPD2_display_selection_added.h
I am still having trouble getting it to work. Did I do this completely wrong? How do I define the pins used by the display?
Thanks again.
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <GxEPD2_BW.h>
// Pin definitions
#define CS_PIN 4
#define DC_PIN 7
#define RST_PIN 6
#define BUSY_PIN 5
// Create a new e-paper display object
//GxEPD2_BW<GxEPD2_290, GxEPD2_290::HEIGHT> display(GxEPD2_290(CS_PIN, DC_PIN, RST_PIN, BUSY_PIN)); //commented out because the display object should be created in #include "GxEPD2_display_selection_new_style.h"
#include "GxEPD2_display_selection_new_style.h"
I connected the 1.54inch_e-Paper_Module_(B) (black/white/red) to the MKR1010. It works, when I connect the ePaper VCC --> MKR1010 VCC (+3V3)
It does not work when I connect it to a digital pin . At the Mega Board, it works, when I connect it to a digital pin. I think that the power (current) is not enough.