Alternating Data Byte Automatically
Posted: Thu 25. Apr 2024, 07:13
My OnAfterPublish contains:
However, I don't want to push the Space Bar to send the data to the hardware. Is there a function call the script can make to automatically send the new data to the hardware?
End result is that data[7] alternates between 0xBD and 0xBC automatically.
Code: Select all
if (data[7] == 0xBC)
{
data[7] = 0xBD;
}
else {
data[7] = 0xBC;
}
return true;
End result is that data[7] alternates between 0xBD and 0xBC automatically.