Please dough your entire sketch below as that looks favor youre lacking a bracket somewhere.

You are watching: C++ expected primary expression before


Okay

jamesmerse.com_WRITE(V2) if (param.asInt()) video game = 2; rainbow(uint8_t); // Rainbow else //////////////////////////////////////////////////////////////////////////////////////////////////////////// void loop() jamesmerse.com.run(); //////////////////////////////////////////////////////////////////////////////////////////////////////////// void rainbow(uint8_t wait) { uint16_t i, j; for(j=0; j
mshey904:

if (param.asInt()) {

There’s no expression in the if statement prior to the closing bracket.It need to look something prefer this:if (param.asInt()==1) {

Pete.


*
PeteKnight:

There’s no expression in the if statement before the closeup of the door bracket.

It have to look something favor this:

if (param.asInt()==1) {

Incorrect, this abbreviation is fine together both room the same and both are TRUE

if (param.asInt()) {

C:UsersVDesktopfolderjamesmerse.com_neopixel_without_brightnessjamesmerse.com_neopixel_without_brightness.ino: In role ‘void jamesmerse.comWidgetWrite2(jamesmerse.comReq&, const jamesmerse.comParam&)’:

jamesmerse.com_neopixel_without_brightness:28: error: expected primary-expression prior to ‘)’ token

rainbow(uint8_t); // Rainbow ^Multiple libraries were discovered for “Adafruit_NeoPixel.h”Used: C:UsersVDocumentsArduinolibrariesAdafruit_NeoPixelNot used: C:Program documents (x86)ArduinolibrariesAdafruit_NeoPixelMultiple libraries were uncovered for “jamesmerse.comSimpleEsp8266.h”Used: C:UsersVDocumentsArduinolibrariesjamesmerse.com-library-0.4.7Not used: C:UsersVDocumentsArduinolibrariesjamesmerse.comNot used: C:Program papers (x86)Arduinolibrariesjamesmerse.comNot used: C:UsersVDocumentsArduinolibrariesjamesmerse.comNot used: C:Program papers (x86)Arduinolibrariesjamesmerse.comNot used: C:UsersVDocumentsArduinolibrariesjamesmerse.comNot used: C:Program documents (x86)Arduinolibrariesjamesmerse.comNot used: C:UsersVDocumentsArduinolibrariesjamesmerse.comNot used: C:Program papers (x86)Arduinolibrariesjamesmerse.comexit standing 1expected primary-expression prior to ‘)’ token


Jamin September 13, 2017, 9:04pm #9

Dude… the sketch.


mshey904 September 14, 2017, 9:30pm #10

I’m therefore sorryIs it true?

#include #include #include #define pin D1#define NUMPIXELS 597int red = 0;int eco-friendly = 0;int blue = 0;int game = 0; Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);///////////////////////////////////////////////////////////////////////////////////////////////////////////void setup() jamesmerse.com.begin("d410a13b55560fbdfb3df5fe2a2ff5", "8", "12345670"); pixels.begin(); pixels.show();////////////////////////////////////////////////////////////////////////////////////////////////////////////jamesmerse.com_WRITE(V1) game = 1; int R = param<0>.asInt(); int G = param<1>.asInt(); int B = param<2>.asInt(); setSome(R, G, B);jamesmerse.com_WRITE(V2) if (param.asInt()==1) video game = 2; rainbow(uint8_t); // Rainbow else ////////////////////////////////////////////////////////////////////////////////////////////////////////////void loop()jamesmerse.com.run();////////////////////////////////////////////////////////////////////////////////////////////////////////////void rainbow(uint8_t wait) { uint16_t i, j; for(j=0; j 0; x--) { if( y > 0 ) y--; if( z > 0 ) z--; for(int ns = 0; i 0; x--) { if( y > 0 ) y--; if( z > 0 ) z--; for(int ns = 87; ns
Yup, simply edited it and formatted the code to do it simpler to read on here. Take it a look at your short article to see how I’ve done it for following time you post your code.

Give me a min come look at her code. I have no concept here to compile therefore I will certainly only have the ability to look v it.


mshey904, you are basically make an LED controller? take a look at my jamesmerse.com Pixel LED Controller. I doesnt use the old and outdated Neopixel library, rather using the FastLED lib.


*
"SmartLED Controller" - ESP+FastLED+jamesmerse.com (Video) jobs made through jamesmerse.com
i made, what ns call, a smart shelf! Hardware: ESP8266 NodeMCU Dev board 10x WS2812 smart LEDs (FastLED Library) jamesmerse.com regional Server 5V 1.2A strength Supply below is a little video ns made just now... Recent code: https://github.com/jaminNZx/ESP8266-WS28xx-jamesmerse.com/
2 Likes
Gunner September 13, 2017, 9:29pm #12
*
Jamin:
Gunner meanwhile im sure will it is in able to help find the lacking bracket.

See more: Instantly Fix Wlan Extensibility Module Has Failed To Start.

Work, work, work… all ns hear is Cinderfella…

*

I actually don’t understand the reason yet… brain too foggy today…

But this is the compiled error

sketch_sep13a:28: error: supposed primary-expression prior to ")" token rainbow(uint8_t); // Rainbow ^exit standing 1expected primary-expression before ")" token
2 Likes
wanek September 13, 2017, 10:42pm #13
mshey904:
jamesmerse.com_WRITE(V2) if (param.asInt()==1) game = 2; rainbow(uint8_t); // Rainbow rather the problem is here. The rainbow function expects a variable, but gots just uint8_t, i beg your pardon is not variable.