majicdesigns / md_maxpanel Goto Github PK
View Code? Open in Web Editor NEWArduino library to allow a panel of MAX72xx LED matrix modules to be used as a pixel display device.
License: GNU Lesser General Public License v2.1
Arduino library to allow a panel of MAX72xx LED matrix modules to be used as a pixel display device.
License: GNU Lesser General Public License v2.1
Received through Arduino++ blog site
I had a small Issue using your Lib with a Wemos D1 Mini.
I had to fix rhe following points to get rid of the compiler error:
MD_MAXPanel.h // Jul 2018 version 1.1.1
Line 235, remove "inline" before getXMax(void);
Line 244, remove "inline" before getYMax(void);
MD_MAXPanel.cpp // Jul 2018 version 1.1.1
Change any "...bool state = true )" to "... bool state /* = true */ )"
While compiling a project in Arduino IDE 2.0.3 for an Esp 32 I got this error:
MD_MAXPanel.cpp:54:25: error: expected constructor, destructor, or type conversion before '(' token MD_MAXPanel::MD_MAXPanel(MD_MAX72XXX::moduleType_t mod, SPIClass &spi, uint8_t csPin, uint8_t xDevices, uint8_t yDevices)
Maybe the problem is just a typo in type MD_MAX72XXX: shouldn't that be MD_MAX72XX (just 2 X, not 3)?
Issue raised on Arduino++ blog
Can You change the third parameter of drawText from "char *psz" to "const char *psz".
So it will be easier to pass strings...
Before submitting this issue
[x] Have you tried using the latest version of the library?
[x] Have you checked this has not already been submitted and/or resolved?
When using the latest version, there will be a compile error due to a typo (there are three Xs instead of two).
See here
Line 214 in fc063f1
**Library Version: 1.3.1
All the files using #include <MD_MAXPanel.h> will run into that error.
On recent versions of the Arduino IDE this library fails to build because of redeclaration of the default parameters from the function prototype in the implementation in MD_MAXPanel.cpp
.
The solution is pretty simple, just change all of the bool state = true
to bool state
in MD_MAXPanel.cpp
(but leave them alone in the header).
Hello. I wanted to use the TETRIS Demo game that is built into the MD_MAXPanel library. But I wanted to use it vertically. (as my MAX72xx is a 4 in 1) I sat the values for X devices and Y devices and it wasn't working as supposed. I tried to use the ROT_90;
that is stated in the MD_MAXPanel.h file but I had no luck left. So... If anyone can help me please let me know.
All answers appreciated.
EDIT: I figured out how to do it but it just rotates all screens. I managed to get it better as my screen is FC16 so I tried ICSTATION with ROT_90 and it worked! Partially. The part of the screen that would be on the bottom is on the top (???) so... I'm screwed.
Sorry if my English isn't very good. English is my secondary language.
I don't understand the purpose of state=false in drawText - in my small world there is no need for black chars on black backround ;-)
But I "need" (want have) inverted text.
So I think it can be a good idea to change the ... ? state : false in draw text to ... ? state : !state to get inverted text.
PS What about a state paramter in the clear functions? (or a drawFilledRect-Function)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.