diff --git a/examples/1bit_double_buffer/1bit_double_buffer.ino b/examples/1bit_double_buffer/1bit_double_buffer.ino index 4a9bea7..43857b7 100644 --- a/examples/1bit_double_buffer/1bit_double_buffer.ino +++ b/examples/1bit_double_buffer/1bit_double_buffer.ino @@ -1,7 +1,11 @@ -// 1-bit Adafruit_GFX-compatible framebuffer for PicoDVI. +// Double-buffered 1-bit Adafruit_GFX-compatible framebuffer for PicoDVI. +// Allows animation without redraw flicker. Requires Adafruit_GFX >= 1.11.5 #include +// Double-buffered 1-bit and 8-bit are declared a little differently... +// 1-bit accepts a boolean after the the canvas dimensions to enable/disable +// double-buffering, whereas 8-bit double-buffered uses a distinct class. //DVIGFX1 display(640, 480, true, dvi_timing_640x480p_60hz, VREG_VOLTAGE_1_30, pimoroni_demo_hdmi_cfg); DVIGFX1 display(800, 480, true, dvi_timing_800x480p_60hz, VREG_VOLTAGE_1_30, pimoroni_demo_hdmi_cfg); diff --git a/examples/8bit_double_buffer/8bit_double_buffer.ino b/examples/8bit_double_buffer/8bit_double_buffer.ino index 2235489..4bd8263 100644 --- a/examples/8bit_double_buffer/8bit_double_buffer.ino +++ b/examples/8bit_double_buffer/8bit_double_buffer.ino @@ -1,8 +1,12 @@ // Double-buffered 8-bit Adafruit_GFX-compatible framebuffer for PicoDVI. -// Allows animation without redraw flicker. Requires Adafruit_GFX 1.11.4 +// Allows animation without redraw flicker. Requires Adafruit_GFX >= 1.11.4 #include +// Double-buffered 8-bit and 1-bit are declared a little differently... +// 8-bit requires a distinct class for double-buffering, as its memory +// requirements are unique, while 1-bit has an extra constructor +// argument to enable or disable this. //DVIGFX8x2 display(320, 240, dvi_timing_640x480p_60hz, VREG_VOLTAGE_1_20, pimoroni_demo_hdmi_cfg); DVIGFX8x2 display(400, 240, dvi_timing_800x480p_60hz, VREG_VOLTAGE_1_30, pimoroni_demo_hdmi_cfg);