|
发表于 2014-3-9 12:12:26
|
显示全部楼层
shihaipeng04 发表于 2014-3-9 04:39
仔细研究一下,很奇怪,这东西说是iic的链接方式。可是又没有用到wire的库,我一直当iic用的,接的a4 a5, ...
这个是易趣上产品的介绍:
Note: This item come I2C/IIC interface only.
Because the hardware reasons, resulting IIC/I2C bus no ACK response signal , so IIC IIC communication Whitby automated production of OLED modules instead of the standard version . But this can be solved by software ...... published here for the Arduino library file , you can make this OLED module used in the Arduino system.
Download: http://dl.vmall.com/c0w44zd7r9
File description :
IIC_without_ACK.cpp - SSD1306 drivers ;
IIC_without_ACK.h - SSD1306 driver file header ;
oledfont.c - matrix table ( you need to display the contents of the matrix can be calculated by taking the modulus of software after adding this file , modulo the way " common cathode - out line - Reverse Output" ; font will take up a lot of space FLASH , please comment out the unwanted font , so there will be enough space Arduino tips ) .
Function:
Write_IIC_Byte (unsigned char IIC_Byte); / / by IIC write an 8-bit data ( such as 0xff)
Write_IIC_Command (unsigned char IIC_Command); / / write command to the OLED module through IIC bus
Begin_IIC_Data (); / / write data through the IIC bus open ready ( which would allow a group of data transmission is complete and then turn off IIC, can greatly speed )
IIC_SetPos (unsigned char x, unsigned char y); / / Set the starting point coordinates (x range 0 ~ 128, y ranges from 0 to 7 )
Fill_Screen (unsigned char fill_Data); / / Fill_Screen (0xff) - Full screen lit ; Fill_Screen (0 × 00) - Full screen off ( can be used to clear the screen )
Char_F6x8 (unsigned char x, unsigned char y, const char ch []); / / display the ASCII character 6 × 8
Char_F8x16 (unsigned char x, unsigned char y, const char ch []) ;/ / display the ASCII character 8 × 16
CN_F16x16 (unsigned char x, unsigned char y, unsigned char N); / / display of 16 × 16 characters ( this can be considered for the first time on the Arduino platform to achieve the display of Chinese characters )
Draw_BMP (unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, const char BMP []); / / display BMP images of 128 × 64
The other functions is functional function.
Usage:
Please "IIC_without_ACK" folder to x: \ arduino-1.5.5 \ libraries directory , restart the Arduino IDE;
Demo_IIC is based on the Arduino UNO sample program ...... correct wiring and run. |
|