arduino-SSD1322-master
所属分类:处理器开发
开发工具:C/C++
文件大小:215KB
下载次数:6
上传日期:2018-01-11 15:27:48
上 传 者:
jnzhou
说明: Initialization and display on OLED with SSD1322 drive IC.
(based on Arduino platform to display information on OLED 256x64 panel.)
文件列表:
.project (220, 2016-10-27)
ESP8266_SSD1322.cpp (43073, 2016-10-27)
ESP8266_SSD1322.h (6300, 2016-10-27)
Font16.c (28872, 2016-10-27)
Font16.h (415, 2016-10-27)
Font32.c (69062, 2016-10-27)
Font32.h (195, 2016-10-27)
Font64.c (29654, 2016-10-27)
Font64.h (195, 2016-10-27)
Font7s.c (21775, 2016-10-27)
Font7s.h (195, 2016-10-27)
LICENSE (1076, 2016-10-27)
Load_fonts.h (482, 2016-10-27)
examples (0, 2016-10-27)
examples\ssd1322_128x64_spi (0, 2016-10-27)
examples\ssd1322_128x64_spi\ssd1322_128x64_spi.ino (10542, 2016-10-27)
library.properties (338, 2016-10-27)
media (0, 2016-10-27)
media\arduino101_oled_resize.jpg (195011, 2016-10-27)
# Arduino/ESP8266 SSD1322 Library
## For Newhaven NHD-3.12-256***UCY2 OLED Display
The [Adafruit GFX](https://github.com/adafruit/Adafruit-GFX-Library) introduces graphics primitives (points, lines, circles, etc.). This library add support for the [Newhaven NHD-3.12-256***UCY2](http://www.newhavendisplay.com/nhd312256***ucy2-p-3537.html) 256x***x16 Yellow OLED Display. The driver supports 4-wire SPI mode.
This repository was forked from [ESP8266_SSD1322](https://github.com/winneymj/ESP8266_SSD1322) that in turn was based on [Adafruit SSD1306](https://github.com/adafruit/Adafruit_SSD1306).
### Introducing support for Arduino 101
Changes compared to [ESP8266_SSD1322](https://github.com/winneymj/ESP8266_SSD1322):
* Add support for the Arduino 101 (native 3.3 Volt, base on Intel Curie)
* Along the way, I did some minor touch ups:
* add support for !RESET connected to hardware reset instead of GPIO pin (saves me 1 pin)
* remove unused variables (`rowTerminated`, `offScreen`, `color`)
* suppress compiler warning strict-aliasing when accessing fonts
* remove unused pointer value access e.g. `string++` instead of `string++`
* add test for `flash_address` unassigned
* add headers to files indicating support for SSD1322.
### Wiring
| OLED | Arduino 101 |
| ------------ | ----------------------- |
| #1 (Vss) | GND |
| #2 (Vdd) | 3V3 (up to 271 mA, use external power supply to Arduino 101) |
| #4 (D/!C) | D9 |
| #7 (SCLK) | D13 (hardware SPI SCLK) |
| #8 (SDIN) | D11 (hardware SPI MOSI) |
| #16 (!RESET) | !RESET |
| #17 (!CS) | D10 |
| #5,#6,#10-14,#19,#20 | GND |
| #3, #9, #15, #18 | not connected |
Tested and passed on Arduino 101. I like this display, and being able to use the Adafruit GFX primitives is even better!
![image](media/arduino101_oled_resize.jpg)
### Details
For the datasheet and protocol details refer to
* [data sheet](http://www.newhavendisplay.com/specs/NHD-3.12-256***UCY2.pdf)
* [app note](http://www.newhavendisplay.com/app_notes/SSD1322.pdf)
近期下载者:
相关文件:
收藏者: