yuuya kimura / Mbed 2 deprecated yuu

Dependencies:   SB1602E mbed

Fork of SB1602E_Hello by Tedd OKANO

Files at this revision

API Documentation at this revision

Comitter:
okano
Date:
Mon Oct 20 12:59:46 2014 +0000
Child:
1:23b641db0735
Commit message:
A Hello program for the text LCD module SB1602E class driver.; The SB1602E's old class driver (TextLCD_SB1602B) has been rewritten in more common manner of I2C devices.

Changed in this revision

SB1602E.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SB1602E.lib	Mon Oct 20 12:59:46 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/okano/code/SB1602E/#995f80348e02
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 20 12:59:46 2014 +0000
@@ -0,0 +1,26 @@
+/** Hello program for the text LCD module "SB1602E" class library
+ *
+ *  @author  Tedd OKANO
+ *  @version 2.0
+ *  @date    20-Oct-2014
+ *
+ *  SB1602E is an I2C based low voltage text LCD panel (based Sitronix ST7032 chip)
+ *  The module by StrawberryLinux
+ *  http://strawberry-linux.com/catalog/items?code=27002 (Online shop page (Japanese))
+ *  http://strawberry-linux.com/pub/ST7032i.pdf (datasheet of the chip)
+ *
+ *  This is a library to operate this module easy.
+ *
+ *  Released under the Apache 2 license License
+ */
+
+#include "mbed.h"
+#include "SB1602E.h"
+
+SB1602E lcd(  p9, p10 );    //  SDA, SCL
+//SB1602E lcd( p28, p27 );  //  SDA, SCL
+
+int main() {
+    lcd.printf( 0, "Hello world!" );    //  line# (0 or 1), string
+    lcd.printf( 1, "pi = %.6f", 3.14159265 );
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Oct 20 12:59:46 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file