Difference between revisions of "MCookie-OLED"

From Microduino Wiki
Jump to: navigation, search
(F&Q)
 
(3 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
[[file:mCookie-OLED-rect.jpg|400px|thumb|right|Microduino-OLED]]
 
[[file:mCookie-OLED-rect.jpg|400px|thumb|right|Microduino-OLED]]
 
mCookie-OLED is based on SSD1306 0.96-inch 128*64 OLED display module, adopting the IIC (I2C) interface and communicating with the a core module by connecting to an IIC interface on [[mCookie-Hub]] or stacked directly on an mCookie stack.
 
mCookie-OLED is based on SSD1306 0.96-inch 128*64 OLED display module, adopting the IIC (I2C) interface and communicating with the a core module by connecting to an IIC interface on [[mCookie-Hub]] or stacked directly on an mCookie stack.
 
 
 
 
 
 
 
 
 
  
  
Line 32: Line 23:
  
 
==Document==
 
==Document==
 
+
*Uses a SSD1306 module: https://www.google.com/#q=SSD1306+datasheet&*
 
*Uses the u8glib OLED library for control:  
 
*Uses the u8glib OLED library for control:  
 
**u8glib Github: https://github.com/olikraus/u8glib
 
**u8glib Github: https://github.com/olikraus/u8glib
Line 68: Line 59:
 
*What is the voltage of the power supply?  
 
*What is the voltage of the power supply?  
 
**3.3V
 
**3.3V
 +
*What is the construction for the OLED when using the u8glib?
 +
**Constructor with the '''U8GLIB_SSD1306_128X64''' used since this is the type of OLED module: https://github.com/olikraus/u8glib/wiki/device#ssd1306-128x64
  
 
==Purchase==
 
==Purchase==

Latest revision as of 03:35, 4 August 2017

Language: English  • 中文
Microduino-OLED

mCookie-OLED is based on SSD1306 0.96-inch 128*64 OLED display module, adopting the IIC (I2C) interface and communicating with the a core module by connecting to an IIC interface on mCookie-Hub or stacked directly on an mCookie stack.


Features

  • Single color (white) on a back background OLED display.
  • No back-light needed as OLED is view-able in dark conditions.
  • Low voltage and power consumption;
  • Communication over I2C to save IO interfaces.
  • Small, cheap, stackable and open.

Specification

  • Resolution: 128x64;
  • Size of the screen: 0.96 inch;
  • Interface: IIC communication;
  • Voltage: 3.3V.
MCookie OLED-Pinout-1Big1.jpg

Document

Development

For the development, it need to be supported by _01_Microduino_OLED_U8glib library and check the library file here: (Installation Address)\Microduino-IDE\hardware\Microduino\avr\libraries

Microduino-libraries.jpg
Board
  • Open IDE and find "_01_Microduino_OLED_U8glib " examples under " File->Examples ".
_01_Microduino_OLED_U8glib

Project

u8glib Library Program Examples

  • Open Arduino IDE, click "HelloWorld"under " File->Examples->_01_Microduino_OLED_U8glib " and open program examples.
OLED- 01 Microduino OLED U8glib.jpg
  • Download after compiling and you'll see "HelloWorld!" on the screen.
  • Display character/variable:
    • Use u8g.print(xx) function just the same way like Serial.print(xx).
  • Change font:
    • Use u8g.setFont (xx) function to change the font, parentheses "xx" can be replaced by the corresponding font library name (you can search font library in u8g.h within U8glib \utility folder);
    • Large font is recommended for u8g_font_7x13, middle font for u8g_font_fixed_v0r and small font for u8g_font_chikitar;
  • Change coordinates:
    • Use u8g.setPrintPos (x, y) function to change the display of coordinates
  • Screen Rotation:
    • Post u8g.setRot180() in void setup() function, the screen will be flipped to 180-degree, you also can change 180 to 90,270;

Users can open other program examples and see the result. Other Projects: OLED Application

FAQ

Purchase

mCookie-OLED-Front
mCookie-OLED-Back

Video