Home Chipkit Chipkit Max32 and sainsmart LCD4884 shield example

Chipkit Max32 and sainsmart LCD4884 shield example

by shedboy71

Chipkit MAx32 and LCD4884 shield example, there seems to be a couple of different LCD4884 shields with slightly different pinouts. This is for this variant which is made by DFrobot and Sainsmart

Code

I tried this library

http://www.rinkydinkelectronics.com/library.php?id=44

This is the LCD5110_Bitmap example , the main modification is the pins used

LCD5110 myGLCD(2,3,4,6,5);

[codesyntax lang=”cpp”]

#include <LCD5110_Basic.h>

LCD5110 myGLCD(2,3,4,6,5);

extern uint8_t ck_logo[];
extern uint8_t oshw_logo[];

void setup()
{
  myGLCD.InitLCD();
}

void loop()
{
  myGLCD.drawBitmap(0, 8, ck_logo, 84, 32);
  delay(4000);
  for (int i=0; i<2; i++)
  {
    myGLCD.invert(true);
    delay(500);
    myGLCD.invert(false);
    delay(500);
  }
  delay(4000);

  myGLCD.clrScr();
  myGLCD.drawBitmap(14, 0, oshw_logo, 56, 48);
  delay(4000);
  for (int i=0; i<2; i++)
  {
    myGLCD.invert(true);
    delay(500);
    myGLCD.invert(false);
    delay(500);
  }
  delay(4000);

  myGLCD.clrScr();
}

[/codesyntax]

 

Link

 

SainSmart Graphic LCD4884 Shield For Arduino Duemilanove UNO MEGA2560 MEGA1280

Share

You may also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More