エレキジャックweb mbed入門 Nokia LCD3300@aitendo テストプログラム

Dependencies:   mbed

Committer:
takeuchi
Date:
Sun Oct 03 10:21:07 2010 +0000
Revision:
0:327cf35353c3

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
takeuchi 0:327cf35353c3 1 // NokiaLCD for 3300
takeuchi 0:327cf35353c3 2 #include "mbed.h"
takeuchi 0:327cf35353c3 3 #include "NokiaLCD.h"
takeuchi 0:327cf35353c3 4
takeuchi 0:327cf35353c3 5 NokiaLCD lcd(p5, p7, p8, p9); // mosi, sclk, cs, rst
takeuchi 0:327cf35353c3 6
takeuchi 0:327cf35353c3 7 int main() {
takeuchi 0:327cf35353c3 8 lcd.background(0xFF0099);//Red Purpule
takeuchi 0:327cf35353c3 9 //lcd.background(0x0000FF);//Blue
takeuchi 0:327cf35353c3 10 lcd.cls();
takeuchi 0:327cf35353c3 11 lcd.locate(0,0);
takeuchi 0:327cf35353c3 12 lcd.printf("Hello");
takeuchi 0:327cf35353c3 13 lcd.locate(4,1);
takeuchi 0:327cf35353c3 14 lcd.printf("mbed");
takeuchi 0:327cf35353c3 15 lcd.locate(8,2);
takeuchi 0:327cf35353c3 16 lcd.printf("LCD");
takeuchi 0:327cf35353c3 17 lcd.locate(10,3);
takeuchi 0:327cf35353c3 18 lcd.printf("World");
takeuchi 0:327cf35353c3 19 }