Java Question I don't even known how to phrase this

Cableguy

Expert
Licensed User
Longtime User
Hi guys

First of all, I am not trying to create a Java to b4a library, but this seemed the most appropriate place to post.

I recently bought a very small display to interface with one of my IOIO board, with an "easy to use" i2c interface.

I've been googling around to find some working examples from which I could make some sense and convert to b4a... Well, no luck there...

However, I found one extensive example, but it's java to me... meaning... I almost can't even read it aloud!

Here is what I found:

B4X:
//----------------------------------------------------------------------
//EASTRISING TECHNOLOGY CO,.LTD.//
// Module : ER-OLED0.96-1 0.96"
// Lanuage : C51 Code
// Create : JAVEN
// Date : 2010-06-18
// Drive IC : SSD1306
// INTERFACE : I2C
// MCU : AT89LV52
// VDD : 3.3V VBAT: 3.6V
// SA0 connected to VSS. Slave address:White:0x70 Read 0x71
//----------------------------------------------------------------------


#include <AT89X52.H>
#include <intrins.h>

#define uint unsigned int
#define uchar unsigned char


#define SDA P1_1
#define SCL P1_0

#define RST P3_4
sbit int0=P3^2;
sbit key_add=P0^1;
sbit key_dec=P0^2;
uchar Contrast_level=0x8F;
bit log=0;



#define Write_Address 0x78/*slave addresses with write*/
#define Read_Address 0x79/*slave addresses with read*/

#define Start_column 0x00
#define Start_page 0x00
#define StartLine_set 0x00

void Delay1(uint n);
void Write_number(uchar code *n,uchar k,uchar station_dot);
void display_Contrast_level(uchar number);
void adj_Contrast(void);
void Delay(uint n);
void Set_Page_Address(unsigned char add);
void Set_Column_Address(unsigned char add);
void Set_Contrast_Control_Register(unsigned char mod);
void Initial(void);
void Display_Chess(unsigned char value);
void Display_Chinese(unsigned char ft[]);
void Display_Chinese_Column(unsigned char ft[]);
void Display_Picture(unsigned char pic[]);

void SentByte(unsigned char Byte);
void Check_Ack(void);//Acknowledge
void Stop(void);
void Start(void);
void Send_ACK(void);
unsigned char ReceiveByte(void);

uchar code num[]={0x00,0xF8,0xFC,0x04,0x04,0xFC,0xF8,0x00,0x00,0x03,0x07,0x04,0x04,0x07,0x03,0x00, /*-- ÎÄ×Ö: 0~9 --*/
0x00,0x00,0x08,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x04,0x07,0x07,0x04,0x00,0x00,
0x00,0x18,0x1C,0x84,0xC4,0x7C,0x38,0x00,0x00,0x06,0x07,0x05,0x04,0x04,0x04,0x00,
0x00,0x08,0x0C,0x24,0x24,0xFC,0xD8,0x00,0x00,0x02,0x06,0x04,0x04,0x07,0x03,0x00,
0x80,0xE0,0x70,0x18,0xFC,0xFC,0x00,0x00,0x00,0x01,0x01,0x05,0x07,0x07,0x04,0x00,
0x00,0x7C,0x7C,0x24,0x24,0xE4,0xC4,0x00,0x00,0x03,0x07,0x04,0x04,0x07,0x03,0x00,
0x00,0xF0,0xF8,0x6C,0x24,0xEC,0xCC,0x00,0x00,0x03,0x07,0x04,0x04,0x07,0x03,0x00,
0x00,0x0C,0x0C,0xC4,0xFC,0x3C,0x04,0x00,0x00,0x00,0x00,0x07,0x07,0x00,0x00,0x00,
0x00,0x98,0xFC,0x64,0x64,0xFC,0x98,0x00,0x00,0x03,0x07,0x04,0x04,0x07,0x03,0x00,
0x00,0x78,0xFC,0x84,0xC4,0xFC,0xF8,0x00,0x00,0x06,0x06,0x04,0x06,0x03,0x01,0x00};



unsigned char code font[]=
{

/*-- ÎÄ×Ö: Éî --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x10,0x61,0x06,0xE0,0x00,0x26,0x22,0x1A,0x02,0xC2,0x0A,0x12,0x32,0x06,0x02,0x00,
0x04,0xFC,0x03,0x20,0x20,0x11,0x11,0x09,0x05,0xFF,0x05,0x09,0x19,0x31,0x10,0x00,

/*-- ÎÄ×Ö: ÛÚ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x10,0x10,0x10,0xFE,0x10,0x10,0xFE,0x00,0x00,0xFC,0x00,0x00,0x00,0xFE,0x00,0x00,
0x08,0x08,0x04,0x47,0x24,0x18,0x07,0x00,0x00,0x1F,0x00,0x00,0x00,0x7F,0x00,0x00,

/*-- ÎÄ×Ö: Ðñ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x10,0x10,0x10,0xFF,0x10,0xF0,0x00,0x00,0xFE,0x22,0x22,0x22,0x22,0xFE,0x00,0x00,
0x40,0x30,0x0E,0x01,0x00,0x3F,0x40,0x40,0x47,0x44,0x44,0x44,0x44,0x47,0x70,0x00,

/*-- ÎÄ×Ö: ÈÕ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x00,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x3F,0x00,0x00,0x00,0x00,

/*-- ÎÄ×Ö: ¶« --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x04,0x04,0xC4,0xB4,0x8C,0x87,0x84,0xF4,0x84,0x84,0x84,0x84,0x04,0x00,0x00,
0x00,0x00,0x20,0x18,0x0E,0x04,0x20,0x40,0xFF,0x00,0x02,0x04,0x18,0x30,0x00,0x00,

/*-- ÎÄ×Ö: ·½ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x08,0x08,0x08,0x08,0x08,0x08,0xF9,0x4A,0x4C,0x48,0x48,0xC8,0x08,0x08,0x08,0x00,
0x40,0x40,0x20,0x10,0x0C,0x03,0x00,0x00,0x20,0x40,0x40,0x3F,0x00,0x00,0x00,0x00,

/*-- ÎÄ×Ö: ¿Æ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x10,0x12,0x92,0x72,0xFE,0x51,0x91,0x00,0x22,0xCC,0x00,0x00,0xFF,0x00,0x00,0x00,
0x04,0x02,0x01,0x00,0xFF,0x00,0x04,0x04,0x04,0x02,0x02,0x02,0xFF,0x01,0x01,0x00,

/*-- ÎÄ×Ö: ¼¼ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x08,0x08,0x88,0xFF,0x48,0x28,0x00,0xC8,0x48,0x48,0x7F,0x48,0xC8,0x48,0x08,0x00,
0x01,0x41,0x80,0x7F,0x00,0x40,0x40,0x20,0x13,0x0C,0x0C,0x12,0x21,0x60,0x20,0x00,

/*-- ÎÄ×Ö: ³É --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x00,0xF8,0x48,0x48,0x48,0xC8,0x08,0xFF,0x08,0x09,0x0A,0xC8,0x88,0x08,0x00,
0x40,0x30,0x0F,0x00,0x08,0x50,0x4F,0x20,0x10,0x0B,0x0C,0x12,0x21,0x40,0xF0,0x00,

/*-- ÎÄ×Ö: Á¢ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x10,0x10,0x90,0x10,0x10,0x11,0x16,0x10,0x10,0xF0,0x50,0x10,0x10,0x00,0x00,
0x40,0x40,0x40,0x40,0x43,0x4E,0x40,0x60,0x58,0x47,0x40,0x40,0x40,0x60,0x40,0x00,

/*-- ÎÄ×Ö: ÓÚ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x40,0x40,0x42,0x42,0x42,0x42,0x42,0xFE,0x42,0x42,0x42,0x42,0x42,0x42,0x40,0x00,
0x00,0x00,0x00,0x00,0x20,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

/*-- ÎÄ×Ö: ¶þ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x06,0x04,0x00,0x00,0x00,
0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x10,0x00,

/*-- ÎÄ×Ö: Áã --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x0C,0x04,0x55,0x55,0x55,0x85,0x7F,0x85,0x55,0x55,0x55,0x05,0x0C,0x04,0x00,
0x04,0x04,0x04,0x0A,0x0A,0x09,0x2A,0xCC,0x28,0x19,0x09,0x02,0x06,0x02,0x02,0x00,

/*-- ÎÄ×Ö: Áã --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x0C,0x04,0x55,0x55,0x55,0x85,0x7F,0x85,0x55,0x55,0x55,0x05,0x0C,0x04,0x00,
0x04,0x04,0x04,0x0A,0x0A,0x09,0x2A,0xCC,0x28,0x19,0x09,0x02,0x06,0x02,0x02,0x00,

/*-- ÎÄ×Ö: ¶þ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x06,0x04,0x00,0x00,0x00,
0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x10,0x00,

/*-- ÎÄ×Ö: Äê --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x40,0x20,0x10,0x0C,0xE3,0x22,0x22,0x22,0xFE,0x22,0x22,0x22,0x22,0x02,0x00,0x00,
0x04,0x04,0x04,0x04,0x07,0x04,0x04,0x04,0xFF,0x04,0x04,0x04,0x04,0x04,0x04,0x00,

/*-- ÎÄ×Ö: ÆÚ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x04,0xFF,0x54,0x54,0x54,0xFF,0x04,0x00,0xFE,0x22,0x22,0x22,0xFE,0x00,0x00,
0x42,0x22,0x1B,0x02,0x02,0x0A,0x33,0x62,0x18,0x07,0x02,0x22,0x42,0x3F,0x00,0x00,

/*-- ÎÄ×Ö: ´ý --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x20,0x10,0x08,0xC7,0x3A,0x50,0x44,0x44,0x44,0x7F,0x44,0xC4,0x44,0x44,0x40,0x00,
0x00,0x02,0x01,0xFF,0x00,0x02,0x02,0x1A,0x02,0x42,0x82,0x7F,0x02,0x02,0x02,0x00,

/*-- ÎÄ×Ö: ×Å --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x44,0x54,0x54,0x55,0x56,0xD4,0x7C,0x54,0x54,0x56,0x55,0x54,0x44,0x44,0x00,
0x08,0x08,0x04,0x04,0x02,0xFF,0x55,0x55,0x55,0x55,0x55,0x55,0xFF,0x00,0x00,0x00,

/*-- ÎÄ×Ö: Äú --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x80,0x40,0x30,0xFC,0x03,0x90,0x68,0x06,0x04,0xF4,0x04,0x24,0x44,0x8C,0x04,0x00,
0x00,0x20,0x38,0x03,0x38,0x40,0x40,0x49,0x52,0x41,0x40,0x70,0x00,0x09,0x30,0x00,

/*-- ÎÄ×Ö: À´ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x80,0x84,0x84,0x94,0xA4,0xC4,0xFF,0x84,0xC4,0xB4,0x94,0x84,0x84,0x80,0x00,
0x20,0x20,0x10,0x10,0x08,0x04,0x02,0xFF,0x01,0x02,0x04,0x08,0x18,0x30,0x10,0x00,

/*-- ÎÄ×Ö: µç --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00,

/*-- ÎÄ×Ö: À´ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x80,0x84,0x84,0x94,0xA4,0xC4,0xFF,0x84,0xC4,0xB4,0x94,0x84,0x84,0x80,0x00,
0x20,0x20,0x10,0x10,0x08,0x04,0x02,0xFF,0x01,0x02,0x04,0x08,0x18,0x30,0x10,0x00,

/*-- ÎÄ×Ö: º¯ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0xE0,0x02,0x12,0xE2,0x42,0x02,0xF2,0x12,0x8A,0x66,0x47,0x02,0xE0,0x00,0x00,
0x00,0x7F,0x20,0x24,0x24,0x2A,0x31,0x2F,0x21,0x22,0x24,0x2C,0x20,0x7F,0x00,0x00,

/*-- ÎÄ×Ö: ÎÒ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x20,0x20,0x22,0x22,0xFE,0x21,0x21,0x20,0x20,0xFF,0x20,0x22,0xAC,0x20,0x20,0x00,
0x04,0x04,0x42,0x82,0x7F,0x01,0x01,0x10,0x10,0x08,0x07,0x1A,0x21,0x40,0xF0,0x00,

/*-- ÎÄ×Ö: ÃÇ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x80,0x40,0xF0,0x1C,0x03,0xF0,0x01,0x0E,0x04,0x00,0x04,0x04,0x04,0xFC,0x00,0x00,
0x00,0x00,0x7F,0x00,0x00,0x7F,0x00,0x00,0x00,0x00,0x00,0x20,0x40,0x3F,0x00,0x00,

/*-- ÎÄ×Ö: Õæ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x04,0x04,0x04,0xF4,0x54,0x5C,0x57,0x54,0x54,0x54,0xF4,0x04,0x06,0x04,0x00,
0x10,0x90,0x90,0x50,0x5F,0x35,0x15,0x15,0x15,0x35,0x55,0x5F,0x90,0x90,0x10,0x00,

/*-- ÎÄ×Ö: ³Ï --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x20,0x21,0xE6,0x02,0x08,0xF8,0x88,0x88,0x88,0x08,0xFF,0x08,0x0A,0xCC,0x88,0x00,
0x00,0x00,0x3F,0x90,0x68,0x1F,0x20,0x40,0x3F,0x20,0x10,0x0F,0x14,0x23,0x78,0x00,

/*-- ÎÄ×Ö: Ϊ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x10,0x10,0x12,0x14,0x1C,0x10,0xF0,0x9F,0x10,0x10,0x10,0x10,0xF8,0x10,0x00,
0x00,0x00,0x40,0x20,0x10,0x08,0x06,0x01,0x00,0x11,0x26,0x40,0x20,0x1F,0x00,0x00,

/*-- ÎÄ×Ö: Äú --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x80,0x40,0x30,0xFC,0x03,0x90,0x68,0x06,0x04,0xF4,0x04,0x24,0x44,0x8C,0x04,0x00,
0x00,0x20,0x38,0x03,0x38,0x40,0x40,0x49,0x52,0x41,0x40,0x70,0x00,0x09,0x30,0x00,

/*-- ÎÄ×Ö: ·þ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x00,0x00,0xFF,0x91,0x91,0xFF,0x00,0x00,0xFF,0xC1,0x41,0x49,0x51,0xCF,0x00,0x00,
0x40,0x30,0x0F,0x20,0x40,0x3F,0x00,0x00,0x7F,0x21,0x16,0x08,0x36,0x61,0x20,0x00,

/*-- ÎÄ×Ö: Îñ --*/
/*-- ËÎÌå12; ´Ë×ÖÌå϶ÔÓ¦µÄµãÕóΪ£º¿íx¸ß=16x16 --*/
0x20,0x10,0x10,0x88,0x84,0x4F,0x52,0xA2,0x22,0x52,0x4A,0x86,0x80,0x80,0x80,0x00,
0x80,0x81,0x41,0x42,0x22,0x12,0x0E,0x03,0x02,0x42,0x82,0x7E,0x00,0x01,0x00,0x00

};

unsigned char code pic[]=
{/*-- µ÷ÈëÁËÒ»·ùͼÏñ£ºE:\²úÆ·Îļþ\ÏÔʾͼƬ\ER-OLED0.96-2.bmp --*/
/*-- ¿í¶Èx¸ß¶È=128x64 --*/
0xFF,0x01,0x01,0x01,0xFD,0x25,0x25,0x25,0x25,0x01,0xE1,0x59,0x45,0x59,0xE1,0x01,
0x99,0x25,0x25,0xC9,0x01,0x05,0x05,0xFD,0x05,0x05,0x01,0xFD,0x25,0x25,0x65,0x99,
0x01,0x01,0xFD,0x01,0x01,0x99,0x25,0x25,0xC9,0x01,0x01,0xFD,0x01,0x01,0xFD,0x19,
0x21,0xC1,0xFD,0x01,0x01,0xF9,0x05,0x05,0x25,0xE9,0x01,0x01,0x01,0x01,0x05,0x05,
0xFD,0x05,0x05,0x01,0xFD,0x25,0x25,0x25,0x25,0x01,0xF9,0x05,0x05,0x05,0x89,0x01,
0x01,0xFD,0x21,0x21,0x21,0xFD,0x01,0x01,0x01,0x01,0x01,0xF9,0x05,0x05,0x05,0x89,
0x01,0x01,0xF9,0x05,0x05,0x05,0xF9,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFD,
0x01,0x01,0x01,0x05,0x05,0xFD,0x05,0x05,0x01,0xFD,0x05,0x05,0x05,0xF9,0x01,0xFF,
0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x01,
0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0xF8,0x41,0xC0,0x00,0xF0,0x91,
0x90,0x90,0xF1,0x00,0x00,0x00,0x01,0xF9,0x88,0x88,0x88,0x89,0x88,0x88,0xF9,0x00,
0x00,0x10,0x11,0x90,0x50,0x30,0xD9,0x11,0x11,0x10,0x10,0x10,0x00,0x20,0x20,0x20,
0x21,0xE0,0xA8,0xB0,0xA1,0xA1,0x31,0x21,0x01,0x50,0x50,0xF1,0x49,0x49,0x00,0x90,
0x20,0x01,0xF8,0x00,0x00,0x21,0x20,0xF8,0x21,0x00,0x20,0x20,0xF9,0x21,0x21,0x20,
0x00,0x00,0x00,0x01,0x01,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x03,0x00,0x00,0x01,
0x01,0x01,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x0F,0x00,0x3F,0x20,0x2F,0x24,
0x24,0x24,0x2F,0x30,0x00,0x00,0x00,0x3F,0x10,0x10,0x10,0x10,0x10,0x10,0x3F,0x00,
0x00,0x10,0x11,0x09,0x05,0x21,0x3F,0x01,0x03,0x05,0x09,0x10,0x00,0x20,0x20,0x10,
0x0C,0x03,0x20,0x20,0x20,0x1F,0x00,0x00,0x00,0x0C,0x03,0x3F,0x01,0x02,0x04,0x04,
0x05,0x04,0x3F,0x02,0x00,0x22,0x22,0x3F,0x01,0x20,0x23,0x15,0x09,0x15,0x23,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xC0,0x30,0x08,0x00,0xF4,0xF2,0x92,0x92,0x92,0x02,0xF2,0xF2,0x12,
0x12,0xF2,0xE2,0x02,0x02,0x02,0x02,0x02,0xC2,0xE2,0x32,0x12,0x32,0xE2,0xC2,0x02,
0xF2,0xF2,0x02,0x02,0x02,0x02,0x02,0xF2,0xF2,0x92,0x92,0x92,0x02,0xF2,0xF2,0x12,
0x12,0xF2,0xE2,0x02,0xE2,0xF2,0x12,0xF2,0xE2,0x02,0x02,0x02,0x02,0xE2,0xF2,0x12,
0xF2,0xE2,0x02,0xE2,0xF2,0x92,0xB2,0x22,0x02,0x02,0x02,0x02,0x02,0x22,0x32,0x12,
0xF2,0xE2,0x04,0x08,0x08,0x30,0xC0,0x00,0x00,0xE0,0x10,0x10,0xE0,0x00,0x00,0x00,
0x00,0x60,0x90,0x90,0xE0,0x00,0xE0,0x90,0x90,0x20,0x00,0x30,0x00,0x30,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x0C,0x10,0x00,0x2F,0x4F,0x48,0x48,0x48,0x40,0x4F,0x4F,0x41,
0x43,0x47,0x4C,0x48,0x42,0x42,0x42,0x40,0x43,0x47,0x4C,0x48,0x4C,0x47,0x43,0x40,
0x4F,0x4F,0x48,0x48,0x48,0x48,0x40,0x4F,0x4F,0x48,0x48,0x48,0x40,0x4F,0x4F,0x48,
0x48,0x4F,0x47,0x40,0x47,0x4F,0x48,0x4F,0x47,0x40,0x4C,0x4C,0x40,0x44,0x4D,0x49,
0x4F,0x47,0x40,0x47,0x4F,0x48,0x4F,0x47,0x40,0x42,0x42,0x42,0x40,0x4C,0x4E,0x4B,
0x49,0x48,0x20,0x10,0x10,0x0C,0x03,0x00,0x00,0x03,0x04,0x04,0x03,0x00,0x00,0x04,
0x00,0x02,0x04,0x04,0x03,0x00,0x03,0x04,0x04,0x03,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0xF8,0x00,
0x00,0x10,0x08,0xC8,0x30,0x00,0xB0,0x48,0x48,0xB0,0x00,0x08,0xB0,0x40,0xB0,0x08,
0xF0,0x28,0x28,0xD0,0x00,0xC0,0xA0,0x90,0xF8,0x80,0x00,0x00,0x00,0xC0,0x20,0x20,
0xF8,0x00,0xC0,0x20,0x20,0xC0,0x20,0xF0,0x20,0x00,0x40,0xA0,0xA0,0x20,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0xE8,0x00,0xC0,
0x20,0x20,0xE0,0x00,0xF8,0x20,0x20,0xC0,0x20,0xF0,0x20,0x00,0x00,0x00,0x00,0x00,
0xF8,0x48,0x48,0xF0,0x00,0xF8,0x00,0xE0,0x00,0x00,0xE0,0x00,0xC0,0xA0,0xA0,0xC0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x80,0x43,0x80,
0x00,0x02,0xC3,0xC2,0x02,0x00,0x81,0x42,0x82,0x01,0x00,0xC2,0xC1,0x00,0x01,0x82,
0x41,0x82,0x02,0x01,0xC0,0x00,0x00,0x00,0x03,0xC0,0x00,0x00,0x00,0x01,0x82,0x42,
0x43,0x40,0x81,0x02,0x02,0xC1,0x40,0x43,0x42,0x80,0x02,0x02,0x02,0x01,0x00,0x80,
0x40,0x40,0x40,0x80,0x00,0x00,0xC0,0x00,0x00,0x03,0xC2,0x02,0x02,0xC3,0x00,0x05,
0xCA,0x8A,0x07,0x00,0xC3,0x00,0x00,0x03,0x80,0x43,0x82,0x00,0x00,0x00,0x00,0x00,
0x83,0x42,0x42,0x41,0x80,0x03,0x00,0x81,0x42,0x42,0x43,0x80,0x01,0xC2,0x82,0x02,
0x00,0x00,0x80,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x8F,0x90,0x8F,0x80,0x8F,
0x90,0x8F,0x80,0x80,0x8F,0x90,0x8F,0x80,0x8F,0x90,0x8F,0x80,0x80,0x8F,0x90,0x8F,
0x80,0x8F,0x90,0x8F,0x80,0x80,0x90,0x80,0x80,0x9F,0x90,0x90,0x90,0x80,0x8F,0x90,
0x90,0x90,0x88,0x80,0x80,0x9F,0x90,0x90,0x90,0x8F,0x80,0x84,0x84,0x80,0x80,0x8F,
0x90,0x90,0x90,0x88,0x80,0x80,0x9F,0x82,0x82,0x82,0x9F,0x80,0x80,0x9F,0x80,0x80,
0x9F,0x81,0x82,0x8C,0x9F,0x80,0x90,0x8E,0x85,0x84,0x85,0x8E,0x90,0x90,0x80,0x80,
0x8F,0x90,0x90,0x90,0x88,0x80,0x80,0x8F,0x90,0x90,0x90,0x8F,0x80,0x9F,0x81,0x8E,
0x90,0x8E,0x81,0x9F,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xFF


};



unsigned char code pic1[]=
{/*-- µ÷ÈëÁËÒ»·ùͼÏñ£ºE:\²úÆ·Îļþ\ÏÔʾͼƬ\12864LOGO.bmp --*/
/*-- ¿í¶Èx¸ß¶È=128x64 --*/
0xFF,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x81,0xC1,0xF1,0xF9,0xFD,0xF9,0x01,0x81,0xC1,0x81,0x81,0x81,
0x81,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x81,0xE1,0x79,0x7F,0xFF,0xC1,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0xE1,0xF1,0xF9,0xFD,0xFD,0xFF,0xFF,0x7D,0x7D,0x31,0xF9,0x29,0x01,
0x05,0x07,0x07,0x03,0x05,0x05,0x05,0x05,0x05,0x05,0x4D,0xDD,0x61,0x81,0x81,0x01,
0xC1,0xC1,0xE1,0xE1,0xC1,0x81,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xE0,0x01,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFE,0xFE,0xFE,0xFC,0xFC,0xFC,0xFC,0xF8,0xF8,
0xF8,0xF8,0xF8,0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x18,0x18,0x3C,0x3E,0x3F,0x38,0x33,0x30,0x38,0x3F,0x3E,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0xC7,0x3F,0x0F,0x0F,0x1F,0x3F,0x7F,0xFF,0xFD,0xF9,0xFB,0xFB,
0x62,0x24,0x0C,0x0C,0x3C,0x7C,0xFC,0xFC,0xFE,0xFA,0xFA,0xF7,0xF4,0x4C,0x38,0x03,
0x0F,0x7F,0xFF,0x7F,0x7F,0x3F,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x3C,0xF8,0xF8,0xF8,0xF0,0xF0,0xF0,0xE0,
0xE0,0xC0,0xC0,0xC0,0x80,0x81,0x0F,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x7F,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x11,0x3E,0x24,0x24,0x24,
0xC4,0x3C,0x18,0x06,0xF1,0xF8,0xFC,0xFE,0x0F,0x27,0x27,0x37,0x6F,0x3E,0x18,0x00,
0x00,0x00,0x00,0x60,0x58,0x4C,0xCC,0x9C,0xFC,0xFC,0xFC,0xF8,0xF0,0xE0,0x00,0x00,
0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x1F,0x7F,0xF8,0xC1,0x01,
0x01,0x03,0x03,0x03,0x07,0x07,0x07,0x00,0x07,0x3F,0xFF,0xFF,0x00,0x00,0x3F,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0x1F,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x04,0x0C,0x08,0x08,0x08,
0x1F,0xFC,0xB0,0x60,0xC1,0x83,0x07,0x07,0x07,0x06,0x82,0x87,0x46,0x44,0x00,0x40,
0x00,0x00,0x00,0x00,0x02,0x06,0x0E,0x0E,0x1F,0x1F,0x1F,0x1F,0x0F,0x07,0x00,0x80,
0xC0,0x70,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x87,0x1E,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1F,0x3F,0x00,0x00,0x8F,
0x0F,0x0F,0x0F,0x0F,0x0F,0x8F,0x8F,0x8F,0x8F,0x8F,0x8F,0x0F,0x0F,0x8F,0x8F,0x0F,
0x0F,0x01,0x00,0x00,0x00,0x00,0x00,0x80,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,0x01,0x0E,0x38,0xC1,0x81,0xF2,0x7E,0x3C,0x1C,0x08,0x08,0x08,0x08,0x10,
0x10,0x10,0x10,0x10,0xF0,0xF0,0xF0,0x38,0x18,0x18,0x3C,0x7C,0xFE,0xF2,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x88,0x88,0x88,0x88,0x00,
0x64,0xF2,0x9A,0x8A,0xFE,0xFC,0x00,0x4C,0xDE,0x9A,0xB2,0xF6,0x64,0x02,0x7F,0xFF,
0x82,0x00,0x00,0x00,0x00,0xFF,0xFF,0x08,0x08,0x18,0x7F,0xE7,0x80,0xFE,0xFE,0x00,
0x4C,0xDE,0x9A,0xB2,0xF6,0x64,0x00,0xFE,0xFE,0x00,0xFE,0xFE,0x04,0x02,0xFE,0xFC,
0x00,0x7C,0xFE,0x82,0x44,0xFE,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF8,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x08,0xB0,0x00,0x00,0x01,0x03,0x0C,0x70,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x0C,0x0C,0xEC,0x0C,0x0C,0x0C,0x0C,0x0C,0xCC,0x2C,0x2C,0x2C,0x4C,0x0C,0x0C,
0xEC,0x2C,0x2C,0x2C,0xCC,0x0C,0x0C,0x0C,0x0C,0x0C,0xCC,0x2C,0x2C,0x2C,0x4C,0x0C,
0x0C,0xEC,0x0C,0x0C,0x0C,0xEC,0x0C,0x0C,0xEC,0x0C,0x0C,0xEC,0xCC,0x0C,0x0C,0xEC,
0x0C,0x0C,0xCC,0x2C,0xCC,0x0C,0x0C,0x0C,0x0C,0x0C,0xCC,0x2C,0x2C,0x2C,0x4C,0x0C,
0x0C,0xCD,0x2E,0x2E,0x2E,0xCF,0x0D,0x0C,0xEC,0xCC,0x0C,0xCC,0xEC,0x0C,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7F,0xC0,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC1,0x1F,0x0F,0x06,0x02,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x80,0x80,0x8F,0x88,0x88,0x88,0x80,0x80,0x87,0x88,0x88,0x88,0x84,0x80,0x80,
0x8F,0x88,0x88,0x88,0x87,0x80,0x82,0x82,0x80,0x80,0x87,0x88,0x88,0x88,0x84,0x80,
0x80,0x8F,0x81,0x81,0x81,0x8F,0x80,0x80,0x8F,0x80,0x80,0x8F,0x80,0x81,0x86,0x8F,
0x80,0x8C,0x83,0x82,0x83,0x8C,0x80,0x88,0x80,0x80,0x87,0x88,0x88,0x88,0x84,0x80,
0x80,0x87,0x88,0x88,0x88,0x87,0x80,0x80,0x8F,0x81,0x8E,0x81,0x8F,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x83,0x88,0x90,0x90,0xA0,0xA0,0xA1,0xA1,0x93,0x9B,
0x91,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0x90,0x8F,0x87,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xFF


};

unsigned char code pic2[]=
{

/*-- µ÷ÈëÁËÒ»·ùͼÏñ£ºD:\liu\ÏÔʾͼƬ\128642.bmp --*/
/*-- ¿í¶Èx¸ß¶È=128x64 --*/
0xFF,0x01,0x01,0x01,0x01,0x01,0x01,0xC1,0xF1,0xFD,0xFD,0x81,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0xC1,0xE1,0xF1,0xF9,0xF9,0xFD,0xFD,0xF9,0xF9,0x61,0xF1,0x51,
0x01,0x09,0x0D,0x0D,0x05,0x09,0x09,0x09,0x09,0x09,0x09,0x99,0xB9,0xC1,0x01,0x01,
0x01,0x81,0x81,0xC1,0xC1,0x81,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0xFF,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xE1,0xF1,0xF1,0xF1,
0xE1,0xC1,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xF1,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xFF,
0xFF,0x00,0x30,0x30,0x78,0x7C,0x7F,0x71,0x66,0x60,0x71,0x7F,0x7C,0x80,0x00,0x00,
0x00,0x00,0x00,0x00,0x07,0x8F,0x7F,0x1F,0x1F,0x3F,0x7F,0xFE,0xFE,0xFA,0xF3,0xF6,
0xF6,0xC4,0x48,0x18,0x18,0x78,0xF8,0xF8,0xF8,0xFC,0xF4,0xF4,0xEF,0xE8,0x99,0x71,
0x06,0x1F,0xFF,0xFF,0xFF,0xFF,0x7F,0x3E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFC,0xFE,0xFE,
0xFC,0x78,0x20,0x20,0x10,0x10,0x08,0x08,0x08,0x0C,0x04,0x04,0x07,0x07,0x0F,0x0F,
0x0F,0x0F,0x1F,0x10,0x10,0x20,0x20,0x40,0xC0,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x23,0x7C,0x48,
0x48,0x88,0x78,0x30,0x0C,0xE3,0xF0,0xF8,0xFC,0x1E,0x4E,0x4E,0x6F,0xDF,0x7D,0x31,
0x01,0x00,0x00,0x00,0xC0,0xB0,0x98,0x99,0x39,0xF9,0xF9,0xF9,0xF1,0xE1,0xC0,0x00,
0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x70,0x08,0x07,0x03,0x01,
0x00,0x80,0x80,0x84,0x84,0x00,0x08,0x00,0x00,0x00,0x02,0x01,0xC0,0xF0,0xF8,0xFC,
0xFE,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7E,0x7C,0x7C,0x30,0x60,
0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x08,0x18,0x10,
0x10,0x3F,0xF8,0x60,0xC0,0x83,0x07,0x0F,0x0F,0x0E,0x0C,0x04,0x0E,0x8C,0x88,0x00,
0x80,0x00,0x00,0x00,0x00,0x04,0x0C,0x1D,0x1D,0x3F,0x3F,0x3F,0x3F,0x1F,0x0F,0x00,
0x00,0x80,0xE0,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFE,0xF1,0xFC,0xFC,0xFE,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7E,0x7E,0x7C,0x38,0x20,0x1F,0x3F,0xFF,0xFF,
0xCF,0xC7,0xE7,0xE3,0xF3,0xF3,0xF1,0xF9,0xF9,0xFC,0xFC,0xFC,0xFE,0x7E,0x3F,0x00,
0x01,0x1F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x03,0x1C,0x71,0x83,0x02,0xE4,0xFC,0x78,0x39,0x11,0x10,0x10,0x10,
0x20,0x20,0x20,0x20,0x20,0xE0,0xE0,0xE0,0x70,0x30,0x30,0x78,0xF8,0xFC,0xE4,0x02,
0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xCF,0x3F,0xFF,0xFF,0xC7,0xE7,0xE3,
0xF3,0xF3,0xF1,0xF9,0xF8,0xFC,0xFC,0xFC,0xFE,0xFE,0x7F,0x1F,0x03,0x00,0x00,0x01,
0x03,0x03,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x03,0x01,0x01,0x80,0x40,0x20,
0x18,0x0F,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0xFF,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x87,0xA8,0xA0,0xB8,0xA7,0xA2,
0x82,0x81,0xBD,0xA2,0xA2,0xB9,0xA7,0x90,0xB2,0x8F,0x83,0x82,0xB9,0xA7,0x80,0xB8,
0xA6,0xA1,0xB1,0xAF,0x90,0x80,0xBC,0xA2,0xA2,0xB9,0xA7,0x90,0x80,0x80,0x80,0xFF

};


unsigned char code pic3[]=
{
/*-- µ÷ÈëÁËÒ»·ùͼÏñ£ºD:\liu\ÏÔʾͼƬ\12864a.bmp --*/
/*-- ¿í¶Èx¸ß¶È=128x64 --*/
0x08,0x02,0x00,0xF0,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0xEF,0x30,0x18,0x0E,
0x04,0x02,0x03,0x01,0x00,0x00,0x08,0x1C,0x0C,0x06,0xA3,0xF1,0x70,0x78,0x3C,0xBE,
0x17,0x9B,0xCB,0x8D,0xC5,0x67,0x63,0xE1,0xF1,0x70,0x10,0x04,0xC2,0x70,0x18,0x8C,
0x0C,0x08,0xD0,0x30,0x8C,0x42,0xB0,0x48,0x24,0x02,0x01,0x00,0x60,0x0C,0x00,0x00,
0xC0,0x70,0x98,0x64,0xF2,0x79,0x0E,0x01,0x20,0x00,0x00,0x00,0x80,0xC0,0xE0,0x78,
0x1C,0x00,0xC0,0x60,0x90,0xC0,0xF0,0xF8,0x1C,0xC0,0x08,0x00,0x00,0x00,0x00,0x80,
0x30,0x06,0x80,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0xFF,0xF8,
0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x0F,0x00,0x00,0x01,0x1F,0xF8,0x80,
0x00,0x00,0x38,0x01,0x00,0xC0,0x60,0x30,0x18,0x06,0x03,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE8,0x76,0x39,0x1C,0x1C,0x3E,0x27,0x0B,
0x03,0x00,0x00,0x00,0xC0,0xE7,0xDE,0xF1,0x1C,0xC3,0xC0,0xF0,0x38,0xB6,0xF1,0x7E,
0x93,0x70,0x3C,0x61,0xC0,0x80,0x80,0xE0,0x1C,0x83,0xE0,0xFE,0xFF,0x3F,0x03,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x1C,0xEF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0xF7,
0x81,0x80,0x40,0x60,0x20,0x20,0x10,0x10,0x08,0x08,0x0C,0x04,0x06,0x06,0x02,0x03,
0xC1,0x71,0x31,0x70,0xB0,0x70,0xF8,0xF8,0xF8,0xF8,0xF8,0xEC,0xFC,0xFC,0xE4,0x06,
0x02,0x02,0x03,0x03,0x01,0x07,0x0D,0xC8,0xFF,0xFF,0xFF,0xF9,0xFE,0x3F,0x0F,0x2F,
0xF8,0xFE,0x7F,0x23,0x18,0x0C,0x3F,0xFE,0xFF,0xF7,0x07,0xFF,0x07,0x0F,0x0F,0x0F,
0x1F,0x1F,0x1F,0x3F,0x07,0x01,0x00,0x00,0x03,0x07,0x00,0x00,0x00,0x01,0x01,0x03,
0x00,0x00,0x20,0x3C,0x1F,0x1F,0x2F,0x36,0xBB,0x9F,0xDF,0xDD,0xFB,0xFE,0xDF,0xB6,
0xE3,0x64,0xD0,0xE8,0xBC,0x4F,0xE3,0xFB,0xFE,0xFF,0x7F,0x3F,0x23,0xC0,0x40,0x30,
0x08,0x00,0x80,0x20,0xFE,0x01,0xF0,0x07,0x01,0xFF,0xE8,0x00,0x00,0x80,0x00,0x07,
0x00,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x3E,0xE3,0xC1,0xE1,0x18,
0x0C,0x03,0x00,0x00,0x06,0x04,0x08,0x08,0x10,0x10,0x20,0x22,0x23,0x40,0x40,0x40,
0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x20,0x30,0x30,0x11,0x11,0x33,0x63,0xC7,0x67,
0x21,0x27,0x17,0x1F,0x3F,0x77,0xF3,0x7B,0x39,0x9C,0xDE,0xFF,0x3F,0x1F,0x8D,0xE6,
0x1B,0x86,0x61,0xFC,0xFF,0xF0,0x7C,0xFF,0xDF,0x9F,0xE0,0x3E,0x37,0x60,0xFD,0xFF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,
0x71,0x1F,0x07,0x00,0x00,0x00,0x00,0x01,0x3E,0xEF,0x7F,0xFE,0xFC,0xF6,0xF7,0xF7,
0xEF,0xFF,0xE0,0x00,0x00,0x00,0xFF,0xAD,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x0B,
0xFE,0xF8,0xF0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x0E,
0x1C,0x38,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,
0x80,0xC0,0xC0,0xE0,0xBE,0x01,0x80,0xF2,0x0E,0x00,0x00,0x00,0x00,0xE0,0xFF,0x0F,
0x00,0x00,0x00,0x00,0xC0,0x5C,0xE6,0xE2,0xE1,0xF1,0x7F,0x3C,0x2C,0xF6,0xFB,0x0D,
0x66,0xFF,0x00,0xFF,0xDF,0xE1,0x78,0x3E,0x1F,0x07,0x18,0xF8,0x6C,0xC7,0x01,0x03,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x3C,0x0F,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x1F,0xFF,0xFF,0xFF,0xFF,
0x7F,0x7F,0x3F,0x3F,0x3C,0x30,0x3F,0xFF,0xF0,0x00,0x20,0x20,0x20,0x60,0xC0,0x80,
0x1F,0x7F,0xFF,0xFF,0x7F,0x7F,0x3E,0x38,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x8F,0x7F,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x07,0x07,0x07,0x07,0x07,0x01,0x00,0x00,0x00,0x00,0x30,0x3F,0x00,0x00,
0x00,0x00,0xF0,0x0E,0x01,0x80,0xE0,0x18,0x06,0x81,0xE0,0xF8,0xFE,0xFF,0x7D,0xC7,
0xF3,0xFB,0x7F,0x07,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x1E,0xFC,0xC1,0x0A
};

unsigned char code pic4[]=
{/*-- µ÷ÈëÁËÒ»·ùͼÏñ£ºD:\liu\ÏÔʾͼƬ\12864-.bmp --*/
/*-- ¿í¶Èx¸ß¶È=128x64 --*/
0x80,0xF0,0xFC,0xFF,0x7F,0x0F,0x07,0x21,0xF4,0x00,0x00,0x80,0x80,0x80,0xC0,0xC0,
0xC0,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x60,
0x18,0x8E,0x63,0xB0,0x5C,0xD7,0xFD,0xFF,0x7F,0x6F,0xB7,0xED,0x37,0xBF,0xB7,0xF2,
0xFC,0xFF,0xBF,0xBF,0x37,0xAE,0x3F,0xEF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBF,
0xD7,0xFE,0x7F,0xBF,0x7F,0x8D,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF7,0xFC,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF7,0xFE,0xFF,0xFF,0xFF,0xFE,0xFF,0xFF,0xFF,0xFF,
0x00,0x00,0x01,0x01,0x01,0x81,0x41,0xA1,0x51,0xAB,0x57,0xAB,0x55,0xAA,0x75,0xBE,
0x5B,0x2D,0x86,0xF3,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBB,0xCD,
0x56,0x49,0x75,0x9F,0x63,0x09,0xC7,0xF0,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xF0,0x00,0x00,0x00,
0x00,0x00,0x01,0x03,0x06,0x0C,0x0C,0x08,0x10,0x00,0x05,0x03,0x03,0x03,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xA0,0x5C,0xAB,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xEA,0x65,0xB2,
0xF9,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xBF,0x5E,0x9F,0x48,0x2A,
0x35,0xBA,0xC5,0xF2,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x20,0x10,0x90,0xD0,0xFC,0xD4,0x90,
0x18,0xC8,0x48,0x48,0xC8,0xC8,0x08,0xF8,0x08,0x18,0x18,0x08,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x18,0x60,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x00,0x08,0x8C,0x8C,0x8C,0x8C,
0x8C,0x88,0x08,0x08,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xC0,0xB8,0x55,0xAA,0x55,0xAA,0xD5,0x6A,0x35,0x1A,0x5D,0xFE,0xFF,0xBD,0xDE,0xFF,
0xFF,0xFF,0xFF,0xBF,0xFF,0xFF,0xDF,0xEF,0xFF,0xFF,0xFC,0xFE,0xFE,0xFE,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x02,0x02,0x03,0x01,0x10,0x3F,0x00,0x00,
0x00,0x13,0x11,0x11,0x33,0x31,0x18,0x1F,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1C,0x3E,0x7E,0xDC,0x98,0x64,0xEC,0x7E,0xBE,0x1C,0x00,0x00,0x00,0x00,
0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x40,0xA0,0xDC,0x6A,
0x35,0x1A,0xAD,0x8E,0xD7,0xEB,0xF4,0xFA,0xDC,0xFE,0xBB,0xCD,0xF6,0x7F,0x9F,0xEF,
0xF7,0x7C,0x1E,0xEF,0xFB,0xFE,0xF7,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x08,0x0C,0x0C,0xF4,0xA4,0xA4,
0xE4,0xE4,0x9F,0x9E,0xE4,0xA4,0x2C,0xFC,0xEC,0x0C,0x08,0x08,0x00,0x00,0x00,0x00,
0x02,0x02,0x0F,0x02,0x02,0x02,0x00,0x1F,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};

void Step(void) interrupt 0 using 0
{
Delay1(300);
if(int0==0)
// { while(IE0);
log=!log;
// }
while(!int0);
return;

}


void Delay1(uint n)
{while(n--);

return;
}

void Write_number(uchar code *n,uchar k,uchar station_dot)
{uchar i;
Start();
SentByte(Write_Address);
SentByte(0x40);
for(i=0;i<8;i++)
{
SentByte(*(n+16*k+i));
}
Stop();

Set_Page_Address(Start_page+1) ;
Set_Column_Address(Start_column+station_dot*8);
Start();
SentByte(Write_Address);
SentByte(0x40);
for(i=8;i<16;i++)
{
SentByte(*(n+16*k+i));
}
Stop();

}

void display_Contrast_level(uchar number)
{ uchar number1,number2,number3;
number1=number/100;number2=number%100/10;number3=number%100%10;
Set_Column_Address(Start_column+0*8);
Set_Page_Address(Start_page);
Write_number(num,number1,0);
Set_Column_Address(Start_column+1*8);
Set_Page_Address(Start_page);
Write_number(num,number2,1);
Set_Column_Address(Start_column+2*8);
Set_Page_Address(Start_page);
Write_number(num,number3,2);

}

void adj_Contrast(void)
{ Delay1(300);
if((key_add==0)||(key_dec==0))
{
if (key_add==0)
{Contrast_level+=1;
Set_Contrast_Control_Register(Contrast_level);
display_Contrast_level(Contrast_level);
Delay1(8000);
if(key_add==0)
{Delay1(8000);
if(key_add==0)
{Delay1(8000);
if(key_add==0)
{Delay1(8000);
if(key_add==0)

{while(key_add==0)
{Contrast_level+=1;
Set_Contrast_Control_Register(Contrast_level);
display_Contrast_level(Contrast_level);
Delay1(4000);
}
}
}
}
}
}

if (key_dec==0)
{Contrast_level-=1;
Set_Contrast_Control_Register(Contrast_level);
display_Contrast_level(Contrast_level);
Delay1(8000);
if(key_dec==0)
{Delay1(8000);
if(key_dec==0)
{Delay1(8000);
if(key_dec==0)
{Delay1(8000);
if(key_dec==0)

{while(key_dec==0)
{Contrast_level-=1;
Set_Contrast_Control_Register(Contrast_level);
display_Contrast_level(Contrast_level);
Delay1(4000);
}
}
}
}
}
}

}
}

void Delay(uint n)
{while(n)
{ if((key_add==0)||(key_dec==0)) adj_Contrast();
n--;
}
for(;log==1;)
{
if((key_add==0)||(key_dec==0)) adj_Contrast();
}

return;
}

void Start(void)
{ SDA=1;
SCL=1;
_nop_();
SDA=0;
_nop_();
SCL=0;
}

void Stop(void)
{
SCL=0;
SDA=0;
_nop_();
SCL=1;
_nop_();
SDA=1;
}

void Check_Ack(void)//Acknowledge
{
unsigned char ack=1;
SDA=1;
SCL=1;
_nop_();
while(ack==1){ack=SDA;}
_nop_();
SCL=0;
return;
}

void SentByte(unsigned char Byte)
{
uchar i;
for(i=0;i<8;i++)
{ SCL=0;
if((Byte&0x80)==0x80) SDA=1;
else SDA=0;
SCL=1;
_nop_();
Byte=Byte<<1;
}
SCL=0;
Check_Ack();

}

unsigned char ReceiveByte(void)
{uchar i,rudata=0;
SCL=0;
SDA=1;
for(i=0;i<8;i++)
{ SCL=1;
_nop_();
if (SDA==1)rudata|=0x01;
else rudata|=0x00;
rudata=rudata<<1;
SCL=0;
_nop_();
}
Send_ACK();
return rudata;
}

void Send_ACK(void)
{ SCL=0;
SDA=0;
_nop_();
SCL=1;
SCL=0;
}

// Set page address 0~15
void Set_Page_Address(unsigned char add)
{ Start();
SentByte(Write_Address);
SentByte(0x80);
add=0xb0|add;
SentByte(add);
_nop_();
return;
}

void Set_Column_Address(unsigned char add)
{ Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte((0x10|(add>>4)));
SentByte(0x80);
SentByte((0x0f&add));
Stop();
return;
}

void Set_Contrast_Control_Register(unsigned char mod)
{
Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0x81);
SentByte(0x80);
SentByte(mod);
Stop();
return;
}

#pragma disable
void Initial(void)
{
RST=1;
Delay(2000);
RST=0;
Delay(2000);
RST=1;

Delay(2000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xae);//--turn off oled panel
SentByte(0x80);

SentByte(0xd5);//--set display clock divide ratio/oscillator frequency
SentByte(0x80);
SentByte(0x80);//--set divide ratio
SentByte(0x80);

SentByte(0xa8);//--set multiplex ratio(1 to 64)
SentByte(0x80);
SentByte(0x3f);//--1/64 duty
SentByte(0x80);

SentByte(0xd3);//-set display offset
SentByte(0x80);
SentByte(0x00);//-not offset
SentByte(0x80);

SentByte(0x8d);//--set Charge Pump enable/disable
SentByte(0x80);
SentByte(0x14);//--set(0x10) disable
SentByte(0x80);

SentByte(0x40);//--set start line address
SentByte(0x80);

SentByte(0xa6);//--set normal display
SentByte(0x80);

SentByte(0xa4);//Disable Entire Display On
SentByte(0x80);

SentByte(0xa1);//--set segment re-map 128 to 0
SentByte(0x80);

SentByte(0xC8);//--Set COM Output Scan Direction 64 to 0
SentByte(0x80);

SentByte(0xda);//--set com pins hardware configuration
SentByte(0x80);
SentByte(0x12);
SentByte(0x80);

SentByte(0x81);//--set contrast control register
SentByte(0x80);
SentByte(Contrast_level);
SentByte(0x80);

SentByte(0xd9);//--set pre-charge period
SentByte(0x80);
SentByte(0xf1);
SentByte(0x80);

SentByte(0xdb);//--set vcomh
SentByte(0x80);
SentByte(0x40);

SentByte(0x80);

SentByte(0xaf);//--turn on oled panel

Stop();
}

void Display_Chess(unsigned char value)
{
unsigned char i,j,k;
for(i=0;i<0x08;i++)
{
Set_Page_Address(i);

Set_Column_Address(0x00);

Start();
SentByte(Write_Address);
SentByte(0x40);
for(j=0;j<0x10;j++)
{
for(k=0;k<0x04;k++)
SentByte(value);
for(k=0;k<0x04;k++)
SentByte(~value);
}
Stop();
}
return;
}

void Display_Chinese(unsigned char ft[])
{
unsigned char i,j,k,b,c=0;
unsigned int num=0;

for(b=0;b<4;b++)
{
for(i=0;i<0x02;i++)
{ Set_Page_Address(c);
Set_Column_Address(0x00);
num=i*0x10+b*256;
Start();
SentByte(Write_Address);
SentByte(0x40);
for(j=0;j<0x08;j++)
{
for(k=0;k<0x10;k++)
{
SentByte(ft[num+k]);
}
num+=0x20;
}c++;
Stop();
}
}
return;
}

//Display_Chinese1
void Display_Chinese_Column(unsigned char ft[])
{
unsigned char i,j,k,num=0x40;
for(i=0;i<0x08;i++)
{
Set_Page_Address(i);
Set_Column_Address(0x00);
Start();
SentByte(Write_Address);
SentByte(0x40);
for(j=0;j<0x08;j++)
{
for(k=0;k<0x10;k++)
{
SentByte(ft[num+k]);
}
}
Stop();
num+=0x10;
}
return;
}

void Display_Picture(unsigned char pic[])
{
unsigned char i,j,num=0;
for(i=0;i<0x08;i++)
{
Set_Page_Address(i);
Set_Column_Address(0x00);
Start();
SentByte(Write_Address);
SentByte(0x40);
for(j=0;j<0x80;j++)
{
SentByte(pic[i*0x80+j]);
}
Stop();
}
return;
}

void main(void)
{ IE=0x81;
IP=0x01;
TCON=0x01;
int0=1;
Delay(100);

Initial();

while(1)
{
Display_Picture(pic);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Picture(pic1);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Picture(pic2);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Picture(pic3);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Picture(pic4);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Chess(0x0f);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Chinese(font);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Display_Chinese(font);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
Display_Chinese_Column(font);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa7);//--set Inverse Display
SentByte(0x00);
Stop();
Display_Chinese_Column(font);
Delay(65000);

Start();
SentByte(Write_Address);
SentByte(0x80);
SentByte(0xa6);//--set normal display
SentByte(0x00);
Stop();
}
}
What do I need from you guys?
Just help me make sense of all this... I'm not even sure its java... Maybe its C code... I just don't know!
 

Cableguy

Expert
Licensed User
Longtime User
Its C. For AT8652 MCU.
all you care about from this code, is the sequence of data written out.

Thanks for taking the time to read all this...
If I may as, could you take one method of your choice and "convert" it into almost b4a...
Maybe I can start making some sense out of comparison.
 

thedesolatesoul

Expert
Licensed User
Longtime User
Are you familiar with I2C protocol? This is what the code is implementing, asserting and deasserting SDA and SCL. I'm not really familiar with it but surely it is just creating the sequence like: Start()->SendByte(Byte)->SendByte(Byte)->Stop()
So as I understand it, B4A will interface with IOIO which then interfaces with the I2C Display?
Is the B4A to IOIO interface serial? How do you program the IOIO to write to the I2C Display?
 

Cableguy

Expert
Licensed User
Longtime User
The ioio can interface as a master in up to 3 different i2c circuits...
My issue here is.. Apparently the display needs to be buffered before actually displaying the image...
In my short knowlage of this kind of stuff, this means I need to "compose" the image as a series of byte into a string and then send them, is this a correct assumption (translation) of the word buffer?
 
Top