Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Sim
Date:
Wed Dec 02 14:55:59 2009 +0000
Commit message:

Changed in this revision

font8.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 f2ec16cdf989 font8.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/font8.h	Wed Dec 02 14:55:59 2009 +0000
@@ -0,0 +1,258 @@
+const unsigned char font8[8*256] = {
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 00
+	0x00, 0x17, 0x15, 0x1d, 0xf8, 0x20, 0xf8, 0x00, // 01
+	0x00, 0x17, 0x95, 0x5d, 0x20, 0x50, 0x88, 0x00, // 02
+	0x00, 0x1f, 0x95, 0x55, 0x20, 0x50, 0x88, 0x00, // 03
+	0x00, 0x1f, 0x15, 0x15, 0x10, 0xf0, 0x10, 0x00, // 04
+	0x1f, 0x15, 0x15, 0x70, 0x88, 0x88, 0x70, 0x80, // 05
+	0x00, 0x1e, 0x05, 0xfe, 0x20, 0x50, 0x88, 0x00, // 06
+	0x00, 0x1f, 0x15, 0x15, 0x0a, 0xf0, 0x80, 0x80, // 07
+	0x00, 0x1f, 0x15, 0x15, 0x0a, 0xb8, 0xa8, 0xe8, // 08
+	0x00, 0x1f, 0x04, 0x1f, 0x10, 0xf0, 0x10, 0x00, // 09
+	0x00, 0x1f, 0x10, 0x10, 0xf8, 0x28, 0x08, 0x00, // 0a
+	0x00, 0x1f, 0x04, 0xff, 0x20, 0x40, 0x20, 0xf0, // 0b
+	0x00, 0x0e, 0x11, 0x11, 0xf1, 0x89, 0x80, 0x80, // 0c
+	0x00, 0x06, 0x09, 0x09, 0xf9, 0x28, 0x68, 0x90, // 0d
+	0x00, 0x17, 0x15, 0x7d, 0x90, 0x90, 0x60, 0x00, // 0e
+	0x00, 0x17, 0x15, 0x1d, 0x90, 0xf0, 0x90, 0x00, // 0f
+	0x00, 0x1f, 0x11, 0x11, 0x0e, 0xf8, 0xa8, 0xa8, // 10
+	0x00, 0x1f, 0x11, 0x11, 0x0e, 0x90, 0xf8, 0x80, // 11
+	0x00, 0x1f, 0x11, 0x11, 0xce, 0xa8, 0xa8, 0x90, // 12
+	0x00, 0x1f, 0x11, 0x11, 0x8e, 0xa8, 0xa8, 0xf8, // 13
+	0x00, 0x1f, 0x11, 0x51, 0x6e, 0x50, 0xf8, 0x40, // 14
+	0x00, 0x1f, 0x02, 0x04, 0xff, 0x20, 0x50, 0x88, // 15
+	0x00, 0x17, 0x15, 0x1d, 0xf0, 0x20, 0x40, 0xf0, // 16
+	0x00, 0x1f, 0x15, 0x15, 0xf8, 0xa8, 0xa8, 0x50, // 17
+	0x00, 0x06, 0x09, 0x09, 0xf9, 0x20, 0x40, 0xf0, // 18
+	0x00, 0x1f, 0x15, 0xf5, 0x20, 0x40, 0x20, 0xf0, // 19
+	0x00, 0x17, 0x15, 0xfd, 0xa8, 0xa8, 0x50, 0x00, // 1a
+	0x00, 0x1f, 0x15, 0x75, 0x90, 0x90, 0x90, 0x00, // 1b
+	0x00, 0x08, 0x08, 0x08, 0x2a, 0x1c, 0x08, 0x00, // 1c
+	0x00, 0x08, 0x1c, 0x2a, 0x08, 0x08, 0x08, 0x00, // 1d
+	0x00, 0x00, 0x08, 0x04, 0x7e, 0x04, 0x08, 0x00, // 1e
+	0x00, 0x00, 0x10, 0x20, 0x7e, 0x20, 0x10, 0x00, // 1f
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 20
+	0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x00, // 21
+	0x00, 0x00, 0x07, 0x00, 0x00, 0x07, 0x00, 0x00, // 22
+	0x00, 0x14, 0x7f, 0x14, 0x14, 0x7f, 0x14, 0x00, // 23
+	0x00, 0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12, 0x00, // 24
+	0x00, 0x46, 0x26, 0x10, 0x08, 0x64, 0x62, 0x00, // 25
+	0x00, 0x36, 0x49, 0x49, 0x56, 0x20, 0x50, 0x00, // 26
+	0x00, 0x00, 0x00, 0x04, 0x02, 0x01, 0x00, 0x00, // 27
+	0x00, 0x00, 0x00, 0x1c, 0x22, 0x41, 0x00, 0x00, // 28
+	0x00, 0x00, 0x41, 0x22, 0x1c, 0x00, 0x00, 0x00, // 29
+	0x00, 0x00, 0x2a, 0x1c, 0x7f, 0x1c, 0x2a, 0x00, // 2a
+	0x00, 0x00, 0x08, 0x08, 0x3e, 0x08, 0x08, 0x00, // 2b
+	0x00, 0x00, 0x00, 0x80, 0x60, 0x00, 0x00, 0x00, // 2c
+	0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, // 2d
+	0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x00, // 2e
+	0x00, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, // 2f
+	0x00, 0x3e, 0x51, 0x49, 0x49, 0x45, 0x3e, 0x00, // 30
+	0x00, 0x00, 0x44, 0x42, 0x7f, 0x40, 0x40, 0x00, // 31
+	0x00, 0x62, 0x51, 0x51, 0x49, 0x49, 0x46, 0x00, // 32
+	0x00, 0x22, 0x41, 0x49, 0x49, 0x49, 0x36, 0x00, // 33
+	0x00, 0x10, 0x18, 0x14, 0x12, 0x7f, 0x10, 0x00, // 34
+	0x00, 0x27, 0x45, 0x45, 0x45, 0x29, 0x11, 0x00, // 35
+	0x00, 0x3c, 0x4a, 0x49, 0x49, 0x49, 0x30, 0x00, // 36
+	0x00, 0x03, 0x01, 0x71, 0x09, 0x05, 0x03, 0x00, // 37
+	0x00, 0x36, 0x49, 0x49, 0x49, 0x49, 0x36, 0x00, // 38
+	0x00, 0x06, 0x49, 0x49, 0x49, 0x29, 0x1e, 0x00, // 39
+	0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, // 3a
+	0x00, 0x00, 0x00, 0x80, 0x64, 0x00, 0x00, 0x00, // 3b
+	0x00, 0x08, 0x1c, 0x36, 0x63, 0x41, 0x41, 0x00, // 3c
+	0x00, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x00, // 3d
+	0x00, 0x41, 0x41, 0x63, 0x36, 0x1c, 0x08, 0x00, // 3e
+	0x00, 0x02, 0x01, 0x51, 0x09, 0x09, 0x06, 0x00, // 3f
+	0x00, 0x1c, 0x22, 0x49, 0x55, 0x59, 0x4e, 0x00, // 40
+	0x00, 0x7c, 0x0a, 0x09, 0x09, 0x0a, 0x7c, 0x00, // 41
+	0x00, 0x41, 0x7f, 0x49, 0x49, 0x49, 0x36, 0x00, // 42
+	0x00, 0x1c, 0x22, 0x41, 0x41, 0x41, 0x22, 0x00, // 43
+	0x00, 0x41, 0x7f, 0x41, 0x41, 0x22, 0x1c, 0x00, // 44
+	0x00, 0x7f, 0x49, 0x49, 0x49, 0x41, 0x41, 0x00, // 45
+	0x00, 0x7f, 0x09, 0x09, 0x09, 0x01, 0x01, 0x00, // 46
+	0x00, 0x1c, 0x22, 0x41, 0x49, 0x49, 0x3a, 0x00, // 47
+	0x00, 0x7f, 0x08, 0x08, 0x08, 0x08, 0x7f, 0x00, // 48
+	0x00, 0x00, 0x00, 0x41, 0x7f, 0x41, 0x00, 0x00, // 49
+	0x00, 0x20, 0x40, 0x40, 0x41, 0x3f, 0x01, 0x00, // 4a
+	0x00, 0x7f, 0x08, 0x08, 0x14, 0x22, 0x41, 0x00, // 4b
+	0x00, 0x7f, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, // 4c
+	0x00, 0x7f, 0x02, 0x0c, 0x0c, 0x02, 0x7f, 0x00, // 4d
+	0x00, 0x7f, 0x02, 0x04, 0x08, 0x10, 0x7f, 0x00, // 4e
+	0x00, 0x1c, 0x22, 0x41, 0x41, 0x22, 0x1c, 0x00, // 4f
+	0x00, 0x7f, 0x09, 0x09, 0x09, 0x09, 0x06, 0x00, // 50
+	0x00, 0x1c, 0x22, 0x41, 0x51, 0x22, 0x5c, 0x00, // 51
+	0x00, 0x7f, 0x09, 0x09, 0x19, 0x29, 0x46, 0x00, // 52
+	0x00, 0x26, 0x49, 0x49, 0x49, 0x49, 0x32, 0x00, // 53
+	0x00, 0x00, 0x01, 0x01, 0x7f, 0x01, 0x01, 0x00, // 54
+	0x00, 0x3f, 0x40, 0x40, 0x40, 0x40, 0x3f, 0x00, // 55
+	0x00, 0x07, 0x18, 0x60, 0x60, 0x18, 0x07, 0x00, // 56
+	0x00, 0x7f, 0x20, 0x18, 0x18, 0x20, 0x7f, 0x00, // 57
+	0x00, 0x63, 0x14, 0x08, 0x08, 0x14, 0x63, 0x00, // 58
+	0x00, 0x00, 0x07, 0x08, 0x78, 0x08, 0x07, 0x00, // 59
+	0x00, 0x61, 0x51, 0x49, 0x49, 0x45, 0x43, 0x00, // 5a
+	0x00, 0x00, 0x7f, 0x41, 0x41, 0x41, 0x00, 0x00, // 5b
+	0x00, 0x00, 0x2b, 0x2c, 0x78, 0x2c, 0x2b, 0x00, // 5c
+	0x00, 0x00, 0x41, 0x41, 0x41, 0x7f, 0x00, 0x00, // 5d
+	0x00, 0x00, 0x04, 0x02, 0x01, 0x02, 0x04, 0x00, // 5e
+	0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, // 5f
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 60
+	0x00, 0x20, 0x54, 0x54, 0x54, 0x3c, 0x40, 0x00, // 61
+	0x00, 0x7f, 0x28, 0x44, 0x44, 0x44, 0x38, 0x00, // 62
+	0x00, 0x38, 0x44, 0x44, 0x44, 0x44, 0x28, 0x00, // 63
+	0x00, 0x38, 0x44, 0x44, 0x44, 0x28, 0x7f, 0x00, // 64
+	0x00, 0x38, 0x54, 0x54, 0x54, 0x54, 0x18, 0x00, // 65
+	0x00, 0x08, 0x08, 0x7e, 0x09, 0x09, 0x02, 0x00, // 66
+	0x00, 0x18, 0xa4, 0xa4, 0xa4, 0x98, 0x7c, 0x00, // 67
+	0x00, 0x7f, 0x08, 0x04, 0x04, 0x04, 0x78, 0x00, // 68
+	0x00, 0x00, 0x00, 0x44, 0x7d, 0x40, 0x00, 0x00, // 69
+	0x00, 0x40, 0x80, 0x80, 0x84, 0x7d, 0x00, 0x00, // 6a
+	0x00, 0x7f, 0x20, 0x10, 0x28, 0x44, 0x00, 0x00, // 6b
+	0x00, 0x00, 0x00, 0x41, 0x7f, 0x40, 0x00, 0x00, // 6c
+	0x00, 0x7c, 0x04, 0x04, 0x78, 0x04, 0x04, 0x78, // 6d
+	0x00, 0x7c, 0x08, 0x04, 0x04, 0x04, 0x78, 0x00, // 6e
+	0x00, 0x38, 0x44, 0x44, 0x44, 0x44, 0x38, 0x00, // 6f
+	0x00, 0xfc, 0x18, 0x24, 0x24, 0x24, 0x18, 0x00, // 70
+	0x00, 0x18, 0x24, 0x24, 0x24, 0x18, 0xfc, 0x00, // 71
+	0x00, 0x7c, 0x08, 0x04, 0x04, 0x04, 0x08, 0x00, // 72
+	0x00, 0x48, 0x54, 0x54, 0x54, 0x54, 0x24, 0x00, // 73
+	0x00, 0x04, 0x04, 0x3f, 0x44, 0x44, 0x20, 0x00, // 74
+	0x00, 0x3c, 0x40, 0x40, 0x40, 0x20, 0x7c, 0x00, // 75
+	0x00, 0x1c, 0x20, 0x40, 0x40, 0x20, 0x1c, 0x00, // 76
+	0x00, 0x3c, 0x40, 0x40, 0x38, 0x40, 0x40, 0x3c, // 77
+	0x00, 0x44, 0x28, 0x10, 0x10, 0x28, 0x44, 0x00, // 78
+	0x00, 0x1c, 0xa0, 0xa0, 0xa0, 0x90, 0x7c, 0x00, // 79
+	0x00, 0x44, 0x64, 0x54, 0x54, 0x4c, 0x44, 0x00, // 7a
+	0x00, 0x00, 0x08, 0x36, 0x41, 0x41, 0x41, 0x00, // 7b
+	0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, // 7c
+	0x00, 0x41, 0x41, 0x41, 0x36, 0x08, 0x00, 0x00, // 7d
+	0x00, 0x02, 0x01, 0x01, 0x02, 0x04, 0x04, 0x02, // 7e
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 7f
+	0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, // 80
+	0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, // 81
+	0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, // 82
+	0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, // 83
+	0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, // 84
+	0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, // 85
+	0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, // 86
+	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // 87
+	0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 88
+	0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 89
+	0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, // 8a
+	0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, // 8b
+	0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, // 8c
+	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, // 8d
+	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, // 8e
+	0x10, 0x10, 0x10, 0x10, 0xff, 0x10, 0x10, 0x10, // 8f
+	0x10, 0x10, 0x10, 0x10, 0x1f, 0x10, 0x10, 0x10, // 90
+	0x10, 0x10, 0x10, 0x10, 0xf0, 0x10, 0x10, 0x10, // 91
+	0x10, 0x10, 0x10, 0x10, 0xff, 0x00, 0x00, 0x00, // 92
+	0x00, 0x00, 0x00, 0x00, 0xff, 0x10, 0x10, 0x10, // 93
+	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, // 94
+	0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, // 95
+	0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, // 96
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, // 97
+	0x00, 0x00, 0x00, 0x00, 0xf0, 0x10, 0x10, 0x10, // 98
+	0x10, 0x10, 0x10, 0x10, 0xf0, 0x00, 0x00, 0x00, // 99
+	0x00, 0x00, 0x00, 0x00, 0x1f, 0x10, 0x10, 0x10, // 9a
+	0x10, 0x10, 0x10, 0x10, 0x1f, 0x00, 0x00, 0x00, // 9b
+	0x00, 0x00, 0x00, 0x00, 0xc0, 0x20, 0x10, 0x10, // 9c
+	0x10, 0x10, 0x10, 0x20, 0xc0, 0x00, 0x00, 0x00, // 9d
+	0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x10, 0x10, // 9e
+	0x10, 0x10, 0x10, 0x08, 0x07, 0x00, 0x00, 0x00, // 9f
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // a0
+	0x00, 0x00, 0x70, 0x50, 0x70, 0x00, 0x00, 0x00, // a1
+	0x00, 0x00, 0x00, 0x0f, 0x01, 0x01, 0x00, 0x00, // a2
+	0x00, 0x00, 0x40, 0x40, 0x78, 0x00, 0x00, 0x00, // a3
+	0x00, 0x00, 0x10, 0x20, 0x40, 0x00, 0x00, 0x00, // a4
+	0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, // a5
+	0x00, 0x0a, 0x4a, 0x4a, 0x4a, 0x2a, 0x1e, 0x00, // a6
+	0x00, 0x00, 0x04, 0x44, 0x34, 0x14, 0x0c, 0x00, // a7
+	0x00, 0x00, 0x20, 0x10, 0x78, 0x04, 0x00, 0x00, // a8
+	0x00, 0x00, 0x18, 0x08, 0x4c, 0x48, 0x38, 0x00, // a9
+	0x00, 0x00, 0x48, 0x48, 0x78, 0x48, 0x48, 0x00, // aa
+	0x00, 0x00, 0x48, 0x28, 0x18, 0x7c, 0x08, 0x00, // ab
+	0x00, 0x00, 0x08, 0x7c, 0x08, 0x28, 0x18, 0x00, // ac
+	0x00, 0x00, 0x40, 0x48, 0x48, 0x78, 0x40, 0x00, // ad
+	0x00, 0x00, 0x54, 0x54, 0x54, 0x7c, 0x00, 0x00, // ae
+	0x00, 0x00, 0x18, 0x00, 0x58, 0x40, 0x38, 0x00, // af
+	0x00, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, // b0
+	0x00, 0x01, 0x41, 0x39, 0x11, 0x09, 0x07, 0x00, // b1
+	0x00, 0x20, 0x10, 0x08, 0x7c, 0x02, 0x01, 0x00, // b2
+	0x00, 0x0e, 0x42, 0x42, 0x43, 0x22, 0x1e, 0x00, // b3
+	0x00, 0x00, 0x42, 0x42, 0x7e, 0x42, 0x42, 0x00, // b4
+	0x00, 0x22, 0x12, 0x0a, 0x7f, 0x02, 0x02, 0x00, // b5
+	0x00, 0x02, 0x42, 0x3f, 0x02, 0x42, 0x3e, 0x00, // b6
+	0x00, 0x00, 0x0a, 0x0a, 0x7f, 0x0a, 0x0a, 0x00, // b7
+	0x00, 0x44, 0x42, 0x21, 0x11, 0x09, 0x07, 0x00, // b8
+	0x00, 0x04, 0x03, 0x42, 0x3e, 0x02, 0x02, 0x00, // b9
+	0x00, 0x42, 0x42, 0x42, 0x42, 0x42, 0x7e, 0x00, // ba
+	0x00, 0x02, 0x0f, 0x42, 0x22, 0x1f, 0x02, 0x00, // bb
+	0x00, 0x4a, 0x4a, 0x4a, 0x40, 0x20, 0x18, 0x00, // bc
+	0x00, 0x41, 0x21, 0x11, 0x19, 0x25, 0x43, 0x00, // bd
+	0x00, 0x02, 0x3f, 0x42, 0x42, 0x4a, 0x46, 0x00, // be
+	0x00, 0x03, 0x44, 0x40, 0x20, 0x10, 0x0f, 0x00, // bf
+	0x00, 0x44, 0x46, 0x29, 0x11, 0x09, 0x07, 0x00, // c0
+	0x00, 0x48, 0x4a, 0x4a, 0x3e, 0x09, 0x08, 0x00, // c1
+	0x00, 0x4e, 0x40, 0x4e, 0x20, 0x10, 0x0e, 0x00, // c2
+	0x00, 0x04, 0x45, 0x25, 0x1d, 0x05, 0x04, 0x00, // c3
+	0x00, 0x00, 0x00, 0x7f, 0x08, 0x10, 0x00, 0x00, // c4
+	0x00, 0x04, 0x44, 0x24, 0x1f, 0x04, 0x04, 0x00, // c5
+	0x00, 0x40, 0x42, 0x42, 0x42, 0x42, 0x40, 0x00, // c6
+	0x00, 0x00, 0x42, 0x2a, 0x12, 0x2a, 0x06, 0x00, // c7
+	0x00, 0x00, 0x22, 0x12, 0x7b, 0x16, 0x22, 0x00, // c8
+	0x00, 0x00, 0x40, 0x20, 0x10, 0x08, 0x07, 0x00, // c9
+	0x00, 0x78, 0x00, 0x01, 0x02, 0x04, 0x78, 0x00, // ca
+	0x00, 0x3f, 0x44, 0x44, 0x44, 0x44, 0x44, 0x00, // cb
+	0x00, 0x02, 0x42, 0x42, 0x22, 0x12, 0x0e, 0x00, // cc
+	0x00, 0x08, 0x04, 0x02, 0x04, 0x08, 0x30, 0x00, // cd
+	0x00, 0x00, 0x32, 0x02, 0x7f, 0x02, 0x32, 0x00, // ce
+	0x00, 0x01, 0x11, 0x21, 0x51, 0x09, 0x07, 0x00, // cf
+	0x00, 0x20, 0x2a, 0x2a, 0x2a, 0x2a, 0x40, 0x00, // d0
+	0x00, 0x30, 0x28, 0x24, 0x32, 0x21, 0x40, 0x00, // d1
+	0x00, 0x40, 0x40, 0x28, 0x10, 0x28, 0x06, 0x00, // d2
+	0x00, 0x0a, 0x0a, 0x7e, 0x4a, 0x4a, 0x4a, 0x00, // d3
+	0x00, 0x04, 0x7f, 0x04, 0x04, 0x14, 0x0c, 0x00, // d4
+	0x00, 0x40, 0x42, 0x42, 0x7e, 0x40, 0x40, 0x00, // d5
+	0x00, 0x49, 0x49, 0x49, 0x49, 0x49, 0x7f, 0x00, // d6
+	0x00, 0x04, 0x05, 0x45, 0x25, 0x15, 0x0c, 0x00, // d7
+	0x00, 0x0f, 0x00, 0x40, 0x40, 0x20, 0x1f, 0x00, // d8
+	0x00, 0x40, 0x3f, 0x00, 0x7f, 0x20, 0x18, 0x00, // d9
+	0x00, 0x00, 0x7f, 0x40, 0x20, 0x10, 0x08, 0x00, // da
+	0x00, 0x7e, 0x42, 0x42, 0x42, 0x42, 0x7e, 0x00, // db
+	0x00, 0x0e, 0x02, 0x42, 0x42, 0x22, 0x1e, 0x00, // dc
+	0x00, 0x42, 0x42, 0x42, 0x20, 0x10, 0x0c, 0x00, // dd
+	0x00, 0x02, 0x04, 0x01, 0x02, 0x00, 0x00, 0x00, // de
+	0x00, 0x07, 0x05, 0x07, 0x00, 0x00, 0x00, 0x00, // df
+	0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, // e0
+	0x00, 0x00, 0x00, 0x00, 0xff, 0x24, 0x24, 0x24, // e1
+	0x24, 0x24, 0x24, 0x24, 0xff, 0x24, 0x24, 0x24, // e2
+	0x24, 0x24, 0x24, 0x24, 0xff, 0x00, 0x00, 0x00, // e3
+	0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff, // e4
+	0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, // e5
+	0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff, // e6
+	0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, 0x03, 0x01, // e7
+	0x00, 0x18, 0x5c, 0x7e, 0x7f, 0x7e, 0x5c, 0x18, // e8
+	0x00, 0x0e, 0x1f, 0x3f, 0x7e, 0x3f, 0x1f, 0x0e, // e9
+	0x00, 0x08, 0x1c, 0x3e, 0x7f, 0x3e, 0x1c, 0x08, // ea
+	0x00, 0x1c, 0x5c, 0x4f, 0x7f, 0x4f, 0x5c, 0x1c, // eb
+	0x00, 0x3c, 0x7e, 0x7e, 0x7e, 0x7e, 0x3c, 0x00, // ec
+	0x00, 0x3c, 0x42, 0x42, 0x42, 0x42, 0x3c, 0x00, // ed
+	0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01, // ee
+	0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, // ef
+	0x81, 0x42, 0x24, 0x18, 0x18, 0x24, 0x42, 0x81, // f0
+	0x00, 0x7f, 0x09, 0x09, 0x0f, 0x09, 0x09, 0x7f, // f1
+	0x00, 0x27, 0x3a, 0x2a, 0x7e, 0x2a, 0x22, 0x00, // f2
+	0x00, 0x40, 0x3f, 0x15, 0x15, 0x15, 0x15, 0x7f, // f3
+	0x00, 0x7f, 0x49, 0x49, 0x49, 0x49, 0x49, 0x7f, // f4
+	0x3e, 0x2a, 0x3e, 0x00, 0x6a, 0x2f, 0xfa, 0x28, // f5
+	0x00, 0x08, 0x54, 0x32, 0x12, 0x74, 0x08, 0x00, // f6
+	0x00, 0x24, 0x15, 0x7f, 0x15, 0x4c, 0x3f, 0x1c, // f7
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // f8
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // f9
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // fa
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // fb
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // fc
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // fd
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // fe
+	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ff
+};
diff -r 000000000000 -r f2ec16cdf989 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Dec 02 14:55:59 2009 +0000
@@ -0,0 +1,120 @@
+// AD-12864-SPI test program
+// About AD-12864-SPI, see http://www.aitendo.co.jp/product/1622.
+
+// Pin allocation
+// 1 p21 #CS1 with 10k ohm pull-up
+// 2 p22 #RESET with 10k ohm pull-up
+// 3 p23 A0 ... 0:command 1:data
+// 4 p13 SCK
+// 5 p11 MOSI
+// 6     Vdd
+// 7     Vss
+// 8 NC  LED_A 
+
+#include "mbed.h"
+#include "font8.h"
+
+DigitalOut cs(p21);
+DigitalOut rst(p22);
+DigitalOut a0(p23);
+SPI spi(p11, p12, p13); // mosi, miso, sclk
+
+void regwrite(unsigned char c){
+    cs = a0 = 0;
+    spi.write(c);
+    cs = 1;
+}
+
+void datawrite(unsigned char c){
+    cs = 0;
+    a0 = 1;
+    spi.write(c);
+    cs = 1;
+}
+
+// set position (x, 8*y)
+void locate(int x, int y){
+    regwrite(0xb0 | (y & 0x0f)); // Page Address Set (see 2.4.3)
+    regwrite(0x10 | (x >> 4 & 0x0f)); // Column Address Set (see 2.4.4)
+    regwrite(x & 0x0f);
+}
+
+void cls(void){
+    int x, y;
+    for(y = 0; y < 8; y++){
+        locate(0, y);
+        for(x = 0; x < 128; x++) datawrite(0x00);
+    }
+}
+
+void plot(int x, int y){
+    locate(x, y >> 3);
+    datawrite(1 << (y & 7));
+}
+
+void init(){
+    spi.format(8,0); // nazo
+    spi.frequency(10000000); // modify later
+    
+    // reset
+    wait_ms(200);
+    rst = 0;
+    wait_ms(200);
+    rst = 1;
+
+    // initialize sequence
+    regwrite(0xaf);    // display on (see 2.4.1)
+    regwrite(0x2f);    // power control set (see 2.4.16)
+    regwrite(0x81);    // set electronic volume mode (see 2.4.18)
+//    regwrite(0x1f);    // electronic volume data 00-3f
+    regwrite(0x00);    // electronic volume data 00-3f
+    regwrite(0x27);    // V5 Volatge Regulator Internal Resister Ratio Set (see 2.4.17)
+    regwrite(0xa2);    // LCD Bias Set ... 1/9 bias (see 2.4.11)
+    regwrite(0xc8);    // Common Output Mode Select ... Reverse (see 2.4.15)
+    regwrite(0xa0);    // ADC Select ... Normal (see 2.4.8)
+    regwrite(0xa4);    // Display All Points ON/OFF ... normal (see 2.4.10)
+    regwrite(0xa6);    // Display Normal/Reverse ... normal (see 2.4.9)
+    regwrite(0xac);    // Static Indicator ... off (see 2.4.19)
+    regwrite(0x00);    // off
+    regwrite(0x40);    // Display Strat Line Set ... 0 (see 2.4.2)
+    regwrite(0xe0);    // Write Mode Set
+}
+
+void drawchar(unsigned char c){
+    const unsigned char *p = &font8[c << 3];
+    datawrite(p[0]);
+    datawrite(p[1]);
+    datawrite(p[2]);
+    datawrite(p[3]);
+    datawrite(p[4]);
+    datawrite(p[5]);
+    datawrite(p[6]);
+    datawrite(p[7]);
+}
+
+void drawtext(const char *s){
+    unsigned char c;
+    while((c = *s++) != '\0') drawchar(c);
+}
+
+int main() {
+    int x, y, c;
+    char buf[16];
+    
+    init();
+    cls();
+
+    locate(0, 0);
+    sprintf(buf, "%08x", 0xdeadbeef);
+    drawtext(buf);
+    wait_ms(2000);
+
+    c = 0;
+    while(1) {
+        for(y = 0; y < 8; y++){
+            locate(0, y);
+            for(x = 0; x < 16; x++) drawchar(c++);
+        }
+        wait_ms(800);
+    }
+}
diff -r 000000000000 -r f2ec16cdf989 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Dec 02 14:55:59 2009 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0