Introduction: Linker OLED for PcDuino
Linker OLED module is an OLED display measured at 0.96 ” and with a resolution of 128 x 64. It communicates with the host through IIC interface. It is of high brightness, wide view angle, low power consumption, and small form factor.
Step 1: Feature
Communication interface:
IICDriver IC: SSD1306
Working voltage: 3.3 V ~ 5.5 V
Working temperature: – 30 ℃ ~ 70 ℃
Display color: mono color ( blue)
Step 2: Part List
Step 3: Test Code
#include
#include "Wire.h"
#include "linker_oled.h"
void setup() { Wire.begin();
linkeroled.init();
linkeroled.clearDisplay(); //clear the screen and set start position to top left corner //linkeroled.setNormalDisplay(); //Set display to normal mode (i.e non-inverse mode) linkeroled.setInverseDisplay(); //Set display to inverse mode
linkeroled.setPageMode(); //Set addressing mode to Page Mode
linkeroled.setTextXY(3,3); //Set the cursor to Xth Page, Yth Column
linkeroled.putString("Hello world"); //Print the String
linkeroled.setTextXY(6,5); //Set the cursor to Xth Page, Yth Column
linkeroled.putString("pcDuino"); //Print the String }
void loop() { }
Step 4: Test Result
1. )Wiring according to the following:
LinkerOLED - SDA –> pcDuino3 - SDA LinkerOLED - SCL –> pcDuino3 - SCL LinkerOLED - VCC –> pcDuino3 - 3.3V LinkerOLED - GND –> pcDuino3 - GND
2. Donwload the attachment text code, then open the Arduino IDE, compile and run.
3. Text result.
Step 5: Download
Linker OLED_pcDuino
Original post from http://learn.linksprite.com/pcduino/arduino-ish-pr...
Twitter: @pcDuino_No1 https://twitter.com/pcDuino_NO1
Facebook: pcDuino https://www.facebook.com/YannyGuoYunyan
Google: pcDuino https://plus.google.com/u/0/communities/114287966294070087720
Email: yannyguoy@gmail.com