Go Down

Topic: expected unqualified id before numeric constant (Read 2146 times) previous topic - next topic

Himanshu2525

expected unqualified id before numeric constant


#include <FastLED.h>

#define num_leds 60
#define pin 6
#define brightness 50     
#define sensitivity 5

in last line i'm getting this error

AWOL


lesept

There may be an invisible character in that line, try writing it again (not copy paste it from somewhere)
Otherwise, is it allowed to have a _ in a variable name ?
A force d'essayer on finit par réussir... Donc, plus ça rate, plus on a de chances que ça marche (proverbe Sharduinok).

jackthom41

#3
Sep 11, 2019, 09:32 am Last Edit: Oct 10, 2019, 06:57 pm by jackthom41
There may be an invisible character in that line, try writing it again (not copy paste it from somewhere)
Otherwise, is it allowed to have a _ in a variable name ?
Well that's new for me as well. I have never encountered invisible characters in Arduino IDE.

To the topic creator, share complete code to get proper help.
My collection of Arduino Projects ====> https://www.theengineeringprojects.com/2015/03/arduino-projects.html

lesept

It happens sometimes when you copy / paste a code from another weirly encoded source (such as an Internet website)
A force d'essayer on finit par réussir... Donc, plus ça rate, plus on a de chances que ça marche (proverbe Sharduinok).

Go Up