My OAKs are showing up on the dashboard, so now I should be able to flash code to them. After several unsuccessful attempts using Arduino IDE, I try with the Particle build site
1. I power up an OAK
2. I run OAK.EXE and select the OAK I powered up from the list
3. I go to the Particle dashboard to verify that the OAK I powered up and selected using OAK.EXE has a flashing blue icon next to it.
4. I go to the build site and call up a simple blink example (see below)
5. The code fails to verify, even though it verifies just fine in the Arduino IDE. The message is "Error: Could not compile. Please review your code."
Does anyone see a problem with this sample code? If I ignore the verification error and try to flash it anyways, it is always unsuccessful (which I expect I guess). BTW, during flash, the message "Flashing code...if it does not flash magenta, verify your code and try again." shows at the bottom. What exactly should we see flash?
Also, I have tried with most of my 9 OAKs and none will accept uploads.
int i = 0;
void setup() {
pinMode(1, OUTPUT); //LED on Oak
}
//
void loop() {
for (int thisPin = 1; thisPin < 6; thisPin++) {
digitalWrite(1, HIGH);
delay(1000);
digitalWrite(1, LOW);
delay(1000);
}
i++;
delay(5000);
I even simplified it to the following and it still won't verify.
void setup() {
pinMode(1, OUTPUT); //LED on Oak
}
//
void loop() {
digitalWrite(1, HIGH);
delay(1000);
digitalWrite(1, LOW);
delay(5000);
}