Also if I use PA1 or PA2 or PA3 I get the following compile error:
blink_an_led1.cpp:31:12: error: ‘PA3’ was not declared in this scope
make[1]: *** […/build/target/user/platform-8blink_an_led1.o] Error 1
make: *** [user] Error 2
Does not make any difference, because only pins that compile appear to be A0-A7 and D0-D7 and P1S1.
The other combinations that I have tried : PA0., PA1, PA2, PA3 and PB0 have all failed to compile. So I am not sure if this is an environment setup issue or ??
Edit: Just tried MICRO_GPIO_1 and SPARE1 , also failed
When connected to the cloud, you should be breathing CYAN.
Flashing OTA will blink MAGENTA.
Connecting to Wi-Fi will blink GREEN.
DFU mode will blink YELLOW.
Maybe you have your RGB led hooked up wrong? A quick test code will help, you should see RED, GREEN, BLUE after it connects to the cloud, then it should go back to breathing CYAN.
Just wanted to bump this thread and ask if there is an official way to access the spare P1S0-P1S5 pins on the P1? In the latest web IDE, I can’t get the following code to compile:
I would make sure you are targeting a P1 in the web IDE since the define for this pin is guarded by an if statement checking that the platform ID is equal to 8.