-
I've got an Adafrui MatrixPortal S3 and 64x32 display that I had working with CircuitPython and static const uint8_t kPinR1 = 35;
static const uint8_t kPinG1 = 34;
static const uint8_t kPinB1 = 33;
static const uint8_t kPinR2 = 31;
static const uint8_t kPinG2 = 32;
static const uint8_t kPinB2 = 30;
static const uint8_t kPinA = 26;
static const uint8_t kPinB = 29;
static const uint8_t kPinC = 25;
static const uint8_t kPinD = 28;
static const uint8_t kPinE = 23;
static const uint8_t kPinLatch = 24;
static const uint8_t kPinOE = 22;
static const uint8_t kPinClock = 38;
MatrixPanel_I2S_DMA* gDisplay;
uint16_t gRed;
void setup()
{
HUB75_I2S_CFG::i2s_pins pins={kPinR1, kPinG1, kPinB1, kPinR2, kPinR2, kPinB2, kPinA, kPinB, kPinC, kPinD, kPinE, kPinLatch, kPinOE, kPinClock};
HUB75_I2S_CFG displayConfig(
64, // module width
32, // module height
1, // Chain length
pins
);
gDisplay = new MatrixPanel_I2S_DMA(displayConfig);
gDisplay->begin();
//gDisplay->setBrightness8(40); //0-255
//gDisplay->clearScreen();
//gRed = gDisplay->color565(255, 0, 0);
//gDisplay->fillScreen(gRed);
}
There’s nothing else going on on the chip except blinking an LED in the lop and some `Serial.println` during setup. Am I missing some config step? |
Beta Was this translation helpful? Give feedback.
Answered by
JetForMe
Feb 21, 2025
Replies: 1 comment
-
Aaand I'm an idiot. I used the pin numbers, not the GPIO numbers. It should be: static const uint8_t kPinR1 = 42;
static const uint8_t kPinG1 = 41;
static const uint8_t kPinB1 = 40;
static const uint8_t kPinR2 = 38;
static const uint8_t kPinG2 = 39;
static const uint8_t kPinB2 = 37;
static const uint8_t kPinA = 45;
static const uint8_t kPinB = 36;
static const uint8_t kPinC = 48;
static const uint8_t kPinD = 35;
static const uint8_t kPinE = 21;
static const uint8_t kPinLatch = 47;
static const uint8_t kPinOE = 14;
static const uint8_t kPinClock = 2; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JetForMe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aaand I'm an idiot. I used the pin numbers, not the GPIO numbers. It should be: