arduino / arduino-examples

Arduino IDE bundled examples
Creative Commons Zero v1.0 Universal
90 stars 41 forks source link

01.Basics > Blink does not compile for Arduino Nicla Sense ME #47

Closed gmacario closed 2 years ago

gmacario commented 2 years ago

Hello,

I followed the documentation published on link "Built-in Examples" of https://docs.arduino.cc/hardware/nicla-sense-me and attempted to build example "01.Basics > Blink" for the "Arduino Nicla Sense ME" target board.

However the compilation fails with the following error:

/tmp/.arduinoIDE-unsaved202194-7689-1pylxjm.qfj1/Blink/Blink.ino: In function 'void setup()':
/tmp/.arduinoIDE-unsaved202194-7689-1pylxjm.qfj1/Blink/Blink.ino:28:11: error: 'LED_BUILTIN' was not declared in this scope
   pinMode(LED_BUILTIN, OUTPUT);
           ^~~~~~~~~~~
/tmp/.arduinoIDE-unsaved202194-7689-1pylxjm.qfj1/Blink/Blink.ino: In function 'void loop()':
/tmp/.arduinoIDE-unsaved202194-7689-1pylxjm.qfj1/Blink/Blink.ino:33:16: error: 'LED_BUILTIN' was not declared in this scope
   digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
                ^~~~~~~~~~~
Compilation error: Error: 2 UNKNOWN: exit status 1

Any suggestions?

P.S.: My apologies if this is not the proper GitHub repository to report the issue. Please feel free to move elsewhere. I am quite new with the Nicla and I believe there should be an easy fix, but I could not figure it out myself.

Also, if there is anything I can do to develop a fix I would be more than happy to give it a try and submit a PR. Just need some guidance. Thanks!

per1234 commented 2 years ago

Hi @gmacario. Thanks for your report. The Nicla has its own equivalent to the Blink example. The standard Blink example you find in this repository can't be used with that board.

There are instructions for it here: https://docs.arduino.cc/software/ide-v1/tutorials/getting-started/cores/arduino-mbed_nicla#uploading-a-simple-example

Enjoy using your new Nicla Sense ME!

gmacario commented 2 years ago

Hi @gmacario. Thanks for your report. The Nicla has its own equivalent to the Blink example. The standard Blink example you find in this repository can't be used with that board.

I see... Thank you very much for your hint!