Shahariar
Published © GPL3+

E-Ink Display Based Static Desktop eCalendar

An electronic desktop calendar based on an E-ink display controlled by TM4C123 Tiva (ARM) development board and programmed in Energia IDE.

BeginnerFull instructions provided2 hours3,469
E-Ink Display Based Static Desktop eCalendar

Things used in this project

Hardware components

EK-TM4C123GXL TM4C Tiva LaunchPad
Texas Instruments EK-TM4C123GXL TM4C Tiva LaunchPad
×1
200x200, 1.54inch E-Ink display module
×1
SparkFun IOIO Breadboard Holder
×1
AA Batteries
AA Batteries
×3
SparkFun Kaplon Tape
×1
4xAA battery holder
4xAA battery holder
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
USB Female Port
×1

Software apps and online services

Energia
Texas Instruments Energia
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
Hand Drill

Story

Read more

Schematics

Real Connection

Code

main.c

C/C++
#include <SPI.h>
#include "EPD_drive.h"
#include "EPD_drive_gpio.h"
#include "Display_Lib.h"
int SW1= 17;
int SW2= 31;

int month = 8;
int year = 2017;

WaveShare_EPD EPD = WaveShare_EPD();
void setup() {

  pinMode(CS,OUTPUT);  //  pin 12
   pinMode(DC,OUTPUT);  //  pin 10
   pinMode(RST,OUTPUT); //  pin 09
   pinMode(BUSY,INPUT); //  pin 19
   pinMode(SW1, INPUT_PULLUP);
    pinMode(SW2, INPUT_PULLUP);
// MOSI/DIN is pin 8
// SCK/CLK is pin 11

 // mySPI.beginTransaction(mySPISettings(2000000, MSBFIRST, mySPI_MODE0)); // Use this line if you are using arduino Mega
SPI.begin();
SPI.setModule(0);

// following 3 lines of code is required in Tiva TM4C123, in Arduino Mega remove these 
SPI.setClockDivider(SPI_CLOCK_DIV4);
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE0);
     EPD.Dis_Clear_full();

 }

void loop() {
 
    if (digitalRead(SW1)==0|digitalRead(SW2)==0)
  month=month+1; 
    if (month>12)
 { month =1;
  year =year+1;}
  
  print_calendar(month,year);
 
delay(2000);

  
}

E_Ink_display_Calendar.zip

Arduino
No preview (download only).

Credits

Shahariar

Shahariar

71 projects • 260 followers
"What Kills a 'Great life' is a 'Good Life', which is Living a Life Inside While Loop"

Comments