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
DMD2 Custom pin
-
- Posts:209
- Joined:Fri Sep 20, 2013 7:25 am
Re: DMD2 Custom pin
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.
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
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
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:
}
-
- Posts:209
- Joined:Fri Sep 20, 2013 7:25 am
Re: DMD2 Custom pin
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.
And please use the code markers </> in future when you insert code in a post.
-
- Posts:209
- Joined:Fri Sep 20, 2013 7:25 am
Re: DMD2 Custom pin
KevLeo94, how did you go? Was that your problem or was it just a typo when you entered the code?