Artnet to DMX
Dependencies: mbed DMX TextLCD mbed-rtos
Art-NET to DMX converter.
Read Art-NET and process the data so it can be send by 3 XLR3 outputs for DMX. With a 4x20 display you can choose some options. For example what universe you would like on what output.
This is a project we make as our final project of our 2nd year of university. We study Electronics-ICT / Embedded ICT.
We chose for this amazing platform (MBED LPC1768) because it has al the interfaces and pins we need.
Screen.h
- Committer:
- Ayrton_L
- Date:
- 2016-05-23
- Revision:
- 36:dba7a0094213
- Parent:
- 35:23656910be93
File content as of revision 36:dba7a0094213:
#include "string.h"
#include "stdint.h"
#include "TextLCD.h"
TextLCD lcd(p25, p24, p23, p22, p21, p26, TextLCD::LCD20x4);
class Screen
{
public:
Screen();
~Screen();
void V_Printit() const;
void V_Clear() const;
void V_SetRij(uint32_t I32_Rij);
void V_SetKolom(uint32_t I32_Kolom);
void V_SetTekst(char * C_Tekst);
private:
uint32_t I32_m_Rij;
uint32_t I32_m_Kolom;
char *C_m_Tekst[];
};
Screen::Screen()
{
this->I32_m_Rij = 0;
this->I32_m_Kolom = 0;
*this->C_m_Tekst = "";
return;
}
Screen::~Screen()
{
delete &I32_m_Rij;
delete &I32_m_Kolom;
delete C_m_Tekst;
return;
}
void Screen::V_SetRij(uint32_t I32_Rij)
{
I32_m_Rij = I32_Rij;
}
void Screen::V_SetKolom(uint32_t I32_Kolom)
{
I32_m_Kolom = I32_Kolom ;
}
void Screen::V_SetTekst(char C_Tekst[])
{
*C_m_Tekst = C_Tekst;
}
void Screen::V_Printit() const
{
lcd.locate(I32_m_Kolom, I32_m_Rij);
lcd.printf(*C_m_Tekst);
}
void Screen::V_Clear() const
{
lcd.cls();
}