Hi guys,I would like to write a text on a 64x64 RGB panel with an Arduino ATmega328p. How do I code something that can appear on my panel? I'm new on Arduino.
Your post was MOVED to its current location as it is more suitable
I think that you may struggle using a Nano for this
I am using an ESP32 and the ESP32-HUB75-MatrixPanel-I2S-DMA library which makes it very easy
okay but my Boss want me to try to do something with the nano. He already buy a Arduino Mega2560. but can i do something with the nano? Even if it's only one letter on the panel, this will show him that I search how to use it. THX for your help
this is what I already do but my screen isn't working with his code...
What do you mean by "not working" ?
How is your LED matrix powered ?
What does that mean ?
What changes to the original code or library did you have to make because of your panel size being different to the original ?
I don't know. I'm lost and don't know what to do, how to code it...
Start by posting your full sketch here, using code tags when you do
Have yo changed this line of code to match your panel size ?
Panel panel(32,64, false);
i'll do it
the first "panel" in your code is blue but in mine it isn't
Ignore the colours, they don't matter
but when i want to compil, it get an error because of this
Post your complete sketch and the full error message using code tags for both
Well then, you have better read the instructions and post both your actual code and the error message. Post the error message the same way as the code.
#include "Panel.h"
//create an instance of the panel
Panel panel (64,64, false);
char out[81];
uint8_t length = 0;
uint8_t oldlength;
uint8_t fcolor = 3;
uint8_t bgcolor = 2;
char t;
//String test = "23.576%";
// I M P O R T A N T
//in panel.h, you should comment out line Nr. 41 for this to work better/more reliable
void setup() {
//panel.createBufferBG(bgcolor);
panel.createBufferBG(panel.BLACK);//background black
//panel.createBufferBG(26);//background red
panel.drawBigChar(0,0,'A',panel.RED,1);
panel.drawBigChar(4,0,'a',panel.GREEN,1);
panel.drawBigChar(8,0,'B',panel.BLUE,1);
panel.drawBigChar(12,0,'b',panel.WHITE,1);
panel.drawBigChar(16,0,'C',panel.PURPLE,1);
panel.drawBigChar(20,0,'c',panel.YELLOW,1);
panel.drawBigChar(24,0,'D',panel.CYAN,1);
panel.drawBigChar(28,0,'d',8,1);
panel.drawBigChar(32,0,'E',9,1);
panel.drawBigChar(36,0,'e',10,1);
panel.drawBigChar(40,0,'F',11,1);
panel.drawBigChar(44,0,'f',12,1);
panel.drawBigChar(48,0,'G',13,1);
panel.drawBigChar(52,0,'g',14,1);
panel.drawBigChar(56,0,'H',15,1);
panel.drawBigChar(60,0,'h',16,1);
panel.drawBigChar(0,6,'I',17,2);
panel.drawBigChar(8,6,'i',18,2);
panel.drawBigChar(16,6,'J',19,2);
panel.drawBigChar(24,6,'j',20,2);
panel.drawBigChar(32,6,'K',21,2);
panel.drawBigChar(40,6,'k',22,2);
panel.drawBigChar(48,6,'L',23,2);
panel.drawBigChar(56,6,'l',24,2);
panel.drawBigChar(0,17,'M',25,3);
panel.drawBigChar(16,17,'m',0,3);
panel.drawBigChar(32,17,'N',1,3);
panel.drawBigChar(48,17,'n',2,3);
/*
panel.drawBigChar(0,7,'2',0,3);
panel.drawBigChar(10,7,'3',0,3);
panel.drawBigChar(17,7,'.',0,3);
panel.drawBigChar(24,7,'5',0,3);
panel.drawBigChar(34,7,'7',2,3);
panel.drawBigChar(44,7,'6',2,3);
panel.drawBigChar(54,7,'%',2,3);
panel.drawBigChar(0,7,test[0],0,3);
panel.drawBigChar(10,7,test[1],0,3);
panel.drawBigChar(17,7,test[2],0,3);
panel.drawBigChar(24,7,test[3],0,3);
panel.drawBigChar(34,7,test[4],2,3);
panel.drawBigChar(44,7,test[5],2,3);
panel.drawBigChar(54,7,test[6],2,3);
*/
}
void loop() {
//String test = "23.576%";
//panel.drawBigChar(5,10,'2',0,3);
panel.displayBuffer(); //makes the buffer visible and the leds all blinky blinky
}
Big-font-example:4:26: error: no matching function for call to 'Panel::Panel(int, int, bool)'
Panel panel (64,64, false);
^
In file included from C:\Users\gabri\AppData\Local\Temp\arduino_modified_sketch_967295\big-font-example.ino:1:0:
C:\Users\gabri\Documents\Arduino\libraries\HUB75nano-master\src/Panel.h:57:9: note: candidate: Panel::Panel(uint8_t, uint8_t)
Panel(uint8_t height, uint8_t width);
^~~~~
C:\Users\gabri\Documents\Arduino\libraries\HUB75nano-master\src/Panel.h:57:9: note: candidate expects 2 arguments, 3 provided
C:\Users\gabri\Documents\Arduino\libraries\HUB75nano-master\src/Panel.h:52:7: note: candidate: constexpr Panel::Panel(const Panel&)
class Panel{
^~~~~
C:\Users\gabri\Documents\Arduino\libraries\HUB75nano-master\src/Panel.h:52:7: note: candidate expects 1 argument, 3 provided
C:\Users\gabri\Documents\Arduino\libraries\HUB75nano-master\src/Panel.h:52:7: note: candidate: constexpr Panel::Panel(Panel&&)
C:\Users\gabri\Documents\Arduino\libraries\HUB75nano-master\src/Panel.h:52:7: note: candidate expects 1 argument, 3 provided
exit status 1
no matching function for call to 'Panel::Panel(int, int, bool)'
how can I just turn on a line ? just one or two
Please post the Panel.h file from your PC
