first commit

Dependencies:   LCD192GC00 mbed

Files at this revision

API Documentation at this revision

Comitter:
og
Date:
Fri Sep 30 13:25:38 2016 +0000
Commit message:
first commit

Changed in this revision

LCD192GC00.lib Show annotated file Show diff for this revision Revisions of this file
imagedata.h 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
diff -r 000000000000 -r 3ab6473fa4f7 LCD192GC00.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD192GC00.lib	Fri Sep 30 13:25:38 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/og/code/LCD192GC00/#d5aa6eeefe77
diff -r 000000000000 -r 3ab6473fa4f7 imagedata.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/imagedata.h	Fri Sep 30 13:25:38 2016 +0000
@@ -0,0 +1,136 @@
+/****************************
+* イメージデータ
+*****************************/
+
+const unsigned char Header1[1024]={
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x80,0xC0,0xC0,0xE0,0xF0,0xF0,0xF8,0xF8,0xFC,0xFC,0xFE,0xFE,0xFE,0xFE,0xFE,
+0xFE,0xFE,0xFE,0xFE,0xFC,0xFC,0xFC,0xFC,0xF8,0xF0,0xC0,0x00,0x60,0xF0,0xF8,0xF8,
+0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xF8,0xFC,
+0xFF,0xFF,0xFF,0xFF,0xFF,0x3F,0x1F,0x0F,0x03,0x03,0x03,0x07,0x1F,0x7F,0xFF,0xFF,
+0xFF,0xFF,0x7F,0x3F,0x0F,0x07,0x03,0x03,0x07,0x1F,0x7F,0xFF,0xFC,0xF0,0xC0,0x80,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,
+0x3F,0x1F,0x07,0x1F,0x3F,0xFF,0xFC,0xF0,0xE0,0x80,0x00,0x00,0x00,0x00,0x00,0x03,
+0x0F,0x3F,0x7F,0xFC,0xF0,0xC0,0x80,0x00,0x00,0x00,0x00,0x01,0x07,0x0F,0x3F,0xFF,
+0xFE,0xF8,0xE0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x03,0x00,
+0x00,0x00,0x00,0x80,0xC0,0xF0,0xFF,0xFF,0xFF,0xFF,0xFE,0xF8,0xF0,0xC0,0x00,0x00,
+0x00,0x00,0x80,0xC1,0xF7,0xFF,0xFF,0xFE,0xF8,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,
+0x03,0x0F,0x1F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x08,0x1E,0x1F,0x3F,0x7F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,
+0xFC,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x3F,0x3C,0x10,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0xFC,0xFC,0xF8,
+0xF0,0xC0,0x00,0x00,0x00,0x00,0xC0,0xF0,0xF8,0xFC,0xFC,0xF8,0x00,0x00,0x00,0x80,
+0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,
+0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x81,0x81,0x83,0x03,0x03,0x03,0x03,0x83,
+0x83,0x83,0x83,0x83,0x83,0x81,0x81,0x81,0x80,0x00,0x00,0x00,0x00,0x80,0x80,0x80,
+0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,
+0x80,0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x80,0x80,0x80,
+0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,0xFF,0x7F,0x7F,
+0xFF,0xFF,0xFC,0xE0,0xF8,0xFF,0xFF,0xFF,0x1F,0xFF,0xFF,0xFF,0xFC,0x00,0x00,0xFF,
+0xFF,0xFF,0xFF,0xFE,0xFF,0xFF,0xFF,0x0F,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x04,
+0xFF,0xFF,0xFF,0xFF,0xC7,0xC7,0xC7,0xC7,0xC7,0xFF,0xFF,0xFF,0x78,0xFE,0xFF,0xFF,
+0xFF,0x0F,0x07,0x07,0x07,0x07,0x0F,0xFF,0xFF,0xFF,0x00,0xFE,0xFF,0xFF,0xFF,0x07,
+0x07,0x07,0x07,0x0F,0x0F,0x0F,0x0F,0x00,0xFF,0xFF,0xFF,0xFF,0xF0,0xF0,0xF0,0xF0,
+0xFF,0xFF,0xFF,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0xFF,0xFF,0xFF,0xC7,0xC7,0xC7,
+0xC7,0xC7,0xEF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x3F,0x3F,0x3F,0x00,0x00,
+0x03,0x0F,0x1F,0x1F,0x1F,0x1F,0x03,0x00,0x00,0x00,0x3F,0x3F,0x3F,0x3C,0x00,0x3F,
+0x3F,0x3F,0x3F,0x0F,0x1F,0x1F,0x3F,0x3E,0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x1C,0x0C,
+0x3F,0x3F,0x3F,0x3F,0x03,0x03,0x03,0x03,0x03,0x3F,0x3F,0x3F,0x3E,0x0F,0x1F,0x3F,
+0x3F,0x3E,0x3C,0x3C,0x3C,0x3C,0x3E,0x3F,0x1F,0x07,0x00,0x0F,0x1F,0x3F,0x3F,0x3C,
+0x3C,0x3C,0x3C,0x3C,0x3C,0x3C,0x1C,0x00,0x3F,0x3F,0x3F,0x3F,0x01,0x01,0x01,0x01,
+0x3F,0x3F,0x3F,0x3F,0x00,0x3F,0x3F,0x3F,0x3F,0x00,0x3F,0x3F,0x3F,0x03,0x03,0x03,
+0x03,0x03,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00       //1枚目終了
+};
+const unsigned char Header2[1024]={
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xD0,0x90,0x90,
+0x90,0x90,0x90,0x90,0xF0,0xF0,0xF0,0xF0,0x90,0x90,0x98,0x9C,0x9C,0x98,0xD0,0xC0,
+0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
+0x10,0x10,0x90,0xD0,0xF0,0xFC,0x7C,0x78,0x30,0x20,0x00,0x00,0x00,0x00,0x00,0x00,
+0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
+0xC0,0xE0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x80,0xFC,0xFC,0xFC,0x7C,0x08,
+0x08,0xF0,0xFE,0xFE,0xFC,0x9C,0x8C,0x80,0x80,0x80,0x80,0xE0,0xE0,0xE0,0x80,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x0F,0x2F,0x2F,0x24,0x24,
+0x24,0x3F,0x3F,0x36,0xFF,0xFF,0xFF,0xFF,0x24,0x24,0x25,0x27,0x36,0x3E,0x3F,0x27,
+0x03,0x01,0x00,0x00,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0xFE,0xFE,
+0xFC,0xFE,0x47,0x41,0x41,0x40,0x40,0x60,0x70,0x70,0x60,0x40,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xF8,0xFF,0xFF,0xFF,0xFF,0xC4,0xF8,
+0x3F,0x1F,0x07,0xFF,0xFF,0xFF,0xFF,0x40,0x40,0x40,0x70,0x70,0x60,0x40,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,
+0xFE,0x12,0x12,0x12,0xFE,0xFE,0xFE,0xFE,0x12,0x12,0x12,0xFE,0xFF,0xFF,0xFF,0x02,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,
+0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x03,0x01,0xFF,0xFF,0xFF,0xFF,0x00,0x00,
+0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x20,0x20,0x20,0x20,0x38,0x38,0x38,0x30,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x07,0x07,
+0x03,0x01,0x01,0x01,0x3F,0x7F,0x7F,0x7F,0x71,0x71,0x71,0x73,0x73,0x73,0x7B,0x7F,
+0x7F,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x18,0x78,0x7F,0x7F,
+0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,
+0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x0F,0x0F,0x0F,0x0F,0x08,0x08,0x08,0x08,
+0x08,0x0C,0x0E,0x0E,0x0C,0x08,0x00,0x00,0x00,0x00,0x7F,0x7F,0x3F,0x3F,0x00,0x00,
+0x00,0x00,0x00,0x7F,0x7F,0x7F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x20,0x20,0xE0,0xE0,0xE0,0x20,0x20,0x20,0x60,0xE0,0xC0,0x80,0x00,0x00,
+0x20,0x20,0xE0,0xE0,0xE0,0x20,0x20,0x00,0x00,0x00,0x00,0xC0,0xE0,0x70,0x30,0x10,
+0x10,0x30,0x70,0xF0,0xE0,0x00,0x00,0xC0,0xC0,0x80,0x00,0x00,0x00,0x80,0x80,0x80,
+0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0xE0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE8,0xF8,0xF8,
+0xF0,0x60,0x40,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x80,0x80,0xC0,0xC0,0x80,0x00,0x00,0x00,0x20,0x60,0xE0,0xE0,0xC0,0xC0,
+0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x80,0xC0,0xFF,0xFF,0x3F,0x00,
+0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0xF8,0xFF,0xFF,0x03,0x00,0x00,0x00,
+0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x03,0x0F,0x0F,0x07,0x87,0x83,0x03,0x03,
+0x03,0x03,0x01,0x01,0xC1,0xF1,0xFD,0x7F,0x3F,0x1F,0x07,0x03,0x01,0x00,0x00,0x00,
+0x00,0x00,0x00,0x80,0xC0,0xE0,0xE0,0x70,0xF8,0xFC,0xFE,0xFF,0x3F,0x07,0x03,0x01,
+0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x07,0x0F,0x0F,0x07,0x07,0x07,0x07,0x07,0x03,
+0x03,0x03,0x03,0xE3,0xFF,0xFF,0xFF,0x1F,0x00,0x00,0x00,0x00,0x00,0x01,0x07,0x0F,
+0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0xF0,0x3C,0x0C,0x00,0x00,
+0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,
+0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xC0,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x07,0x0F,
+0x1E,0x7C,0xFC,0xFF,0xE7,0xC1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,
+0x06,0x03,0x03,0x01,0x01,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x80,0x80,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
+0x80,0xC0,0xE0,0xE0,0xF0,0xF8,0x7C,0x3E,0x1F,0x07,0x03,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x08,0x08,0x0F,0x0F,0x0F,0x08,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x08,0x08,0x0F,0x0F,0x0F,0x08,0x08,0x00,0x00,0x00,0x00,0x03,0x07,0x0E,0x0C,0x08,
+0x08,0x0C,0x04,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x03,0x0F,0x0F,0x0F,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x3F,0x7F,0x7F,0x00,0x00,0x00,0x00,
+0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x0F,0x0F,0x07,0x07,0x07,0x07,0x03,0x03,
+0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x00,0x00,0x03,0x07,0x0E,0x1F,0x1F,0x0F,
+0x07,0x07,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
+};
diff -r 000000000000 -r 3ab6473fa4f7 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 30 13:25:38 2016 +0000
@@ -0,0 +1,243 @@
+/**
+    reference:
+    http://www.picfun.com/PIC24F/AP/app24F15.html
+
+    NNUCLEO_F103RB  処理速度が遅い
+    NNUCLEO_F446RE  Ok
+    ARCH_PRO        Ok
+    LPC1768 + Mbed Shield   電源の問題あり
+**/
+
+#include "mbed.h"
+#include "LCD192GC00.h"
+#include "imagedata.h"
+
+
+#if defined(TARGET_ARCH_PRO)
+LCD192GC00 tft(A0, A1, A2, A3, A4, D2, D3, D4, D5, D6, D7, D8, D9);
+Serial pc(USBTX, USBRX);
+//SDFileSystem sd(D11, D12, D13, D10, "sd"); // mosi miso sclk cs
+#elif defined(TARGET_LPC1768)
+LCD192GC00 tft(p15, p16, p17, p18, p19, p8, p26, p25, p24, p23, p10, p9, p22);
+Serial pc(USBTX, USBRX);
+//SDFileSystem sd(p5, p6, p7, p21, "sd"); // mosi miso sclk cs
+#elif defined TARGET_NUCLEO_F446RE
+/* D0, D1 short SB62,SB63*/
+LCD192GC00 tft(A0, A1, A2, A3, A4, D2, D3, D4, D5, D6, D7, D8, D9);
+Serial pc(USBTX, USBRX);
+//SDFileSystem sd(D11, D12, D13, D10, "sd"); // mosi miso sclk cs
+
+#elif defined TARGET_NUCLEO_F103RB
+LCD192GC00 tft(A0, A1, A2, A3, A4, D2, D3, D4, D5, D6, D7, D8, D9);
+Serial pc(USBTX, USBRX);
+//SDFileSystem sd(D11, D12, D13, D10, "sd"); // mosi miso sclk cs
+#endif
+
+int16_t i, j, SW, Flag, Size, XOffset, YOffset;
+uint8_t ASCII;
+/* Prototyping  */
+void D2Graph(short Hight);
+
+int main() {
+    tft.lcd_Init();
+    tft.lcd_Clear(BLACK);
+    SW=6;
+    while(1) {
+        SW++;
+        if(SW==7)
+            SW = 0;
+        /* スイッチの値により各処理へ分岐 */
+        switch(SW){
+            /****** ANK文字表示 *********/
+            case 0:                                         // 文字表示テスト              
+                tft.lcd_Clear(BLACK);                               // クリア
+                for(j=0; j<4; j++){                         // ASCII文字全表示 XChar文字/行
+                    for(i=0; i<XChar; i++){
+                        ASCII = j*XChar+i+0x20;             // XChar文字で繰り返し
+                        tft.lcd_Char(i, j, ASCII, WHITE, BLACK);    // 文字表示制御
+                    }
+                }
+                for(j=4; j<8; j++){                         // ASCII文字全表示 XChar文字/行
+                    for(i=0; i<XChar; i++){
+                        ASCII = j*XChar+i+0x20;             // XChar文字で繰り返し
+                        tft.lcd_Char(i, j, ASCII, GREEN, BLACK);    // 文字表示制御
+                    }
+                }
+                for(j=8; j<12; j++){                            // ASCII文字全表示 Xchar文字/行
+                    for(i=0; i<XChar; i++){
+                        ASCII = j*XChar+i+0x20;             // XChar文字で繰り返し
+                        tft.lcd_Char(i, j, ASCII, RED, BLACK);      // 文字表示制御
+                    }
+                }
+                for(j=12; j<YLine; j++){                        // ASCII文字全表示 XChar文字/行
+                    for(i=0; i<XChar; i++){
+                        ASCII = j*XChar+i+0x20;             // XChar文字で繰り返し
+                        tft.lcd_Char(i, j, ASCII, YELLOW, BLACK);   // 文字表示制御
+                    }
+                }
+                wait_ms(3000);                             // 1.5秒待ち
+                break;
+            /******** 文字列表示テスト *******/
+            case 1:                                         // 文字列の表示テスト
+                tft.lcd_Clear(BLACK);
+                wait_ms(100);              
+                tft.lcd_Str(0, 0, "Hello World!!", RED, BLACK);
+                tft.lcd_Str(0, 2, "Graphic LCD Test", GREEN, BLACK);
+                tft.lcd_Str(0, 4, "This is Yellow. ", YELLOW, BLACK);
+                tft.lcd_Str(0, 6, "This is Cyan.   ", CYAN, BLACK);
+                tft.lcd_Str(0, 8, "This is Magenta.", MAGENTA, BLACK);
+                tft.lcd_Str(0, 10, "This is Blue and over 30 character case.", BLUE, BLACK); 
+                tft.lcd_Str(0, 12, "This is WHITE.", WHITE, BLACK);
+                tft.lcd_Str(0, 14, "This is PINK.", PINK, BLACK);
+                tft.lcd_Str(0, YLine-1, "This is ORANGE.", ORANGE, BLACK);
+                wait_ms(3000);
+                break;
+            /***** 直線描画テスト(斜め直線) *********/         
+            case 2:                                         /* ピクセル表示機能 */                          
+                tft.lcd_Clear(BLACK);                               // 全クリア
+                for(i=0; i<=ENDPAGE; i++){                      // 斜め直線の表示
+                    tft.lcd_Pixel(i*1.33,i,RED);                    // CS1側
+                }
+                wait_ms(2000);                             // 2秒待ち
+                tft.lcd_Clear(WHITE);                               // 全部白
+                for(i=0; i<=ENDCOL; i++){                       // 斜め直線表示
+                    tft.lcd_Pixel(i*1.33, i, BLUE);
+                }
+                wait_ms(1500);                             // 1.5秒待ち
+                break;
+            /************ 直線ボックス表示 **************/
+            case 3:                                         // 直線描画テスト
+                tft.lcd_Clear(BLACK);
+                if(ENDPAGE < ENDCOL){
+                    Size = ENDPAGE;
+                    XOffset = (ENDCOL - ENDPAGE) / 2;
+                    YOffset = 0;
+                }
+                else{
+                    Size = ENDCOL;
+                    XOffset = 0;
+                    YOffset = (ENDPAGE - ENDCOL) / 2;
+                }       
+                for(j=0; j<Size/2; j+=4){                       // ボックス表示
+                    if(Flag){
+                        Flag = 0;
+                        // 次第に小さなボックスへ
+                        tft.lcd_Line(j+XOffset,j+YOffset, Size-j+XOffset, j+YOffset, RED);
+                        tft.lcd_Line(j+XOffset,j+YOffset, j+XOffset, Size-j+YOffset, GREEN);
+                        tft.lcd_Line(Size-j+XOffset,Size-j+YOffset, Size-j+XOffset,j+YOffset, RED);
+                        tft.lcd_Line(Size-j+XOffset,Size-j+YOffset, j+XOffset,Size-j+YOffset, GREEN);
+                    }
+                    else{
+                        Flag = 1;
+                        // 次第に小さなボックスへ
+                        tft.lcd_Line(j+XOffset,j+YOffset, Size-j+XOffset, j+YOffset, YELLOW);
+                        tft.lcd_Line(j+XOffset,j+YOffset, j+XOffset, Size-j+YOffset, BLUE);
+                        tft.lcd_Line(Size-j+XOffset,Size-j+YOffset, Size-j+XOffset,j+YOffset, YELLOW);
+                        tft.lcd_Line(Size-j+XOffset,Size-j+YOffset, j+XOffset,Size-j+YOffset, BLUE);
+                    }
+                }
+                wait_ms(3000);
+                break;
+            /**************** 曲線描画(2次元グラフ表示)****************/
+            case 4:
+                for(i=0; i<8; i++){                     // 曲線描画
+                    tft.lcd_Clear(BLACK);                           
+                    tft.lcd_Str(0, 0, "Graphic Display", BLUE, BLACK);
+                    D2Graph(20*i);                      //曲面グラフ表示
+                    wait_ms(2000);
+                }
+                break;
+            /******* イメージグラフィック表示 ********/
+            case 5:                                     // イメージの表示テスト
+                tft.lcd_Clear(BLACK);
+                tft.lcd_Image(0, Header1, MAGENTA, BLACK);
+                tft.lcd_Image(8, Header2, CYAN, BLACK);
+                wait_ms(3000);
+                break;
+            /******** 全画面クリア(各色クリア) ***********/
+            case 6:                                     // 全画面クリアのテスト   
+                tft.lcd_Clear(WHITE);                           // 各色の表示
+                wait_ms(1500);
+                tft.lcd_Clear(RED);
+                wait_ms(500);
+                tft.lcd_Clear(GREEN);
+                wait_ms(500);
+                tft.lcd_Clear(BLUE);
+                wait_ms(500);
+                tft.lcd_Clear(CYAN);
+                wait_ms(500);
+                tft.lcd_Clear(MAGENTA);
+                wait_ms(500);
+                tft.lcd_Clear(YELLOW);
+                wait_ms(500);
+                tft.lcd_Clear(BROWN);
+                wait_ms(500);
+                tft.lcd_Clear(ORANGE);
+                wait_ms(500);
+                tft.lcd_Clear(PINK);
+                wait_ms(500);
+                tft.lcd_Clear(BLACK);
+                wait_ms(1000);
+                break;
+            /**** default **********/       
+            default: wait_ms(300);
+                 break;
+        }
+
+    }
+}
+
+/*********************************************
+*  2次元立体グラフ描画関数
+*   z(x,y) = 1/(1+SQRT(x2+y2))*COS(SQRT(x2+y2))
+*    (-3*PI< x,y < 3*PIの範囲)
+*   zの最大値をPOTで変更する
+**********************************************/
+/* グローバル定数 */
+#define X0  5
+#define Y0  20
+#define PI  3.141592654f
+#define NODES   38
+#define SIDE    6
+// 描画関数
+void D2Graph(short Hight) {
+    short i, j, px, py,x, y, z;
+    float zf, xf, yf, sf;
+    struct{
+        short x;
+        short y;
+    } edge[NODES], prev;
+
+    tft.lcd_Line(X0, 3, X0, ENDPAGE-12 ,GREEN);             // z axis
+    tft.lcd_Line(X0-3, Y0, ENDCOL, Y0, GREEN);              // x axis
+    tft.lcd_Line(X0, Y0-2, X0+140, Y0+140, GREEN);          // y axis
+    for(j=0; j<NODES; j++) {
+        edge[j].x = X0 + j*SIDE/2;
+        edge[j].y = Y0 + j*SIDE/2;
+    }
+    for(i=0; i<NODES; i++) {
+        x = i *SIDE;
+        xf = (6 * PI / 200) *(float)(x-100);
+        prev.y = Y0;
+        prev.x = X0 + x;
+        for(j=0; j<NODES; j++) {
+            y = j * SIDE;
+            yf = (6 * PI /200) * (float)(y -100);
+            sf = sqrt(xf * xf + yf * yf);
+            zf = 1/(1+sf) * cos(sf);
+            z = zf * Hight;
+            px = X0 + x + y/2;
+            py = Y0 + z + y/2;
+            tft.lcd_Pixel(px, ENDPAGE-5-py, 1);
+            tft.lcd_Line(px, py, prev.x, prev.y, RED);
+            tft.lcd_Line(px, py, edge[j].x, edge[j].y, RED);
+            prev.x = px;
+            prev.y = py;
+            edge[j].x = px;
+            edge[j].y = py;
+        }
+    }
+}
+
+
+
diff -r 000000000000 -r 3ab6473fa4f7 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 30 13:25:38 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/2e9cc70d1897
\ No newline at end of file