I am trying to make the move to Workbench from the IDE and after many struggles I have made significant progress. I think I have successfully complied and flashed the code. When nothing happened (i.e. no LEDs lite up) I went back to the Web IDE and successfully compiled and flashed the same code on the Web.
Nothing happened with either attempt. I guess the good news is that my problem is NOT with workbench.
I thought perhaps the OS version was wrong, but that seems to be fine - the latest 1.4.4 per the Web IDE.
The board is flashing green and seems to go thru all the proper led states during the flash.
I have included the simple code below for info, but I don’t think that is the problem. I would expect at a minimum that the internal LED would blink.
Could it be that I somehow damaged the Photon itself. I have another one on the same breadboard running a more complicated program that seems to be working fine. I am reluctant to fool with this one in case I did something bad with the other one that damaged it. I have two more photons with headers that I bought from Particle that should be arriving any day now. When they come I can try substituting hardware.
But in the mean time, can you give me some guidance about how to best checkout my wayward Photon’s health? If I can get past this hurdle, I may have conquered Workbench and can make the switch from the Web IDE.
Thanks
Chris .
int LedPin7=D7;
int greenLed=D6;
// setup() runs once, when the device is first turned on.
void setup() {
PinMode(LedPin7)=OUTPUT;
PinMode(greenLed)=OUTPUT;
Serial.begin(9600);
}
void loop() {
// The core of your code will likely live here.
digitalWrite(LedPin7,HIGH);
digitalWrite(greenLed,HIGH);
Serial.println("Green is On");
delay(1000);
digitalWrite(LedPin7,LOW);
digitalWrite(greenLed,LOW);
Serial.println("Green is Off");
delay(1000);
}