Arduino and 128x64 OLED Display FREE CODE!!!

preview_player
Показать описание
This short demo shows how to use a 0.96 inch OLED from Balance world Inc. This Yellow and Blue unit is on the I2C Serial buss and works with Arduino UNO, or Mega boards. Shown are voltage measurements and a performance test using a small bar graph.

Code on GitHub
Follow the link below and click the green Code button, and select the download zip option

Graphics Libraries

Display
Рекомендации по теме
Комментарии
Автор

Excellent! Your code is elegant, the clarity is unusual & it works perfectly. Plus. your teaching skills are outstanding. 5-STAR!

gwtomsic
Автор

The address specified is the left shifted value, note that the LSB of the address is the R/W bit which is or'ed in by the driver. Adafruit's driver does the left shifting itself so you have to right shift the value on the board before you pass it to the driver.

KennethScharf
Автор

Emek verdiğiniz kodlarınızı bizimle paylaştığınız için teşekkür ederiz.

onurkayhan
Автор

Hi Kris
I know this is going to be a long text/inquiry, so I apologize in advance.
I THANK YOU IN ADVANCE
My name is Jules, I’m an Arduino newbie. Before I spend a bunch of money with the Arduino I’d like to run this project past you, to see if this is even possible to do with an Arduino. Hardware I currently have
1- 12 volt 2 amp wall wart power supply
2- Arduino UNO R3 (ie Elegoo super starter kit)
3- five ws2812b led light strips with 30 leds on each strip
THE PROJECT
1- What I would like to do is have 5 different sketches (1 for each strip)
2- Then be able to run each strip one at a time, switchable with the IR remote supplied in the kit.

So what and why I’m asking is this, I don’t know anything thing about how to program the Arduino, and I’d rather not go through the learning curve, and the expense if it’s something that won’t work anyway.

julesmarcu
Автор

Dziękuję za ciekawy program, właśnie uczę się OLED-ów. Pozdrowienia z PL

nixo
Автор

Thank you for providing a very interesting and informative video. I intend to put this new knowledge to use

garethdavies
Автор

Thanks, very useful, this is exactly what I needed to know.

noelwalterso
Автор

hello kris, I love your very useful project, intending to use it in dialing small radios. greetings to you my dear,
Like 630 ...
André / Brazil.

arduinomaquinas
Автор

Small comment on the library files. I believe you dont need the SPI .h file as the display runs on i2c (Wire) and you do not connect the SPI cables anyway so it can be removed.

nosafetyswitch
Автор

Hi Kris grat job and tutorial,

I really learn how to use the diplay with your video but I don't get the latest part with "String Format()". What is it needed for? What does it does?

Regards

davidrodribarri
Автор

Kris; Great tutorial BTW. Can someone give me a snippet on how to rotate the screen? Basically, I want to flip the screen upside-down. Thanks!

marinehm
Автор

sir, i am having a problem with the adafruit library. well my oled is working fine but the problem is that the whole adafruit logo is not fitting in my oled. i am using the adafruit1306 SPI example. my oled is 128x64 SPI oled. please help me

khageshroy
Автор

Hey, Thanks for that Video. I now see the random numbers flashing fast. What do i have to change to measure a battery? Tried the "#define ADJ_PIN A0" but I am not sure if i did it correct.

FlexPhill
Автор

Do you know if there is a way to shut off the display and turn it on using the code?

dannyk
Автор

Really good, instructional video. However, when it comes to purchasing things I would not make Amazon's, ,hungry pocket, , more fat than already is. I'd would buy them from a say :, ,affordable places, , : ($13 could buy you not 1 but 6 of those screens and that is what I call good value for your cash !
Having said that, a big thanks you for the video. Very well put together. And excuse my, ,rant,, but I just couldn't help it. I had to say it. ;)

ovi_
Автор

Error in code:
Arduino: 1.8.5 (Windows 10), Placa:"Arduino/Genuino Uno"

CODE\bargraph\bargraph.ino: In function 'void loop()':

bargraph:81: error: 'ADJ_PIN' was not declared in this scope

r = analogRead(ADJ_PIN);

^

exit status 1
'ADJ_PIN' was not declared in this scope

projetos_leotronico
Автор

What should I do when I want to use BME280 sensor with OLED at the same time?
Should I connect SDA and SCL pins from both sensor and OLED toghter and then plug it in Arduino sda and scl pins?

ismailkhan
Автор

Thank you for your really useful over view but something I cant sort is why is the top 1/3 of the display yellow?

campbellmorrison
Автор

where is the code for the volts meter at the very end?

psi
Автор

The includes in the source I downloaded don't look exactly like the ones I saw at 2:36 in the vid.

*/

#include <SPI.h>
#include <Wire.h>

#include <Adafruit_SSD1306.h>

#define OLED_RESET 4
Adafruit_SSD1306 Display(OLED_RESET);

int r = 0;
int i = 0;

void setup() {

rwh