Add comments in examples

This commit is contained in:
Phillip Burgess 2023-01-18 16:00:18 -08:00 committed by ladyada
parent 8a77cb318e
commit 75896fc27d
2 changed files with 10 additions and 2 deletions

View file

@ -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 <PicoDVI.h>
// 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);

View file

@ -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 <PicoDVI.h>
// 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);