FREE Functions to draw graphs on OLED displays

preview_player
Показать описание
Give your Arduino or Teensy projects a professional look by draw data using horizontal, vertical, dial, or Cartesian coordinate graphs on 0.96" OLED displays.

DOWNLOAD LINK
Located on GitHub
Follow the following link and click the large green button that says Code, and chose the Download ZIP option

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

Sir, this actually pretty cool and amazing, thanks for sharing, really valuable stuff u got here in your channel.

hectorhirammirandaflores
Автор

Hi Kris,
Great project but a bit out of date on Library usage. In order to make this work people will need to make the following changes:
Add this info to the beginning of the code:
#include <Wire.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels

// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
// The pins for I2C are defined by the Wire-library.
// On an arduino UNO: A4(SDA), A5(SCL)
// On an arduino MEGA 2560: 20(SDA), 21(SCL)
// On an arduino LEONARDO: 2(SDA), 3(SCL), ...
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3D ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

Remove the following code:
#define SSD1306_128_64
#define READ_PIN A0
#define OLED_RESET A4
#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH 16
// create the display object
Adafruit_SSD1306 display(OLED_RESET);

Then the code runs great!

robertguerard
Автор

This code is fantastic! Does what it says on the tin - and exceptionally well documented/commented! Well done!!

jonschulman
Автор

Thank you for your willingness to share your project..👏👏👏

TheFleetz
Автор

Wow Kris, thanks a lot, saved me a ton of time. I was beginging to write my own functions and i came across this video!

irapps
Автор

Thank you for your video and hard work making the software available for others to use.

MrBobWareham
Автор

Thanks Kris! Will use this. I have been using part of your code in an antenna analyzer project. From your video using TFT displays.

keest
Автор

Amazing functions, very useful... Thank you very much!

theoldknowledge
Автор

Brilliant, thanks. I was looking for how to do what I was trying to do, but you did it for me.

Malcolm

mparkerlisberg
Автор

Just learning but this definitely is a step In the direction I want ;) TY

daddydarkelf
Автор

Legend! Thanks, saved me a lot of time coding the same up! Although if ylo is any number > 0 the X axis doesn't get drawn

chimeranzl
Автор

Thanks for sharing this. Really appreciate your efforts. Keep it up :)

vikrampalsingh
Автор

Quick tip wenn explaining the code, zoom in so that we can see what's happening.

namibianbackyardengineerin
Автор

Thanks alot! You should really put this into a library, don't think there is anything like it.

danstancu
Автор

This looks great, thank you for sharing!

upir_upir
Автор

Thank you, you did a really great work!

ВладиславДудченко-яз
Автор

Thank you Sir, It helps me build a similar project

nghiakhac
Автор

Thank you Sir, it is awsome work right there, much appreciated here in newbie lab :)

henrikh
Автор

Kris Kasprzak, would you be able to increase your IDE font size in your next video. It's difficult to see. Otherwise, love the video. Thanks for sharing.

rickmorenojr
Автор

Hi, Kris! Loved the video. It works well. I was wondering how refresh and start replotting once the data hits the end of the screen? Can you suggest a modification to the code? It would be very helpful.

rafaealhossain