Skip to content

Commit abd7f18

Browse files
authored
Merge pull request #55 from FoamyGuy/fix_active3_pinouts
Fix active3 pinouts swapped pins R and B
2 parents 5d46945 + b057531 commit abd7f18

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/triple_matrix_active3_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
geometry = piomatter.Geometry(width=width, height=height, n_addr_lines=n_addr_lines, n_planes=10, n_temporal_planes=4, map=pixelmap, n_lanes=n_lanes)
3232
framebuffer = np.asarray(canvas) + 0 # Make a mutable copy
3333
matrix = piomatter.PioMatter(colorspace=piomatter.Colorspace.RGB888Packed,
34-
pinout=piomatter.Pinout.Active3BGR,
34+
pinout=piomatter.Pinout.Active3,
3535
framebuffer=framebuffer,
3636
geometry=geometry)
3737

src/include/piomatter/pins.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ struct adafruit_matrix_bonnet_pinout_bgr {
4141
};
4242

4343
struct active3_pinout {
44-
static constexpr pin_t PIN_RGB[] = {7, 27, 11, 10, 9, 8, 6, 5, 12,
45-
20, 13, 19, 3, 2, 14, 21, 16, 26};
44+
static constexpr pin_t PIN_RGB[] = {11, 27, 7, 8, 9, 10, 12, 5, 6,
45+
19, 13, 20, 14, 2, 3, 26, 16, 21};
4646
static constexpr pin_t PIN_ADDR[] = {22, 23, 24, 25, 15};
4747
static constexpr pin_t PIN_OE = 18; // /OE: output enable when LOW
4848
static constexpr pin_t PIN_CLK = 17; // SRCLK: clocks on RISING edge
@@ -60,8 +60,8 @@ struct active3_pinout {
6060
};
6161

6262
struct active3_pinout_bgr {
63-
static constexpr pin_t PIN_RGB[] = {11, 27, 7, 8, 9, 10, 12, 5, 6,
64-
19, 13, 20, 14, 2, 3, 26, 16, 21};
63+
static constexpr pin_t PIN_RGB[] = {7, 27, 11, 10, 9, 8, 6, 5, 12,
64+
20, 13, 19, 3, 2, 14, 21, 16, 26};
6565
static constexpr pin_t PIN_ADDR[] = {22, 23, 24, 25, 15};
6666
static constexpr pin_t PIN_OE = 18; // /OE: output enable when LOW
6767
static constexpr pin_t PIN_CLK = 17; // SRCLK: clocks on RISING edge

0 commit comments

Comments
 (0)