Abe Takumi
/
ssd1963_test
for yamada
Revision 0:0f410f137263, committed 2013-08-05
- Comitter:
- YSB
- Date:
- Mon Aug 05 08:15:12 2013 +0000
- Commit message:
- for yamada;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ASCII12dot.h Mon Aug 05 08:15:12 2013 +0000 @@ -0,0 +1,272 @@ +/*************************************************** +* ASCIIフォントデータ 12x12ドット +* M+ Bitmap Fontsより変換して作成 +* ASCII Code 0x20 to 0xFF +****************************************************/ + +const char ANKFont[256][18] = { +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x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,0x8,0x0,0x80,0x10,0x2,0x0,0x40,0x4,0x0,0x0,0x4,0x0,0x0}, //? +{0x0,0x0,0xF0,0x30,0x82,0x64,0x49,0x44,0x94,0x49,0x44,0x94,0x27,0x83,0x0,0xE,0x0,0x0}, //@ +{0x0,0x0,0x40,0x4,0x0,0xA0,0xA,0x1,0x10,0x11,0x3,0xF8,0x20,0x84,0x4,0x40,0x40,0x0}, //A +{0x0,0x3,0xF0,0x20,0x82,0x8,0x20,0x83,0xF0,0x20,0x82,0x4,0x20,0x42,0x8,0x3F,0x0,0x0}, +{0x0,0x0,0xF8,0x10,0x42,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x20,0x1,0x4,0xF,0x80,0x0}, +{0x0,0x3,0xE0,0x21,0x82,0x8,0x20,0x42,0x4,0x20,0x42,0x4,0x20,0x82,0x18,0x3E,0x0,0x0}, +{0x0,0x3,0xF8,0x20,0x2,0x0,0x20,0x3,0xF0,0x20,0x2,0x0,0x20,0x2,0x0,0x3F,0x80,0x0}, +{0x0,0x3,0xF8,0x20,0x2,0x0,0x20,0x3,0xF0,0x20,0x2,0x0,0x20,0x2,0x0,0x20,0x0,0x0}, +{0x0,0x0,0xF8,0x10,0x42,0x0,0x20,0x2,0x3C,0x20,0x42,0x4,0x20,0x41,0xC,0xF,0x40,0x0}, +{0x0,0x2,0x4,0x20,0x42,0x4,0x20,0x43,0xFC,0x20,0x42,0x4,0x20,0x42,0x4,0x20,0x40,0x0}, +{0x0,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x0}, +{0x0,0x0,0x10,0x1,0x0,0x10,0x1,0x0,0x10,0x41,0x4,0x10,0x41,0x2,0x20,0x1C,0x0,0x0}, +{0x0,0x2,0x8,0x21,0x2,0x20,0x24,0x2,0x80,0x34,0x2,0x20,0x21,0x2,0x8,0x20,0x40,0x0}, +{0x0,0x2,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x3F,0x80,0x0}, +{0x0,0x4,0x4,0x60,0xC5,0x14,0x4A,0x44,0x44,0x40,0x44,0x4,0x40,0x44,0x4,0x40,0x40,0x0}, +{0x0,0x2,0x8,0x30,0x82,0x88,0x24,0x82,0x28,0x21,0x82,0x8,0x20,0x82,0x8,0x20,0x80,0x0}, +{0x0,0x0,0xF0,0x10,0x82,0x4,0x20,0x42,0x4,0x20,0x42,0x4,0x20,0x41,0x8,0xF,0x0,0x0}, +{0x0,0x3,0xE0,0x21,0x2,0x8,0x20,0x82,0x10,0x3E,0x2,0x0,0x20,0x2,0x0,0x20,0x0,0x0}, +{0x0,0x0,0xF0,0x10,0x82,0x4,0x20,0x42,0x4,0x20,0x42,0x4,0x20,0x41,0x8,0xF,0x0,0x20}, +{0x0,0x3,0xE0,0x21,0x2,0x8,0x20,0x82,0x10,0x3E,0x2,0x10,0x21,0x2,0x8,0x20,0x80,0x0}, +{0x0,0x0,0xF0,0x10,0x82,0x4,0x10,0x0,0xF0,0x0,0x80,0x4,0x20,0x41,0x8,0xF,0x0,0x0}, +{0x0,0x7,0xFC,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x0}, +{0x0,0x2,0x8,0x20,0x82,0x8,0x20,0x82,0x8,0x20,0x82,0x8,0x20,0x81,0x10,0xE,0x0,0x0}, +{0x0,0x2,0x8,0x20,0x82,0x8,0x11,0x1,0x10,0x11,0x0,0xA0,0xA,0x0,0x40,0x4,0x0,0x0}, +{0x0,0x4,0x44,0x44,0x44,0x44,0x44,0x42,0xA8,0x2A,0x82,0xA8,0x11,0x1,0x10,0x11,0x0,0x0}, +{0x0,0x2,0x8,0x20,0x81,0x10,0xA,0x0,0x40,0x4,0x0,0xA0,0x11,0x2,0x8,0x20,0x80,0x0}, +{0x0,0x2,0x8,0x20,0x81,0x10,0x11,0x0,0xA0,0xA,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x0}, +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,0x0,0x6,0x80,0x98,0x10,0x81,0x8,0x9,0x80,0x68,0x0,0x80,0x10}, +{0x0,0x1,0x0,0x10,0x1,0x0,0x16,0x1,0x90,0x10,0x81,0x8,0x10,0x81,0x8,0x10,0x80,0x0}, +{0x0,0x0,0x40,0x4,0x0,0x0,0x0,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x0}, +{0x0,0x0,0x20,0x2,0x0,0x0,0x0,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x40}, +{0x0,0x1,0x0,0x10,0x1,0x0,0x10,0x81,0x10,0x12,0x1,0x40,0x12,0x1,0x10,0x10,0x80,0x0}, +{0x0,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x59,0x86,0x64,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x40,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x17,0x1,0x88,0x10,0x81,0x8,0x10,0x81,0x8,0x10,0x80,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0xE,0x1,0x10,0x20,0x82,0x8,0x20,0x81,0x10,0xE,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x16,0x1,0x90,0x10,0x81,0x8,0x10,0x81,0x90,0x16,0x1,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x6,0x80,0x98,0x10,0x81,0x8,0x10,0x80,0x98,0x6,0x80,0x8}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x16,0x1,0x90,0x10,0x1,0x0,0x10,0x1,0x0,0x10,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0xF,0x1,0x8,0x10,0x0,0xF0,0x0,0x81,0x8,0xF,0x0,0x0}, +{0x0,0x0,0x80,0x8,0x0,0x80,0x3F,0x0,0x80,0x8,0x0,0x80,0x8,0x0,0x88,0x7,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x10,0x81,0x8,0x10,0x81,0x8,0x10,0x81,0x18,0xE,0x80,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x20,0x82,0x8,0x11,0x1,0x10,0xA,0x0,0xA0,0x4,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x44,0x44,0x44,0x44,0x42,0xA8,0x2A,0x81,0x10,0x11,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x20,0x81,0x10,0xA,0x0,0x40,0xA,0x1,0x10,0x20,0x80,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x10,0x81,0x8,0x8,0x80,0x90,0x5,0x0,0x20,0x2,0x0,0x40}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x1F,0x80,0x10,0x2,0x0,0x40,0x8,0x1,0x0,0x1F,0x80,0x0}, //z +{0x0,0xC0,0x10,0x1,0x0,0x10,0x1,0x0,0x10,0x6,0x0,0x10,0x1,0x0,0x10,0x1,0x0,0x10}, //{ +{0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40}, //| +{0x60,0x1,0x0,0x10,0x1,0x0,0x10,0x1,0x0,0xC,0x1,0x0,0x10,0x1,0x0,0x10,0x1,0x0}, //} +{0xFF,0xF0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, //~ +//特殊文字 +{0x0,0x7,0xFC,0x4,0xF,0xFE,0x95,0x27,0xFC,0x44,0x47,0xFC,0x44,0x47,0xFC,0x4,0x20,0x7E}, //電 +{0x0,0x7,0xFE,0x40,0x4,0x10,0x41,0x4,0x10,0x5F,0xE4,0x10,0x41,0x8,0x10,0x81,0x1,0xFE}, //圧 +{0x1,0x0,0x10,0x9F,0xE4,0x24,0x4,0x48,0xFA,0x40,0x20,0x54,0x5,0x42,0x54,0x49,0x48,0x96}, //流 +{0x20,0x2,0x0,0x3F,0xE4,0x20,0x82,0x3,0xFC,0x22,0x2,0x20,0xFF,0xE0,0x20,0x2,0x0,0x20}, //年 +{0x0,0x3,0xFC,0x20,0x42,0x4,0x3F,0xC2,0x4,0x20,0x43,0xFC,0x20,0x42,0x4,0x40,0x44,0x1C}, //月 +{0x0,0x3,0xFC,0x20,0x42,0x4,0x20,0x42,0x4,0x3F,0xC2,0x4,0x20,0x42,0x4,0x20,0x43,0xFC}, //日 +{0x1,0x0,0x10,0xF7,0xE9,0x10,0x91,0x9,0xFE,0xF0,0x49,0xFE,0x90,0x49,0x44,0xF2,0x40,0xC}, //時 +{0x0,0x2,0x78,0x20,0x82,0x4,0x40,0x44,0x2,0xBF,0xA8,0x88,0x8,0x81,0x8,0x10,0x86,0x30}, //分 +{0x1,0x1,0x90,0xE1,0x2,0x54,0x29,0x2E,0x10,0x21,0x6,0x30,0x70,0x2A,0x4,0xA1,0x82,0xE0}, //秒 +{0x0,0x0,0xF0,0x10,0x82,0x4,0x20,0x42,0x4,0x20,0x41,0x8,0x9,0x2,0x94,0x39,0xC0,0x0}, //Ω +{0x0,0x0,0x0,0x0,0x0,0x4,0x8,0x40,0x88,0x8,0x81,0x10,0x13,0x1,0xD0,0x20,0xC2,0x0}, //μ +{0x0,0x0,0x0,0x0,0x0,0x0,0x31,0x84,0xA4,0x84,0x28,0x42,0x4A,0x43,0x18,0x0,0x0,0x0}, //∞ + +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0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0,0x40,0x7F,0xE0,0x42,0x4,0x20,0x42,0x8,0x20,0x82,0x10,0x26,0x1C}, //カ +{0x0,0x0,0x80,0x8,0x0,0x80,0x7F,0xC0,0x40,0x4,0x0,0x40,0x7F,0xE0,0x20,0x2,0x0,0x20}, //キ +{0x0,0x0,0x40,0x4,0x0,0x7C,0x8,0x41,0x4,0x20,0x40,0x8,0x0,0x80,0x10,0x6,0x3,0x80}, //ク +{0x0,0x1,0x0,0x10,0x1,0x0,0x1F,0xE2,0x10,0x41,0x0,0x10,0x2,0x0,0x20,0xC,0x3,0x0}, //ケ +{0x0,0x0,0x0,0x0,0x7,0xFC,0x0,0x40,0x4,0x0,0x40,0x4,0x0,0x40,0x4,0x7F,0xC0,0x4}, //コ +{0x0,0x1,0x8,0x10,0x81,0x8,0x7F,0xE1,0x8,0x10,0x81,0x8,0x1,0x0,0x10,0x6,0x1,0x80}, //サ +{0x0,0x0,0x0,0x30,0x0,0xC0,0x0,0x26,0x2,0x18,0x40,0x4,0x0,0x80,0x10,0x6,0x3,0x80}, //シ +{0x0,0x0,0x0,0x3F,0x80,0x8,0x0,0x80,0x8,0x1,0x0,0x10,0x3,0x0,0x48,0x18,0x46,0x2}, //ス +{0x0,0x1,0x0,0x10,0x1,0x0,0x11,0xC1,0xE4,0xF0,0x81,0x8,0x11,0x1,0x0,0x10,0x0,0xFC}, // +{0x0,0x0,0x0,0x40,0x44,0x4,0x20,0x42,0x4,0x0,0x40,0x8,0x0,0x80,0x10,0x6,0x1,0x80}, // +{0x0,0x0,0x40,0x4,0x0,0x7C,0x8,0x41,0x44,0x22,0x40,0x18,0x0,0x80,0x10,0x6,0x3,0x80}, //タ +{0x0,0x0,0x0,0x3,0xC7,0xC0,0x4,0x0,0x40,0xFF,0xE0,0x40,0x4,0x0,0x40,0x8,0x3,0x0}, //チ +{0x0,0x0,0x0,0x48,0x44,0x84,0x24,0x42,0x44,0x0,0x40,0x8,0x0,0x80,0x10,0x6,0x1,0x80}, //ツ +{0x0,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0x40,0x2,0x0,0x10}, //マ +{0x0,0x0,0x0,0x1C,0x0,0x38,0x0,0x0,0x0,0x1C,0x0,0x30,0x0,0x0,0x0,0x3C,0x0,0x38}, //ミ +{0x0,0x0,0x80,0x8,0x0,0x80,0x8,0x1,0x0,0x10,0x81,0x8,0x20,0x82,0x74,0xF8,0x40,0x4}, //ム +{0x0,0x0,0x10,0x1,0x0,0x10,0x1,0x3,0x10,0xE,0x0,0x38,0x2,0x60,0x40,0x18,0x6,0x0}, //メ +{0x0,0x0,0x0,0x7F,0x80,0x80,0x8,0x0,0x80,0xFF,0xE0,0x80,0x8,0x0,0x80,0x8,0x0,0x78}, //モ +{0x0,0x1,0x0,0x10,0x1,0x1C,0x1E,0x4E,0x84,0x8,0x80,0x88,0x8,0x0,0x40,0x4,0x0,0x40}, //ヤ +{0x0,0x0,0x0,0x0,0x3,0xF0,0x1,0x0,0x10,0x1,0x0,0x10,0x1,0x0,0x10,0xFF,0xE0,0x0}, //ユ +{0x0,0x0,0x0,0x3F,0xC0,0x4,0x0,0x40,0x4,0x3F,0xC0,0x4,0x0,0x40,0x4,0x3F,0xC0,0x4}, //ヨ +{0x0,0x0,0x0,0x3F,0x80,0x0,0x0,0x7,0xFC,0x0,0x40,0x4,0x0,0x80,0x10,0x6,0x1,0x80}, //ラ +{0x0,0x2,0x8,0x20,0x82,0x8,0x20,0x82,0x8,0x20,0x80,0x8,0x1,0x0,0x10,0x2,0x0,0xC0}, //リ +{0x0,0x0,0x20,0x12,0x1,0x20,0x12,0x1,0x20,0x12,0x21,0x22,0x22,0x42,0x24,0x42,0x84,0x30}, //ル +{0x0,0x0,0x0,0x20,0x2,0x0,0x20,0x2,0x0,0x20,0x2,0x4,0x20,0x82,0x10,0x26,0x3,0x80}, //レ +{0x0,0x0,0x0,0x0,0x7,0xFC,0x40,0x44,0x4,0x40,0x44,0x4,0x40,0x44,0x4,0x7F,0xC4,0x4}, //ロ +{0x0,0x0,0x0,0x7F,0xC4,0x4,0x40,0x44,0x4,0x0,0x40,0x8,0x0,0x80,0x10,0x6,0x1,0x80}, //ワ +{0x0,0x0,0x0,0x30,0x0,0xC0,0x0,0x20,0x2,0x0,0x40,0x4,0x0,0x80,0x10,0x6,0x3,0x80}, //ン +{0x10,0x4,0x80,0x20,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, //" +{0x30,0x4,0x80,0x48,0x3,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, //゜ + +/* 特殊文字 */ +{0x30,0x4,0x80,0x48,0x3,0x38,0x4,0x40,0x80,0x8,0x0,0x80,0x8,0x0,0x44,0x3,0x80,0x0}, //℃ +{0x4,0x0,0x40,0xA,0x0,0xA0,0xFB,0xE2,0x8,0x11,0x1,0x50,0x2A,0x83,0x18,0x40,0x40,0x0}, //☆ +{0x4,0x0,0x40,0xE,0x0,0xE0,0xFF,0xE3,0xF8,0x1F,0x1,0xF0,0x3B,0x83,0x18,0x40,0x40,0x0}, //★ +{0x0,0x0,0x60,0x19,0x82,0x4,0x20,0x44,0x2,0x40,0x22,0x4,0x20,0x41,0x98,0x6,0x0,0x0}, //○ +{0x0,0x0,0x60,0x1F,0x83,0xFC,0x3F,0xC7,0xFE,0x7F,0xE3,0xFC,0x3F,0xC1,0xF8,0x6,0x0,0x0}, //● +{0x0,0x0,0x60,0x19,0x82,0x4,0x26,0x44,0x92,0x49,0x22,0x64,0x20,0x41,0x98,0x6,0x0,0x0}, //◎ +{0x0,0x0,0x40,0xA,0x1,0x10,0x20,0x84,0x4,0x80,0x24,0x4,0x20,0x81,0x10,0xA,0x0,0x40}, //◇ +{0x0,0x0,0x40,0xE,0x1,0xF0,0x3F,0x87,0xFC,0xFF,0xE7,0xFC,0x3F,0x81,0xF0,0xE,0x0,0x40}, //◆ +{0x0,0x0,0x0,0x7F,0xC4,0x4,0x40,0x44,0x4,0x40,0x44,0x4,0x40,0x44,0x4,0x7F,0xC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0x2A,0x16}, //測 +{0x0,0xF,0xFE,0x1,0x0,0x20,0x4,0x0,0xD0,0x34,0x8C,0x44,0x4,0x20,0x40,0x4,0x0,0x40}, //不 +{0x4,0x2,0x4E,0x5F,0x8,0x50,0x1F,0xE2,0x92,0x4F,0x2C,0x22,0x5F,0xA5,0x22,0x7F,0xA4,0x26}, //衛 +{0x0,0x3,0xF8,0x20,0x83,0xF8,0x20,0x83,0xF8,0x24,0x7,0xFC,0x84,0x3,0xF8,0x4,0xF,0xFE}, //星 +{0x0,0x0,0xFC,0x88,0x44,0xFC,0x8,0x48,0xFC,0x40,0x0,0xFE,0xA,0xA2,0xAA,0x4A,0xA9,0xFE}, //温 +{0x0,0x0,0xFC,0x88,0x44,0xFC,0x8,0x48,0xFC,0x40,0x0,0x50,0x55,0x24,0xD4,0x85,0x9,0xFE}, //湿 +{0x0,0xF,0xFE,0x80,0x28,0x2,0x9F,0x29,0x12,0x91,0x29,0x12,0x9F,0x28,0x2,0x80,0x2F,0xFE}, //回 +{0x0,0x2,0x3E,0xFC,0x2,0x0,0xFC,0xA,0x7E,0xFC,0x8A,0x48,0xFD,0x2,0x12,0xFE,0x22,0x3E}, //転 +{0x0,0x7,0xFE,0x44,0x24,0x42,0x5F,0x24,0x42,0x5F,0xA4,0x2,0x5F,0x25,0x12,0x9F,0x28,0x6}, //周 +{0x1,0x0,0x10,0x8F,0xE4,0x92,0x9,0x8,0xFC,0x48,0x40,0xA4,0x51,0x45,0x8,0x83,0x48,0xC2}, //波 +{0x21,0xA,0x50,0x69,0xEF,0xE4,0x22,0x46,0x84,0xA5,0x4F,0x94,0x48,0x8C,0x88,0x31,0x4C,0xE2},//数 +{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0} +}; + + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 05 08:15:12 2013 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +#include "ssd1963.h" + +TFTout tft(CS,RD,RS,WR,RST,D0,D1,D2,D3,D4,D5,D6,D7); + +int main() { + tft.lcd_Init(); + tft.lcd_Str(0,0,"ssd1963_test",0x000000,0xFFFFFF); + while(1){} +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Aug 05 08:15:12 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ssd1963.cpp Mon Aug 05 08:15:12 2013 +0000 @@ -0,0 +1,273 @@ +#include "mbed.h" +#include "ssd1963.h" +#include "ASCII12dot.h" +/* +BusOut lcd_bus(D0,D1,D2,D3,D4,D5,D6,D7); +DigitalOut RSout(RS); +DigitalOut RDout(RD); +DigitalOut CSout(CS); +DigitalOut WRout(WR); +DigitalOut RSTout(RST); +*/ + +TFTout::TFTout(PinName cs,PinName rd,PinName rs,PinName wr,PinName rst,PinName d0,PinName d1,PinName d2,PinName d3,PinName d4,PinName d5,PinName d6,PinName d7) : _CSout(cs), _RDout(rd), _RSout(rs), _WRout(wr), _RSTout(rst), _lcd_bus(d0,d1,d2,d3,d4,d5,d6,d7){ + wait(0.1);//wait until capacira stabilising + lcd_Init(); + lcd_Clear(0xFFFFFF); +} + +void TFTout::lcd_out(int rs,char data){ + _RDout = 1; + _RSout = rs; + _WRout = 0; + _CSout = 0; + _lcd_bus = data; + //for(int i=0;i<10;i++){} + _CSout = 1; + _WRout = 1; +} + +void TFTout::Command_Write(unsigned char command,unsigned char data1){ + lcd_out(0,command); + lcd_out(1,data1); +} + +void TFTout::SendData(unsigned long color){ + lcd_out(1,(color)>>16); + lcd_out(1,(color)>>8); + lcd_out(1,color); +} + +void TFTout::WindowSet(unsigned int s_x,unsigned int e_x,unsigned int s_y,unsigned int e_y){ + lcd_out(0,0x2a); + lcd_out(1,(s_x)>>8); + lcd_out(1,(s_x)); + lcd_out(1,(e_x)>>8); + lcd_out(1,(e_x)); + + lcd_out(0,0x2b); + lcd_out(1,(s_y)>>8); + lcd_out(1,(s_y)); + lcd_out(1,(e_y)>>8); + lcd_out(1,(e_y)); +} + +void TFTout::lcd_Clear(unsigned long Color){ + unsigned int x,y; + WindowSet(0x0000,0x01df,0x0000,0x010f); + lcd_out(0,0x2c); + for(x=0;x<ENDCOL;x++){ + for (y= 0;y<ENDROW;y++){ + SendData(Color); + } + } +} + +void TFTout::lcd_Init(void){ + _RSTout = 0; + wait(0.000001); + _RSTout = 1; + wait(0.000001); + + lcd_out(0,0x01); //Software Reset + lcd_out(0,0x01); + lcd_out(0,0x01); + Command_Write(0xe0,0x01); // START PLL + Command_Write(0xe0,0x03); // LOCK PLL + + lcd_out(0,0xb0); //SET LCD MODE SET TFT 18Bits MODE + lcd_out(1,0x08); //SET TFT MODE & hsync+Vsync+DEN MODE + lcd_out(1,0x00); //SET TFT MODE & hsync+Vsync+DEN MODE + lcd_out(1,0x01); //SET horizontal size=480-1 HightByte + lcd_out(1,0xdf); //SET horizontal size=480-1 LowByte + lcd_out(1,0x01); //SET vertical size=272-1 HightByte + lcd_out(1,0x0f); //SET vertical size=272-1 LowByte + lcd_out(1,0x00); //SET even/odd line RGB seq.=RGB + + Command_Write(0xf0,0x00); //SET pixel data I/F format=8bit + Command_Write(0x3a,0x60); // SET R G B format = 6 6 6 + + lcd_out(0,0xe2); //SET PLL freq=113.33MHz ; + lcd_out(1,0x22); + lcd_out(1,0x03); + lcd_out(1,0x04); + + lcd_out(0,0xe6); //SET PCLK freq=9MHz ; pixel clock frequency + lcd_out(1,0x01); + lcd_out(1,0x45); + lcd_out(1,0x47); + + lcd_out(0,0xb4); //SET HBP + lcd_out(1,0x02); //SET HSYNC Total = 525 + lcd_out(1,0x0d); + lcd_out(1,0x00); //SET HBP = 43 + lcd_out(1,0x2b); + lcd_out(1,0x28); //SET VBP 41 = 40 + 1 + lcd_out(1,0x00); //SET Hsync pulse start position + lcd_out(1,0x00); + lcd_out(1,0x00); //SET Hsync pulse subpixel start position + + lcd_out(0,0xb6); //SET VBP + lcd_out(1,0x01); //SET Vsync total 286 = 285 + 1 + lcd_out(1,0x1d); + lcd_out(1,0x00); //SET VBP = 12 + lcd_out(1,0x0c); + lcd_out(1,0x09); //SET Vsync pulse 10 = 9 + 1 + lcd_out(1,0x00); //SET Vsync pulse start position + lcd_out(1,0x00); + + lcd_out(0,0x2a); //SET column address + lcd_out(1,0x00); //SET start column address=0 + lcd_out(1,0x00); + lcd_out(1,0x01); //SET end column address=480 + lcd_out(1,0xdf); + + lcd_out(0,0x2b); //SET page address + lcd_out(1,0x00); //SET start page address=0 + lcd_out(1,0x00); + lcd_out(1,0x01); //SET end page address=272 + lcd_out(1,0x0f); + + lcd_out(0,0x29); //SET display on + lcd_out(0,0x2c); +} + +void TFTout::WRITE_PIXEL(int x,int y,unsigned long Color){ + WindowSet(x,x,y,y); + lcd_out(0,0x2c); + SendData(Color); +} + +//************************** +// 直線描画関数 +//************************** +#define abs(a) (((a)>0) ? (a) : -(a)) +void TFTout::lcd_Line(short x0, short y0, short x1, short y1, unsigned long Color) +{ + short steep, t; + short deltax, deltay, error; + short x, y; + short ystep; + + y0=ENDROW-y0 -1; // Y座標反転 + y1=ENDROW-y1 -1; + /// 差分の大きいほうを求める + steep = (abs(y1 - y0) > abs(x1 - x0)); + /// x、yの入れ替え + if(steep){ + t = x0; x0 = y0; y0 = t; + t = x1; x1 = y1; y1 = t; + } + if(x0 > x1) { + t = x0; x0 = x1; x1 = t; + t = y0; y0 = y1; y1 = t; + } + deltax = x1 - x0; // 傾き計算 + deltay = abs(y1 - y0); + error = 0; + y = y0; + /// 傾きでステップの正負を切り替え + if(y0 < y1) ystep = 1; else ystep = -1; + /// 直線を点で描画 + for(x=x0; x<=x1; x++) { + if(steep) WRITE_PIXEL(y,x,Color); else WRITE_PIXEL(x,y,Color); + error += deltay; + if((error << 1) >= deltax) { + y += ystep; + error -= deltax; + } + } +} +//************************************ +// 円を描く関数 +// 中心点と半径を指定 +// (Fussyさんのアルゴリズムを使用) +//************************************ +void TFTout::lcd_Circle(int x0, int y0, int r, unsigned long color) +{ + int x = r; + int y = 0; + int F = -2 * r + 3; + + while(x >= y){ + WRITE_PIXEL(x0+x, y0+y, color); + WRITE_PIXEL(x0-x, y0+y, color); + WRITE_PIXEL(x0+x, y0-y, color); + WRITE_PIXEL(x0-x, y0-y, color); + WRITE_PIXEL(x0+y, y0+x, color); + WRITE_PIXEL(x0-y, y0+x, color); + WRITE_PIXEL(x0+y, y0-x, color); + WRITE_PIXEL(x0-y, y0-x, color); + if(F >= 0){ + x--; + F -= 4 * x; + } + y++; + F += 4 * y + 2; + } +} + +//**************************************** +// ANK文字表示関数 12x12ドット +// 320/12=26文字/行 240/14=17行 +// (0, 0) - (25, 16)の範囲 +//**************************************** +void TFTout::lcd_Char(char colum, char line, unsigned char letter, unsigned long Color1, unsigned long Color2){ + unsigned char j, i, Mask; + + if((colum < XChar) && (line < YLine)){ // 範囲チェック + // ANK表示出力 3バイトの2ラインずつを6回繰り返す + for(j=0; j<6; j++){ + // 8ドット連続部の表示 + Mask = 0x80; + for(i=0; i<8; i++){ + // 1ライン目前半8ドット表示 + if((ANKFont[letter][j*3] & Mask) != 0) + WRITE_PIXEL((colum*12)+i+4, (line*14)+(j*2)+2, Color1); + else + WRITE_PIXEL(colum*12+i+4, line*14+j*2+2, Color2); //背景色 + // 2ライン目後半8ドット表示 + if((ANKFont[letter][j*3+2] & Mask) != 0) + WRITE_PIXEL(colum*12+i+8, line*14+j*2+3, Color1); + else + WRITE_PIXEL(colum*12+i+8, line*14+j*2+3, Color2); //背景色 + Mask = Mask >> 1; + } + // 分割部4ドットずつ表示 + Mask = 0x80; + // 1ライン目後半4ドット表示 + for(i=0; i<4; i++){ + if((ANKFont[letter][j*3+1] & Mask) != 0) + WRITE_PIXEL(colum*12+i+12, line*14+j*2+2, Color1); + else + WRITE_PIXEL(colum*12+i+12, line*14+j*2+2, Color2); //背景色 + Mask = Mask >> 1; + } + // 2ライン目前半4ドット表示 + for(i=4; i<8; i++){ + if((ANKFont[letter][j*3+1] & Mask) != 0) + WRITE_PIXEL(colum*12+i, line*14+j*2+3, Color1); + else + WRITE_PIXEL(colum*12+i, line*14+j*2+3, Color2); //背景色 + Mask = Mask >> 1; + } + } + } +} + +//***************************** +// 文字列描画関数 +// 16文字x20行で指定 +//****************************/ +void TFTout::lcd_Str(char colum, char line, char *s, unsigned long Color1, unsigned long Color2) +{ + while (*s){ + lcd_Char(colum++, line, *s++, Color1, Color2); + if(colum >= XChar){ + line++; + colum = 0; + if(line >= YLine) + line = 0; + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ssd1963.h Mon Aug 05 08:15:12 2013 +0000 @@ -0,0 +1,45 @@ +#define D0 p26 +#define D1 p27 +#define D2 p30 +#define D3 p29 +#define D4 p28 +#define D5 p24 +#define D6 p23 +#define D7 p22 + +#define CS p21 +#define RD p25 +#define RS p19 +#define WR p20 +#define RST p18 + +#define ENDCOL 480 // X +#define ENDROW 272 // Y +#define XChar (short)((ENDCOL) / 12.3) +#define YLine (short)((ENDROW) / 18) + +#ifndef MBED_SSD1963_H +#define MBED_SSD1963_H + +class TFTout{ +public: + TFTout(PinName cs,PinName rd,PinName rs,PinName wr,PinName rst,PinName d0,PinName d1,PinName d2,PinName d3,PinName d4,PinName d5,PinName d6,PinName d7); + + void lcd_out(int rs,char data); + void Command_Write(unsigned char command,unsigned char data1); + void SendData(unsigned long color); + void WindowSet(unsigned int s_x,unsigned int e_x,unsigned int s_y,unsigned int e_y); + void WRITE_PIXEL(int x,int y,unsigned long Color); + + void lcd_Init(void); + void lcd_Clear(unsigned long Color); + void lcd_Char(char colum, char line, unsigned char letter, unsigned long Color1, unsigned long Color2); + void lcd_Str(char colum, char line, char *s, unsigned long Color1, unsigned long Color2); + void lcd_Line(short x0, short y0, short x1, short y1, unsigned long Color); + void lcd_Circle(int x0, int y0, int r, unsigned long color); +private: + DigitalOut _CSout,_RDout,_RSout, _WRout, _RSTout; + BusOut _lcd_bus; +}; + +#endif \ No newline at end of file