Hey guys,
Pretty new to the community and to the whole tinkering and programming thing. The code I have for this project of mine works perfectly while the photon is in AUTOMATIC mode, but it behaves slightly differently when I set the system mode to MANUAL.
Setup
I have 3 buttons and an RGB led setup. When I press the color’s button once, it turns on the corresponding led to 1/10th brightness, and when I press it again in increments brightness up to 10. When I hold it, it turns it off and resets brightness.
The issue:
If it’s not connected to the cloud (set to MANUAL mode), the led’s will be dim while I hold the button, and when I release the button it increments +1 brightness. While the photon is connected to the server (AUTOMATIC mode), it behaves normally and increments the brightness without ever dimming first.
This code also works fine on a standalone Arduino Uno. It’s only a problem while the Photon is offline. Any ideas?
Edit: This is the code http://pastebin.com/iZezUuVu