Thank you!
Changing the code to this has worked:
int DeviceDriver_SetRcolour (Rval1)
{
{
#ifdef _ApplicationDeviceClass_
{
{
softPwmCreate(RED_PIN, Rval1, 100);
}
The only issue i am having now is the value doesn't update with the GUI widget. It receives the first signal then nothing. I have a ValueDisplay on the gui representing Rval1 so i know the value is changing correctly, but the device isn't.
For some context, its a simple LED RGB strip I am learning to control with the GUI. I thought it would be easier to learn by sending the data as one property for each R, G and B. When i first turn it on, the lights represent the initial colour I select, however it wont change after this. does the OnSet method update whenever the current Rval1 is changed or do I need further methods to update the Rval1 every time the value changes.
Thank you for all your help!