diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2024-06-10 15:12:17 -0700 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2024-06-10 15:12:17 -0700 |
commit | 8edca67d9b427401d7e57131d2d58d6d8018c852 (patch) | |
tree | 6cf7537eee6e3910f09975941a7f751bc0287ee3 /disp_proj.ino | |
parent | e0576f5aa100c8f7acd666777f0c62bc4c7c6144 (diff) |
test with only bitmap
Diffstat (limited to 'disp_proj.ino')
-rw-r--r-- | disp_proj.ino | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/disp_proj.ino b/disp_proj.ino index 7a937c4..704cf0d 100644 --- a/disp_proj.ino +++ b/disp_proj.ino @@ -66,59 +66,7 @@ void setup() { for(;;); // Don't proceed, loop forever } - // Show initial display buffer contents on the screen -- - // the library initializes this with an Adafruit splash screen. - display.display(); - delay(2000); // Pause for 2 seconds - - // Clear the buffer - display.clearDisplay(); - - // Draw a single pixel in white - display.drawPixel(10, 10, SSD1306_WHITE); - - // Show the display buffer on the screen. You MUST call display() after - // drawing commands to make them visible on screen! - display.display(); - delay(2000); - // display.display() is NOT necessary after every single drawing command, - // unless that's what you want...rather, you can batch up a bunch of - // drawing operations and then update the screen all at once by calling - // display.display(). These examples demonstrate both approaches... - - testdrawline(); // Draw many lines - - testdrawrect(); // Draw rectangles (outlines) - - testfillrect(); // Draw rectangles (filled) - - testdrawcircle(); // Draw circles (outlines) - - testfillcircle(); // Draw circles (filled) - - testdrawroundrect(); // Draw rounded rectangles (outlines) - - testfillroundrect(); // Draw rounded rectangles (filled) - - testdrawtriangle(); // Draw triangles (outlines) - - testfilltriangle(); // Draw triangles (filled) - - testdrawchar(); // Draw characters of the default font - - testdrawstyles(); // Draw 'stylized' characters - - testscrolltext(); // Draw scrolling text - testdrawbitmap(); // Draw a small bitmap image - - // Invert and restore display, pausing in-between - display.invertDisplay(true); - delay(1000); - display.invertDisplay(false); - delay(1000); - - testanimate(logo_bmp, LOGO_WIDTH, LOGO_HEIGHT); // Animate bitmaps } void loop() { |