Skip to content

toddbranch/LCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MSP430g2553 LCD Driver

Methods

  • void initSPI();
    • Initializes SPI subsystem to LCD specs
  • void LCDinit();
    • Sends command sequence to initialize LCD
  • void LCDclear();
    • Sends command to clear LCD
  • void cursorToLineTwo();
    • Sends command to set cursor to first position on line two
  • void cursorToLineOne();
    • Sends command to set cursor to first position on line one
  • void writeChar(char asciiChar);
    • Writes a character to the current cursor position
  • void writeString(char * string);
    • Writes a string to the current cursor position
  • void scrollString(char * string1, char * string2);
    • Scrolls strings across top and bottom lines of the LCD

LCD Setup

#include "LCD.h"

int main()
{
	WDTCTL = WDTPW | WDTHOLD;

	initSPI();
	LCDinit();
	LCDclear();

	// your code
}

About

MSP430g2553 LCD driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published