Removed the lastbinary and lastbrightness because the weren't being used.
Added isReceivedValue to denote whether we got this from serial (RF) or if it was set by the ESP. This keeps us from setting a value if it was already set by RF.
Changed int to float for brightness so when dividing it we also get a float.
Removed the lastbinary and lastbrightness because the weren't being used.
Added isReceivedValue to denote whether we got this from serial (RF) or if it was set by the ESP. This keeps us from setting a value if it was already set by RF.
Changed int to float for brightness so when dividing it we also get a float.
Changed division and multiplication to be by 100