DMD2 Custom pin

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
KevLeo94
Posts: 2
Joined: Fri Nov 15, 2019 6:30 am

DMD2 Custom pin

Post by KevLeo94 » Fri Nov 15, 2019 6:38 am

Hi, i'm new here. i'm facing problem with my custom pin for dmd2 library. i'm using arduino uno. the pins that i used are:
pin A2 for A, pin A3 for B, pin A1 for R, pin A0 for OE, pin 9 for latch(SCLK), and pin 10 for CLK. i tried to modified the pin, and all works well only when the R pin didn't place on Analog pin of arduino. can you help me solve this? cuase i've already make a lot of PCB for this custom pin. thank you

Brissieboy
Posts: 181
Joined: Fri Sep 20, 2013 7:25 am

Re: DMD2 Custom pin

Post by Brissieboy » Fri Nov 15, 2019 11:08 pm

Maybe post your sketch so others can see what you are trying to do.
Please note that DMD2 is only a beta and not really supported as the original author has moved on. It does have some good points, but also has some shortcomings.
And not a good idea to get PCBs made before you prove your design.

KevLeo94
Posts: 2
Joined: Fri Nov 15, 2019 6:30 am

Re: DMD2 Custom pin

Post by KevLeo94 » Sat Nov 16, 2019 7:32 am

this is my sketch if you want to know. as I prove that my design work ok, but without the dmd library. and it is sucks when it's come to font setting. so i choose to use dmd library and stuck in this case.


here is my sketch

Code: Select all

#include <SPI.h>        
#include <DMD2.h>        
#include <fonts/SystemFont5x7.h>
#include <fonts/Arial_Black_16_edit.h>

#define OEpin A0
#define Apin A2
#define Bpin A3
#define latchpin 9
#define clkpin 10
#define Rpin A0

SoftDMD dmd(3, 1, OEpin, Apin, Bpin, latchpin, clkpin, Rpin);

void setup() {
  // put your setup code here, to run once:
  dmd.setBrightness(255);
  dmd.selectFont(Arial_Black_16);
  dmd.begin();

  dmd.drawString(11,0, "Kaktus");
}

void loop() {
  // put your main code here, to run repeatedly:
}

Brissieboy
Posts: 181
Joined: Fri Sep 20, 2013 7:25 am

Re: DMD2 Custom pin

Post by Brissieboy » Sun Nov 17, 2019 12:18 am

Haven't looked too deeply yet, but have a good look at your #define statements for OEpin and Rpin - both are defined as A0. Might be a good place to start.
And please use the code markers </> in future when you insert code in a post.

Brissieboy
Posts: 181
Joined: Fri Sep 20, 2013 7:25 am

Re: DMD2 Custom pin

Post by Brissieboy » Wed Nov 20, 2019 1:19 am

KevLeo94, how did you go? Was that your problem or was it just a typo when you entered the code?

Post Reply