forked from Wren6991/PicoDVI
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples for Feather DVI pinout, fix comments
- Loading branch information
1 parent
8fb694a
commit 506fca6
Showing
7 changed files
with
123 additions
and
48 deletions.
There are no files selected for viewing
26 changes: 17 additions & 9 deletions
26
examples/hello/hello.ino → examples/16bit_hello/16bit_hello.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// 1-bit (black, white) text mode for PicoDVI. | ||
|
||
#include <PicoDVI.h> | ||
|
||
// Here's how an 80x30 character display is declared. First argument, | ||
// resolution, is full display pixel count...character cells are 8x8 pixels, | ||
// yielding the 80x30 result. 640x240 uses "tall" pixels, the result of all | ||
// this is very reminiscent of IBM VGA mode. Second argument is a hardware | ||
// configuration -- examples are written for Adafruit Feather RP2040 DVI, | ||
// but that's easily switched out for boards like the Pimoroni Pico DV | ||
// (use 'pimoroni_demo_hdmi_cfg') or Pico DVI Sock ('pico_sock_cfg'). | ||
DVItext1 display(DVI_RES_640x240p60, adafruit_feather_dvi_cfg); | ||
|
||
// Wider and taller modes are possible. Wider pushes overclocking even | ||
// higher than 640x480 mode. SOME BOARDS MIGHT SIMPLY NOT BE COMPATIBLE | ||
// WITH THIS. May require selecting QSPI div4 clock (Tools menu) to slow | ||
// down flash accesses, may require over-volting the CPU to 1.25 or 1.3 V. | ||
// Here's how a 100x60 char display might be declared: | ||
//DVItext1 display(DVI_RES_800x480p60, adafruit_feather_dvi_cfg); | ||
|
||
void setup() { // Runs once on startup | ||
if (!display.begin()) { // Blink LED if insufficient RAM | ||
pinMode(LED_BUILTIN, OUTPUT); | ||
for (;;) digitalWrite(LED_BUILTIN, (millis() / 500) & 1); | ||
} | ||
} | ||
|
||
void loop() { | ||
display.print("Hello World! "); | ||
delay(50); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters