Introduction: Arduino Serial Terminal Oled With Adafruit SSD1306 Library
I used the library and graphics Adafruit_GFX Adafruit_SSD1306 I made the Arduino platform used as serial terminal
and the characters received atravez a mini OLED screen, this is only the first part of a slightly more complex project with Arduino and ESP8266 module.
It just wants to show what comes from the serial port on a Oled screen ....
More info:
Step 1: Components and Materials Required for Testing
Components and materials required for testing
1 Arduino ... in my case Arduino Mega 2560
Step 2: Código
They have been used Adafruit_GFX libraries and Adafruit_SSD1306 excellent for graphics applications screens with I2C and SPI protocol, the code does the following things:
1 configuration of the I2C Oled screen.
2 Make serial port settings
3 The screen is initialized and the characters of the serial port are stored in a variable and then the values are printed on the screen.
More info:
Blog PDAControl English
Code
Git Hub Code with End line..
More info. JhonValenciaPDAcontrol
Step 3: Testing
character printing serial port works correctly, the only drawback restart the realization of the screen because the print area on the screen ends and does not return to the position display.setCursor 0.0 (0.0); to fill the amount of carateres on the screen.
2 Comments
7 years ago
I've been unable to get the display.clearDisplay function to work. Every other function works fine. I am using the DIY SSD_1306 , 128x64 I2c with the Adafruit Libraries: SSD1306.h and GFX.h etc. It appears it assigns the reset in the cpp library to an int 4. I have the pins going SDA>A4 and SCLA5. Is it possibly looking for the digital pin 4? Nice project by the way.
Reply 7 years ago
I'm conducting tests of library and function Clear the implement with delays before and after use, I tested, though one made a loop for to clean pixel by pixel ... effected, tests and will inform you about my progress ..
perform tests run printing a bitmap and function clear ..