Devices & Components
Grove - OLED Display 0.96"
10 jumper wires 150mm male
Arduino Uno Rev3
Breadboard - 400 contacts
Software & Tools
Arduino IDE
Project description
Code
OLEDdisplayCode
cpp
This code will put the text "Hello all" on display
1#include <Wire.h> 2#include <Adafruit_GFX.h> 3#include <Adafruit_SSD1306.h> 4 5#define SCREEN_WIDTH 128 6#define SCREEN_HEIGHT 64 7 8Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1); 9 10void setup() { 11 display.begin(SSD1306_SWITCHCAPVCC, 0x3C); 12 display.clearDisplay(); 13 display.setTextSize(2); 14 display.setTextColor(WHITE); 15 display.setCursor(5, 30); 16 display.println("Hello all."); 17 display.display(); 18} 19 20void loop() { 21 //display.startscrollright(0, 5); 22}
Downloadable files
OLEDdisplayCode1
This code will put the text "Hello all" on display
OLEDdisplayCode.ino
OLEDdisplayCode2
This code will put shapes on the OLED display.
OLEDdisplayCode2.ino
OLEDdisplayCode3
This code will put an image and shapes on display.
OLEDdisplayCode3.ino
Comments
Only logged in users can leave comments