Skip to content

Commit

Permalink
Merge pull request #9513 from tannewt/rp2350_rgbmatrix
Browse files Browse the repository at this point in the history
Enable RGBMatrix on RP2350
  • Loading branch information
dhalbert authored Aug 15, 2024
2 parents 65a40f5 + ee2f7bd commit dd03d4f
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/protomatter
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "GD25Q64C,W25Q64JVxQ"

CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0

CIRCUITPY_FLOPPYIO = 0
CIRCUITPY_PICODVI = 1
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CHIP_FAMILY = rp2
EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0

# Include these Python libraries in firmware.
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_SimpleIO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0

# Include these Python libraries in firmware.
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0
CIRCUITPY_PICODVI = 1

FROZEN_MPY_DIRS += $(TOP)/ports/raspberrypi/boards/solderparty_rp2040_stamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q128JVxQ"

CIRCUITPY__EVE = 1
CIRCUITPY_ALARM = 0
CIRCUITPY_RGBMATRIX = 0
CIRCUITPY_PICODVI = 1

FROZEN_MPY_DIRS += $(TOP)/ports/raspberrypi/boards/solderparty_rp2040_stamp
Expand Down
7 changes: 0 additions & 7 deletions ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ static void __not_in_flash_func(dma_irq_handler)(void) {
if (active_picodvi == NULL) {
return;
}
// gpio_put(10, 1);
uint ch_num = active_picodvi->dma_pixel_channel;
dma_channel_hw_t *ch = &dma_hw->ch[ch_num];
dma_hw->intr = 1u << ch_num;
Expand All @@ -128,7 +127,6 @@ static void __not_in_flash_func(dma_irq_handler)(void) {
// will trigger the pixel channel).
ch = &dma_hw->ch[active_picodvi->dma_command_channel];
ch->al3_read_addr_trig = (uintptr_t)active_picodvi->dma_commands;
// gpio_put(10, 0);
}

void common_hal_picodvi_framebuffer_construct(picodvi_framebuffer_obj_t *self,
Expand Down Expand Up @@ -392,11 +390,6 @@ void common_hal_picodvi_framebuffer_construct(picodvi_framebuffer_obj_t *self,
never_reset_pin_number(i);
}

// gpio_init(10);
// gpio_put(10, 0);
// gpio_set_dir(10, GPIO_OUT);
// never_reset_pin_number(10);

dma_channel_config c;
c = dma_channel_get_default_config(self->dma_command_channel);
channel_config_set_transfer_data_size(&c, DMA_SIZE_32);
Expand Down

0 comments on commit dd03d4f

Please sign in to comment.