Skip to content

Distorted image #20

@puffpastri

Description

@puffpastri

I'm trying to run the program but I'm unable to get a clean image.

When running the vortex build I get this:

Image

And when running the rotovox build I get this, but I'm targeting the vortex build specifically:

Image

Both the panels work perfectly when running the demos from rpi-rgb-led-matrix. The adapter I'm using is the Adafruit Triple LED Matrix Bonnet for
Raspberry Pi with HUB75
, and I've tried to match up the pins in gadget_vortex.h like so:

#ifndef _GADGET_H_
#define _GADGET_H_

#define SPIN_SYNC 1

#define RGB_0_B1 7
#define RGB_0_G1 27
#define RGB_0_R1 11
#define RGB_0_B2 10
#define RGB_0_G2 9
#define RGB_0_R2 8

#define RGB_1_B1 6
#define RGB_1_G1 5
#define RGB_1_R1 12
#define RGB_1_B2 20
#define RGB_1_G2 13
#define RGB_1_R2 19

#define ADDR__EN_MASK (1<<ADDR__EN)

#define ADDR_CLK 22
#define ADDR_DAT 23
#define ADDR__EN 24

#define RGB_BLANK 18
#define RGB_CLOCK 17
#define RGB_STROBE 4
#define RGB_BLANK_MASK (1<<RGB_BLANK)
#define RGB_CLOCK_MASK (1<<RGB_CLOCK)
#define RGB_STROBE_MASK (1<<RGB_STROBE)

#define RGB_0_MASK ((1<<RGB_0_R1)|(1<<RGB_0_G1)|(1<<RGB_0_B1)|(1<<RGB_0_R2)|(1<<RGB_0_G2)|(1<<RGB_0_B2))
#define RGB_1_MASK ((1<<RGB_1_R1)|(1<<RGB_1_G1)|(1<<RGB_1_B1)|(1<<RGB_1_R2)|(1<<RGB_1_G2)|(1<<RGB_1_B2))
#define RGB_BITS_MASK (RGB_0_MASK | RGB_1_MASK)

static const int matrix_init_out[] = {RGB_0_B1, RGB_0_G1, RGB_0_R1, RGB_0_B2, RGB_0_G2, RGB_0_R2, RGB_1_B1, RGB_1_G1, RGB_1_R1, RGB_1_B2, RGB_1_G2, RGB_1_R2, ADDR_CLK, ADDR_DAT, ADDR__EN, RGB_BLANK, RGB_CLOCK, RGB_STROBE};

#define PANEL_WIDTH  128
#define PANEL_HEIGHT 64
#define PANEL_COUNT 2
#define PANEL_MULTIPLEX 2
#define PANEL_FIELD_HEIGHT (PANEL_HEIGHT / PANEL_MULTIPLEX)

#define PANEL_0_ORDER(c) (c)
#define PANEL_1_ORDER(c) (c)

#define PANEL_0_ECCENTRICITY 13.5
#define PANEL_1_ECCENTRICITY 0.375

#define VOXELS_X 128
#define VOXELS_Y 128
#define VOXELS_Z 64

#define VOXEL_Z_STRIDE 1
#define VOXEL_X_STRIDE VOXELS_Z
#define VOXEL_Y_STRIDE (VOXEL_X_STRIDE * VOXELS_X)
#define VOXELS_COUNT (VOXELS_X*VOXELS_Y*VOXELS_Z)

#define ROTATION_ZERO 286

#define CLOCK_WAITS 1

#endif

Per your advice in #2, the panels are shift register styled because --led-row-addr-type=3 was needed to get the demo working from rpi-rgb-led-matrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions