I’m using photon. I started a simple program with a LED. It’s supposed to turn on and off every second. The first time I compiled (flashed it) into the device. It compiles without errors at all. It works. It successfully does the operations on the LED. But I tried changing the time interval to 2 seconds. I save the file, compile it again, the device’s led (mode) changes (Magenta meaning that It’s updating, then goes to blinking cyan and finally breathing cyan probably meaning that It’s online and ready). But the LED diode blinks every second instead of 2. Which means that it didn’t actually insert the code at all. For compiling, I first go “Upload in cloud and show errors if any” or something (The cloud icon with a check mark), then after waiting for a few seconds to pass I click on the bolt icon “Upload in cloud and upload code using cloud”.
This is the code if It’s necessary. Got it from a site.
#define led1 D0
void setup()
{
pinMode(led1, OUTPUT);
}
void loop()
{
digitalWrite(led1, HIGH);
delay(2000);
digitalWrite(led1, LOW);
delay(2000);
}
Actually I’m lying. I tried it a couple of times before and worked. But now trying the same method doesn’t work. Before I tried it dozens of times and still worked. (After changing and saving the code in the IDE I press the RESET button on the device, wait for it to go breathing cyan, then do “Upload in cloud and show errors if any” then “Upload in cloud and upload code using cloud”. I thought that was all. But after a while I turned it on again and tried to change the time again and upload it in the same method. But this time It didn’t change. I’m new to this and I don’t really understand the particle dev at all. If you think that I always did it using this obviously dumb method. Wrong. I tried clicking only on the bolt icon (I got this from another thread I believe).