Page 1 of 1

DMD2 Custom pin

Posted: Fri Nov 15, 2019 6:38 am
by KevLeo94
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

Re: DMD2 Custom pin

Posted: Fri Nov 15, 2019 11:08 pm
by Brissieboy
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.

Re: DMD2 Custom pin

Posted: Sat Nov 16, 2019 7:32 am
by KevLeo94
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:
}

Re: DMD2 Custom pin

Posted: Sun Nov 17, 2019 12:18 am
by Brissieboy
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.

Re: DMD2 Custom pin

Posted: Wed Nov 20, 2019 1:19 am
by Brissieboy
KevLeo94, how did you go? Was that your problem or was it just a typo when you entered the code?