Skip to content

Commit 8be7f75

Browse files
committed
move circuitpython to subdir, add arduino examples
1 parent d1484a3 commit 8be7f75

File tree

8 files changed

+644
-0
lines changed

8 files changed

+644
-0
lines changed

PiCowbell_HSTX_DVI_Examples/arduino_rp2040_hstx_dvi_cowbell/.pico_rp2040.test.only

Whitespace-only changes.

PiCowbell_HSTX_DVI_Examples/arduino_rp2040_hstx_dvi_cowbell/arduino_rp2040_hstx_dvi_cowbell.ino

Lines changed: 619 additions & 0 deletions
Large diffs are not rendered by default.

PiCowbell_HSTX_DVI_Examples/arduino_rp2350_hstx_dvi_cowbell/.pico_rp2040.test.only

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// 16-bit Adafruit_GFX-compatible framebuffer for RP2350 HSTX
2+
3+
#include <Adafruit_dvhstx.h>
4+
5+
// initialize display with HSTX DVI CowBell pinout
6+
DVHSTX16 display({14, 12, 18, 16}, DVHSTX_RESOLUTION_320x240);
7+
8+
void setup() {
9+
Serial.begin(115200);
10+
// while(!Serial);
11+
if (!display.begin()) { // Blink LED if insufficient RAM
12+
pinMode(LED_BUILTIN, OUTPUT);
13+
for (;;)
14+
digitalWrite(LED_BUILTIN, (millis() / 500) & 1);
15+
}
16+
Serial.println("display initialized");
17+
}
18+
19+
void loop() {
20+
// Draw random lines
21+
display.drawLine(random(display.width()), random(display.height()),
22+
random(display.width()), random(display.height()),
23+
random(65536));
24+
sleep_ms(1);
25+
}

0 commit comments

Comments
 (0)