C Sample Project for a ea DOGL Display using PIC18F Controller
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
README.md
dogl.c
dogl.h
font.h
main.c
main.h
peri.c
peri.h

README.md

eaDOGL

You will find a C Sample Project for a ea DOGL Display using PIC18F Controller in this repository. Use Microchips MPLAXX IDE with the XC8 Compiler to build the Project. In the main.c file you'll find a usage example. You have to perform the following steps to get the LCD running (all included in the example main.c file):

  1. Find the used IOs for the Display inside the dogl.h
  2. Configure all of these IOs (should match your Hardware) as inputs (TRIS bits to 1)
  3. Initialize the SPI interface (done by the function call spi_init() in the example)
  4. Call the dogl_init() function to initialze the LCD
  5. Have fun with the LCD and print some stuff on it :)

Here are the nesseccary steps (you will find exact these stept in the main.c):

void pic_init (void)
{
    // ...
    TRISC = 0xD0;               // I: 7,6,4 O: 5,3,2,1,0
    // ...
}

void boot (void)
{
    pic_init();
    spi_init();
    dogl_init();
}

void main (void)
{
    boot();

    dogl_charChain(0,0,0,"Hello World"); // print some stuff at X:0 Y:0, not inverted
    while(1);
}