Skip to content

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

Closed
@gmacario

Description

@gmacario

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions