Difference between revisions of "OLED (use with mDesigner)"
(→Coordinates) |
(→OLED - Display Message) |
||
Line 120: | Line 120: | ||
::[[File:MDesigner_Temperature_and_Humidity_S2_Read.png]] | ::[[File:MDesigner_Temperature_and_Humidity_S2_Read.png]] | ||
:*'''x''' - "x" position of the message. | :*'''x''' - "x" position of the message. | ||
− | + | :*'''y''' - "y" position of the message. | |
− | + | :*'''message''' - message to display. | |
[[File:OLED Display Message Demo.png|thumb|400px|left]] | [[File:OLED Display Message Demo.png|thumb|400px|left]] |
Revision as of 23:09, 12 July 2018
The organic light-emitting diode (OLED) module is a display module capable of displaying information, shapes, images, etc on its 0.96-inch 128x64 (pixel) screen. Support for this trinket is found in mDesigner.
Contents
Connectivity
The OLED module can be connected to a project in two ways. Either stacking or connecting to a sensor hub using a wire.
Method 1: Stacking
Stack directly onto an mBattery or mCenter+.
Method 2: Connecting with Wire
Connecting the OLED screen to a sensor hub with a wire allows for the OLED to be positioned in different locations.
The following pins on the Hub or mCenter+'s Hub support this module:
Pin Name | Compatibility | Notes |
---|---|---|
Pin 0 | No | |
Pin 1 | No | |
Pin 2 | No | |
Pin 3 | No | |
Pin 4 | No | |
Pin 5 | No | |
Pin 6 | No | |
Pin 7 | No | |
Pin 8 | No | |
Pin 9 | No | |
Pin 10 | No | |
Pin 11 | No | |
Pin 12 | No | |
Pin 13 | No | |
Pin A0 | No | |
Pin A1 | No | |
Pin A2 | No | |
Pin A3 | No | |
Pin A6 | No | |
Pin A7 | No | |
Pin I2C | Yes | Any I2C / IIC pin. |
Coordinates
The OLED screen has a screen resolution of 128 pixel wide by 64 high.
The OLED blocks "x" and "y" values reference the screen resolution with origin (0,0).
The origin (0, 0) is on the top left of the screen (in reference to image below).
Blocks
OLED - Display Message
This block displays a message on the OLED screen. The bottom left corner of the text is aligned to the "x" and y" input. Each character (default) is about 10 pixels tall.
OLED - Draw Line
OLED - Draw Rectangle
OLED - Draw Circle