remove 2350 example, update comment in 2040 example
This commit is contained in:
parent
f4eee1ff6a
commit
44e4cdd4d5
3 changed files with 3 additions and 31 deletions
|
|
@ -11,9 +11,9 @@
|
|||
// Here's how a 320x240 16-bit color framebuffer is declared. Double-buffering
|
||||
// is not an option in 16-bit color mode, just not enough RAM; all drawing
|
||||
// operations are shown as they occur. 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').
|
||||
// configuration -- this example is written for Adafruit PiCowBell HSTX DVI,
|
||||
// and Raspberry Pi RP2040, 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').
|
||||
DVIGFX16 display(DVI_RES_320x240p60, adafruit_hstxdvibell_cfg);
|
||||
|
||||
// A 400x240 mode is possible but pushes overclocking even higher than
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2024 Michael Bell and Pimoroni Ltd
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
// 16-bit Adafruit_GFX-compatible framebuffer for RP2350 HSTX
|
||||
|
||||
#include <Adafruit_dvhstx.h>
|
||||
|
||||
// initialize display with HSTX DVI CowBell pinout
|
||||
DVHSTX16 display({14, 12, 18, 16}, DVHSTX_RESOLUTION_320x240);
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
// while(!Serial);
|
||||
if (!display.begin()) { // Blink LED if insufficient RAM
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
for (;;)
|
||||
digitalWrite(LED_BUILTIN, (millis() / 500) & 1);
|
||||
}
|
||||
Serial.println("display initialized");
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// Draw random lines
|
||||
display.drawLine(random(display.width()), random(display.height()),
|
||||
random(display.width()), random(display.height()),
|
||||
random(65536));
|
||||
sleep_ms(1);
|
||||
}
|
||||
Loading…
Reference in a new issue