Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GxEPD.h>
- #include <GxGDEP015OC1/GxGDEP015OC1.cpp>
- #include <GxIO/GxIO_SPI/GxIO_SPI.cpp>
- #include <GxIO/GxIO.cpp>
- #include <Fonts/FreeSansBold18pt7b.h>
- #define PIN_SPI_SS (10)
- #define PIN_SPI_MOSI (11)
- #define PIN_SPI_MISO (12)
- #define PIN_SPI_SCK (13)
- GxIO_Class io(SPI, SS, 8, 9);
- GxEPD_Class display(io);
- void setup(void){
- display.init();
- display.drawPaged(primer);
- }
- void loop(){
- }
- void primer(){
- const GFXfont* f = &FreeSansBold18pt7b;
- display.fillScreen(GxEPD_WHITE);
- display.setTextColor(GxEPD_BLACK);
- display.setFont(f);
- display.setCursor(25, 60);
- display.print("SK Labs");
- display.drawRect( 5, 5, 190, 190, GxEPD_BLACK);
- display.fillRect( 15, 105, 170, 80, GxEPD_BLACK);
- display.setTextColor(GxEPD_WHITE);
- display.setCursor(50, 160);
- display.print("Rulez");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement