Connections for Adafruit 2.13" Featherwing Monochrome eInk d
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Start by connecting the power pins
3-5V Vin connects to the microcontroller board's 5V or 3.3V power supply pin
GND connects to ground
Required SPI Pins
These use the hardware SPI interface and is required so check your microcontroller board to see which pins are hardware SPI
CLK connects to SPI clock. On Arduino Uno/Duemilanove/328-based, thats Digital 13. (For other Arduino-compatibles See SPI Connections for more details)
MISO connects to SPI MISO. On Arduino Uno/Duemilanove/328-based, thats Digital 12. (For other Arduino-compatibles See SPI Connections for more details)
MOSI connects to SPI MOSI. On Arduino Uno/Duemilanove/328-based, thats Digital 11. (For other Arduino-compatibles See SPI Connections for more details)
Other Digital I/O Pins
These can be set in the sketch to any pins you like but to follow the exact example code we'll use the following:
ECS connects to our e-Ink Chip Select pin. We'll be using Digital 10 but you can later change this to any pin
D/C connects to our e-Ink data/command select pin. We'll be using Digital 9 but you can later change this pin too.
SRCS connects to our SRAM Chip Select pin. We'll be using Digital 8 but you can later change this to any pin
RST connects to our e-Ink reset pin. We'll be using Digital 5 but you can later change this pin too.
BUSY connects to our e-Ink busy pin. We'll be using Digital 3 but you can later change this pin too.
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
#define SRAM_CS 11
#define SRAM_CS 8
testdrawtext("1002", COLOR1);
display.fillTriangle(105,45,185,35,145,95,COLOR1);
display.fillRect(210,5,30,5,COLOR1);
display.fillRect(210,15,30,5,COLOR1);
display.fillRect(210,25,30,5,COLOR1);
display.fillRect(210,35,30,5,COLOR1);
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
display.drawLine(210,45,240,45,COLOR1);
display.drawLine(240,45,225,65,COLOR1);
display.drawLine(225,65,210,45,COLOR1);
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
display.drawFastHLine(210,45,30,COLOR1);
display.drawLine(210,45,240,45,COLOR1);
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI
/***********************************
Test sketch based on EPDtest provided with library
***********************************/
#include <Adafruit_GFX.h> // Core graphics library
#include "Adafruit_EPD.h"
// EPD definitions
#define EPD_CS 10
#define EPD_DC 9
#define SRAM_CS 8 // originally was 11
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
#define EPD_BUSY -1 // 7 // can set to -1 to not use a pin (will wait a fixed delay)
/* Uncomment the following line if you are using 2.13" monochrome 250*122 EPD */
Adafruit_SSD1675 display(250, 122, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
#define COLOR1 EPD_BLACK
#define COLOR2 EPD_RED
void setup() {
Serial.begin(115200);
while (!Serial) { delay(10); }
Serial.println("Adafruit EPD test");
display.begin();
// large block of text
display.clearBuffer();
//testdrawtext("p 1002 Lorem ipsum dolor sit amet", COLOR1);
testdrawtext("1002", COLOR1);
// try to comment this line and see the change,,,,
display.fillTriangle(210,45,240,35,225,65,COLOR1);
// even drawing a triangle using drawLine creates some problems... try to comment/uncomment the lines below
//display.drawLine(210,45,240,45,COLOR1);
//display.drawFastHLine(210,45,30,COLOR1);
//display.drawLine(240,45,225,65,COLOR1);
//display.drawLine(225,65,210,45,COLOR1);
display.fillRect(210,5,30,5,COLOR1);
display.fillRect(210,15,30,5,COLOR1);
display.fillRect(210,25,30,5,COLOR1);
display.fillRect(210,35,30,5,COLOR1);
display.display();
}
void loop() {
// put your main code here, to run repeatedly:
}
// simple text drawing routine
void testdrawtext(char *text, uint16_t color) {
display.setCursor(0, 0);
display.setTextColor(color);
display.setTextWrap(true);
display.setTextSize(8);
display.print(text);
}
Re: Connections for Adafruit 2.13" Featherwing Monochrome eI