// This code doesn't even write to the OLED; it displays the Adafruit logo screen;
// On a Nano, it remains static; On a Teensy-LC, it continually scrolls the whole frame to the right (with wraparound).
// Adding delays anywhere only slows it. I also tried swapping another OLED of the same type.
My Nano eats up half its memory with a single interactive text entry screen.
I just got a Teensy-LC and V4.0 and love the speed and capacity. Well done, PJRC!
I'm hoping someone has seen this before. (Something is too fast for something somewhere!)
Thanks - Mitch
5 sec video:
// On a Nano, it remains static; On a Teensy-LC, it continually scrolls the whole frame to the right (with wraparound).
// Adding delays anywhere only slows it. I also tried swapping another OLED of the same type.
My Nano eats up half its memory with a single interactive text entry screen.
I just got a Teensy-LC and V4.0 and love the speed and capacity. Well done, PJRC!
I'm hoping someone has seen this before. (Something is too fast for something somewhere!)
Thanks - Mitch
5 sec video:
Code:
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.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)
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
while (true){
display.display();
delay(1);
}
}
void loop() {
}
Last edited: