Neopixel Tutorial

 
#1

Trying to work through the neopixel tutorial. Is this working for others? I can't get the Arduino sketch to compile with new and old versions of IDE.

Is this working for others or is the problem on my end.

Thanks

#2

Do you have a link to the tutorial that you're referring to? Who made the tutorial? Where is it? Etc...

#3

@DJ I think it might be this tutorial that Perry is referring to...
Neopixel Ring with ezb4

#4

This may be a silly question, but did you read the description of the tutorial which bob made? He has listed requirements. Does your environment meet those requirements?

Also, you didn't include an error message that you're receiving.

I'm sure bob may chime in if he's around. But I'd start by reading the description and following the requirements that bob documented in his tutorial.

#5

Yes that is the correct tutorial and I did read the description. I also have experience using the neopixel ring with MRL with a satellite arduino.

I am going to work on it a bit tonight and I will post more info with the specific errors I am receiving.

Excited to get this going because once it is that means that in a little over 1 month after receiving my EZB with no knowledge of it and being an amateur coder I will have recreated all of the MRL functionality I had after a year of working with that. And it actually works now.

#6

That's amazing news - you're a poster child for ezrobot! Let's keep this momentum going

As for the errors, share them and we'll get you running asap

#7

That's awesome @Perry... Too bad we can't get Gael himself on board with ez robot... Think how much further the inMoov project could advance over MRL...

#8

@Richard R
Build it and they will come.

#9

OK, still no luck for me. I downloaded the recommended Arduino version 1.6.3.
Wen I try to compile the sketch here is what I get.

Code:


Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch_jun14a.ino:33:1: error: expected class-name before '{' token

sketch_jun14a.ino:224:1: error: expected '}' at end of input

sketch_jun14a.ino: In constructor 'NeoPatterns::NeoPatterns(uint16_t, uint8_t, uint8_t, void (*)())':

sketch_jun14a.ino:51:2: error: class 'NeoPatterns' does not have any field named 'Adafruit_NeoPixel'

sketch_jun14a.ino: In member function 'void NeoPatterns::Update()':

sketch_jun14a.ino:65:20: error: 'RainbowCycleUpdate' was not declared in this scope

sketch_jun14a.ino:68:20: error: 'TheaterChaseUpdate' was not declared in this scope

sketch_jun14a.ino:71:17: error: 'ColorWipeUpdate' was not declared in this scope

sketch_jun14a.ino:74:15: error: 'ScannerUpdate' was not declared in this scope

sketch_jun14a.ino:77:12: error: 'FadeUpdate' was not declared in this scope

sketch_jun14a.ino: In member function 'void NeoPatterns::Increment()':

sketch_jun14a.ino:103:22: error: 'color' was not declared in this scope

sketch_jun14a.ino:104:8: error: 'dimColor' was not declared in this scope

sketch_jun14a.ino:104:8: error: return-statement with a value, in function returning 'void' [-fpermissive]

sketch_jun14a.ino:109:1: error: a function-definition is not allowed here before '{' token

sketch_jun14a.ino:115:1: error: a function-definition is not allowed here before '{' token

sketch_jun14a.ino:121:1: error: a function-definition is not allowed here before '{' token

sketch_jun14a.ino:128:1: error: a function-definition is not allowed here before '{' token

sketch_jun14a.ino:224:1: error: expected '}' at end of input

sketch_jun14a.ino: At global scope:

sketch_jun14a.ino:224:1: error: expected unqualified-id at end of input

Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.



Any ideas?

#10

The tutorial's script has errors maybe a bad copy & paste.

The tutorial is related to this thread:
http://www.ez-robot.com/Community/Forum/posts.aspx?threadId=6767

Can you try the code from post #67 (RobertL184)

And then there is a change/add-on post #68

What kind of arduino board you have ?