SYSTEM_MODE(MANUAL) on Photon Help!

Hey everyone,

So I am simply trying to run the Photon without cloud connectivity so that my code will run with no dependency on cloud connection. I have updated the Photon to 0.4.5 and updated CLI utility. Here is the code I’m trying to run:

#include "application.h"
SYSTEM_MODE(MANUAL);

void setup() {

}

void loop() {

      RGB.control(true);
      RGB.color(RGB_COLOR_RED);
      delay(500);
      RGB.color(RGB_COLOR_BLUE);
      delay(500);
}

I never take control of the LED, it just blinks green. What am I doing wrong here?

Thanks!

I’d alter two things in your code.
First I would put RGB.control(true); into setup() and
Second I prefer having full control over my color codes, so I’d use RGB.color(r, g, b); values.

But your code would still work as it is. Are you sure your Photon took the firmware you flashed?
If you had your Photon in MANUAL mode before, you’d need to put it into Safe Mode to allow for a new OTA flashing.

1 Like

@ScruffR, Thanks! I should have mentioned that I was compiling in particleDev and flashing the device in DFU mode. All looked well as far as compiling and flashing the device. The issue actually turned out to be an ancient version of particleDev. I updated to the 1.0.15 version and all is well. I swear I usually check things like that before posting!

1 Like