Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text displayed in the wrong way #1

Open
S-Gr4y opened this issue Aug 20, 2017 · 11 comments
Open

Text displayed in the wrong way #1

S-Gr4y opened this issue Aug 20, 2017 · 11 comments

Comments

@S-Gr4y
Copy link

S-Gr4y commented Aug 20, 2017

Hi,

First of all thank you for library & your tutorial ^^

I've followed your instructions on http://www.iotsharing.com/2017/05/how-to-use-arduino-esp32-to-display-spi-led-matrix.html and the text was rotated 90°.

Effectively, my display is working as a column rather than a line with a little bit of text shown on each line (I have four modules linked together).

This is what it looks like with scrolling enable :
AZERTY
AZERTY
AZERTY
AZERTY

instead of : AZERTY

Is there any settings to rotate the display ?

@nhatuan84
Copy link
Owner

could you please send me the spec of your led matrix?

@S-Gr4y
Copy link
Author

S-Gr4y commented Aug 23, 2017

Unfortunately, the only thing I have is the seller link : https://fr.aliexpress.com/item/MAX7219-Dot-Matrix-Module-For-Arduino-Microcontroller-4-In-One-Display-with-5P-Line/32616345113.html?spm=a2g0w.10010108.1000016.1.3f80957d8yMji7&isOrigTitle=true

I don't know if this information is useful but using an Arduino uno and the MAX library, I don't have this issue.

@nhatuan84
Copy link
Owner

i looked the above link, yours is similar to my led matrix. could you please give me the MAX library link.

@Fail-0815
Copy link

I had a similar issue. In some modules (FC-16 for example) the leds are wired differently to the MAX7219. This results to the digits being mapped to the rows of the display instead of the columns. Some librarys seem to adapt or at least have some #define for that case.

@nhatuan84
Copy link
Owner

do you have that library. actually this library is for max7219

@LRagji
Copy link

LRagji commented Jan 26, 2018

@FxPape @nhatuan84 any workaround for this apart from buying another display..?

@sschueller
Copy link

I have the same issue with the one I got.

20180327_210850

Pin one of the matrix goes to the top header on the right .

@gdampf
Copy link

gdampf commented Apr 2, 2018

The display is fine, just the library is too simple.
I used the LedControl by Eberhard Fahle with an Arduino Uno, which works perfectly.
I didn't test to adapt to ESP32 actually, but this library here (LedMatrix) is assuming, you arrange the displays 90° turned left - which is a pity, because all this odd wiring necessary. So better to use another library.

@gdampf
Copy link

gdampf commented Apr 3, 2018

BTW - I found a workaround:
You have to adapt the commit-method in LedMatrix.cpp! Use this one - works perfect:
void LedMatrix::commit() { for (byte dev = 0; dev < myNumberOfDevices; dev++) { byte m[8] = {0}; for (byte col = 0; col < 8; col++) { byte b = cols[dev*8+col]; for (byte bit = 0; bit < 8; bit++) { if (b & 1) m[bit] |= (128>>col); b >>= 1; } } for (byte col = 0; col < 8; col++) sendByte(dev, col + 1, m[col]); } }

@gdampf
Copy link

gdampf commented Apr 3, 2018

I made a fork with this patch at https://github.com/gdampf/esp32-led-matrix

@OURLEDS
Copy link

OURLEDS commented Jan 31, 2019

The problem here is that is the following things to have in consideration:
Python or arduino

For Arduino users and MAX72xx library or MD parole here are the solutions taht works with the newest hadware (leds modules):

Just open the example, and if it is not working or mirrored ... just change the headers for one of this:
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define HARDWARE_TYPE MD_MAX72XX::GENERIC_HW
#define HARDWARE_TYPE MD_MAX72XX::ICSTATION_HW

You can just change it and compile with one of those lines each time ... or just take unplug one 8x8 module and check the name on the board below the chip .... if it says FC16 is FC16 ... if it is 1088AS like mine it should work with the ICSTATION

If youa re using python no f.ck idea.
But for arduino don't get confused with downlaoding files and changingin the src files.h
That is a VERY VERY VERY OUTDATED solution ...

THIS SOLUTION WORKS FOR DEVICES BOUGHTS in 2019 and using arduino 1.8.8 with the MAX72xx library of Oct 2018 version 3.0.2

If arduino is not 1.8.8 you bought the device long time ago or it is not a max7219 or if the max72xx library is not version 3.0.2 ... it probably won't work this simple change of headers ...

All my day lost getting this work ... the job here is done ... Now I can fly away...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants