freetronics / DMD2

Beta release of a new Dot Matrix Display Arduino library
http://forum.freetronics.com/viewtopic.php?f=26&t=5893
GNU General Public License v3.0
80 stars 71 forks source link

Using 2 DMD Screens with 1 ESP8266 #38

Open Amitbh83 opened 5 years ago

Amitbh83 commented 5 years ago

We are trying to control 2 DMD Screens with 1 NodeMCU. Actually we want to display the date to each individual screens in selective manner. I guess on the hardware side while all the connections are the same to both HUB12 connectors, if we keep a separate Data Pin (Pin R) for the second DMD it should do the trick.

For 1 Screen we are using pins as follows: OE - GPIO4 (D2) A - GPIO5 (D1) B - GPIO12 (D6) CLK - GPIO14 (D5) SCK - GPIO15 (D8) R0 - GPIO13 (D7)

Now the issue is that in DMD2.h we could play with only 4 pins i.e. OE,A,B,SCK. How to redefine pin R or declare a new pin R1 (for another Screen) and could address the data to both?

Also, I how to do it if we need to send separate data to both??? In this case i guess more pins might be needed for Pin A,B and SCK.

h4rm0n1c commented 5 years ago

Why don't you just use the daisy-chain connector on the DMD to connect the two together in a chain? The drawing functions can definitely accomplish your desired goal by using the x and y parameters to specify where you'd like your text to appear. This library is somewhat resource heavy from the CPU's perspective as it is, adding more pins is likely to be extremely difficult without a complete rewrite of the library's hardware related code, if not impossible due to aforementioned resource constraints.

On 4 Feb 2019, at 3:37 PM, Amitbh83 notifications@github.com wrote:

We are trying to control 2 DMD Screens with 1 NodeMCU. Actually we want to display the date to each individual screens in selective manner. I guess on the hardware side while all the connections are the same to both HUB12 connectors, if we keep a separate Data Pin (Pin R) for the second DMD it should do the trick.

For 1 Screen we are using pins as follows: OE - GPIO4 (D2) A - GPIO5 (D1) B - GPIO12 (D6) CLK - GPIO14 (D5) SCK - GPIO15 (D8) R0 - GPIO13 (D7)

Now the issue is that in DMD2.h we could play with only 4 pins i.e. OE,A,B,SCK. How to redefine pin R or declare a new pin R1 (for another Screen) and could address the data to both?

Also, I how to do it if we need to send separate data to both??? In this case i guess more pins might be needed for Pin A,B and SCK.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/freetronics/DMD2/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AE7Hwcxb77eNDJwqATFkcVQJ1LCYnASwks5vJ-MqgaJpZM4agrlq.

Amitbh83 commented 5 years ago

Thanks for the suggestion buddy. But i notice there is a slight delay while doing so. In total they are 16 modules now. Okay can you help me to optimize the library to perform only the text operation. I do not need the other graphical operations.