Simon Ford
/
NokiaLCD_HelloWorld
Hello World Example for the Nokia LCD library
main.cpp
- Committer:
- simon
- Date:
- 2010-11-19
- Revision:
- 1:823d052d5150
- Parent:
- 0:fd3c4e179035
File content as of revision 1:823d052d5150:
// Hello World! for Nokia LCD, sford // - LCD6610 is for newest Sparkfun breakout #include "mbed.h" #include "NokiaLCD.h" NokiaLCD lcd(p5, p7, p8, p9, NokiaLCD::LCD6610); // mosi, sclk, cs, rst, type int main() { lcd.background(0x0000FF); lcd.cls(); lcd.fill(2, 51, 128, 10, 0x00FF00); lcd.fill(50, 1, 10, 128, 0xFF0000); lcd.locate(0,3); lcd.printf("Hello World!"); for (int i=0; i<130; i++) { lcd.pixel(i, 80 + sin((float)i / 5.0)*10, 0x000000); } }