Hello all:
I am writing a sketch where I need to know the current values of DMX channels to fade to new values.
I see that the DmxMaster.h library:
has a
DmxMaster.write(channel, value);
function where I can write a new value.
But there is no function to read the value back from the internal dmx buffer I need something like:
uint8_t getChannelValue ( uint16_t index )
{
if (index < DMX_SIZE)
return dmxBuffer[index-1];
else
return 0x0;
}
I have been trying to extend the library class to no avail....I am a C programmer not a C++ programmer
Can somebody help me?
Thank you