CamelCaseName / HUB75nano

This Arduino library adds the basic functionality needed to drive a HUB 75 protocol LED Panel up to 64x32 Pixels RGB.
GNU General Public License v3.0
37 stars 6 forks source link

Letters repeating #4

Closed aherrera1997 closed 3 years ago

aherrera1997 commented 3 years ago

Hello, I've been testing your code and I'm having an issue. I uploaded your library to the Arduino Nano and with this script

`

include "Panel.h"

//create an instance of the panel Panel panel(32, 64); char out[81]; uint8_t length = 0; uint8_t oldlength; uint8_t fcolor = 3; uint8_t bgcolor = 2; char t;

void setup() { panel.createBufferBG(panel.BLACK);//background

}

void loop() {

panel.drawBigChar(3,8,'A',panel.RED,3); panel.drawBigChar(14,8,'|',panel.GREEN,1); panel.displayBuffer(); //makes the buffer visible and the leds all blinky blinky }`

I get this output

WhatsApp Image 2021-01-14 at 2 10 27 PM

I should get a red 'A' and a green '|'. What might be the problem?

CamelCaseName commented 3 years ago

hi, i tried out your code with no modifications, and it works flawlessly on my panel. image

I suggest you take a look at your wiring, because the duplication looks like maybe a address line is swapped or so. The buffer size has no effect on the output, i checked with both big and small buffer. i'd like to help you more, but i sadly cannot reproduce this problem.

if someone can reproduce this effect, please message me or create a new issue/reply to this one.

i would suggest you to use another library, but as far as i am aware, mine is the only one which works on a nano.

have fun with your panel. kind regards,

Leonhard

aherrera1997 commented 3 years ago

Which arduino are you using for this?

CamelCaseName commented 3 years ago

i am using a cheap arduino nano clone with the original atmel ATmega328p precooked with the "old bootloader"^. Pinout and board layout is the exact same, so shouldnt be a difference there. i cannot find the name of my exact clone.

aherrera1997 commented 3 years ago

It seems we are using the same copy. And the panel?

CamelCaseName commented 3 years ago

i bought some cheap panel on ebay, using the standard hub75 protocol, so no weird row selection with mux oder identifier sequence. Screenshot_20210120-185014

so yeah, i am also kind of out of ideas

aherrera1997 commented 3 years ago

We have different panels it seems, maybe thats the problem. Mine is P5(2727).

CamelCaseName commented 3 years ago

well the p is just the pitch (distance between middle of leds), so no factor. but iirc the 2121 and 2727 are different types of led, maybe thats the problem

aherrera1997 commented 3 years ago

Have you seen something about some panels having 2 GND and a E input? I read about it and now I think it could be the issue

CamelCaseName commented 3 years ago

well the E pin is for the 5th bit in the row selection to make use of 64 rows, but I have no experience so far with these Panels.

aherrera1997 commented 3 years ago

I changed the panel for a P4 2121 and now it's working correctly, thanks for the support. I have another question now, is there an easy way to change the design of the numbers?

CamelCaseName commented 3 years ago

im glad you got it working now. changing the font is not a trivial task, i got this super tiny font somewhere from the internet, together with an unwrapping function. if you go looking for tiny fonts, like maybe 8 by 4 or 10 by 5 pixels, i may implement them if the license allows for this kind of use. or you can figure out how the unwrapping part works, and compile your own font to this. i dont really have the time right now to do this myself.

i hope i could help you with this info

regards, leonhard