Hello, I am a student of the University, I have a project where I have to do as an accountant where I must represent two numbers with 4 LED meshes, that is to say a number for two led meshes vertically, researched and obtained data horizontally as letters but I don't know how to show half of one number above and the other below, attached image of what I explain
I don't know how the image shows directly, so I attached the image link
This is the code that I use for the text horizontally, I would be very grateful with your help.
#include <SPI.h> //SPI.h debe incluirse ya que DMD está escrito por SPI (el IDE se queja de lo contrario)
#include <Fuente.h> //Incluye libreria de fuente
#include <TimerOne.h>
#include "SystemFont5x7.h" //Incluye libreria de tiempo 1
#include "Arial_black_16.h"
//DMD display(2,1); //Un panel horizontal
DMD display(2,1); //Descomente si va utilizar dos paneles horizontales
//DMD display(3,1); //Descomente si va utilizar tres paneles horizontales
void ScanDMD()
{
display.scanDisplayBySPI();
}
void setup() {
Timer1.initialize( 3000 );
Timer1.attachInterrupt(ScanDMD);
}
void loop(){
display.selectFont(Arial_Black_16); // selecciona letra pequeña
display.drawString(0,1,"UTMACH",6, GRAPHICS_NORMAL); // escribe una cadena de 4 letras
//display.drawString(7,9,"Demasiado",9, GRAPHICS_NORMAL); // escribe una cadena de 5 letras
delay( 5000 );
}
Paul__B:
You need to explain what your "P10" matrix modules actually are, but I am going to presume they may be one of the MAX7219 8 by 8 array modules.
If this is the case, I would suggest you would want to use the "Parola" library available in the IDE which allows for such arrays.
I have never heard of this "Fuente" library before. If the "P10" matrix modules are a different device again, then I cannot help at all.
I'm sorry I don't realize that I don't put the type of P10 is the P10 (R1) 16x32, I don't know how to show the number like in the image you saw
those are the modules and it is the only thing that I have managed to join two meshes but in a horizontal way, but I need to visualize numbers and that these are subtracted from 1 in 1: 10,9,8,7,6,5,4 .. ... until 0
fuente.h is the dmd.h library I don't know why they had placed it like this, since the library is from a tutorial code that I had previously found.
OK, so this "P10" is some module you have obtained from somewhere-or-other but most of us here would not know anything about it.
Nor would we have any idea what a "dmd.h library" is or where it appears on the 'net. DuckDuckGo does however indicate that this is the support for the Freetronics modules sold (amongst others no doubt) by Jaycar.
So I suppose that is a start. I have so far resisted the Freetronics displays. Perhaps someone here has used them.