![]() |
Fraise
2.1
FRAmework for Interfacing Software and Electronics
|
Example :
config.h :
main.c :
Settings to put in config.h | |
You must define the serial port : #define DMX_UART_NUM [1/2]
#define DMX_UART_PIN [pin]
| |
#define | DMX_NBCHAN |
DMX_NBCHAN default is 128, maybe overloaded up to 256 (TODO:512 but memory issue at compile time when tested). | |
Initialization | |
void | DMXInit () |
Init the module in setup() | |
Main loop functions | |
void | DMXService () |
Module service routine, to be called by the main loop(). | |
Utilities | |
unsigned int | DMXframeCount |
void | DMXSet (unsigned int channel, unsigned char value) |
Set value of a DMX channel. More... | |
void DMXSet | ( | unsigned int | channel, |
unsigned char | value | ||
) |
Set value of a DMX channel.
channel | DMX channel (starting from 1) |
value | New value for this channel (0-255) |