Jump to content


led cube kit example code wont compile


  • Please log in to reply
6 replies to this topic

#1 Guest_james_*

Guest_james_*
  • Guests

Posted 08 November 2014 - 03:01 AM

I bought the led shield kit out the other day finaly finished soldering it but cant compile the code im using a arduino uno and keep getting theses errors

 

sketch_nov08a.ino:8:1: error: ‘prog_uchar’ does not name a type
sketch_nov08a.ino: In function ‘void loop()’:
sketch_nov08a.ino:290:29: error: ‘PatternTable’ was not declared in this scope
 

im new to arduino this is my first time making anything for it im using the example code linkspirit provided I just want to see it working for now is there any other code written by anyone else i could try out i would realy apreiciate it



#2 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 10 November 2014 - 04:56 AM

I bought the led shield kit out the other day finaly finished soldering it but cant compile the code im using a arduino uno and keep getting theses errors

 

sketch_nov08a.ino:8:1: error: ‘prog_uchar’ does not name a type
sketch_nov08a.ino: In function ‘void loop()’:
sketch_nov08a.ino:290:29: error: ‘PatternTable’ was not declared in this scope
 

im new to arduino this is my first time making anything for it im using the example code linkspirit provided I just want to see it working for now is there any other code written by anyone else i could try out i would realy apreiciate it

Which code did you use?



#3 Guest_james_*

Guest_james_*
  • Guests

Posted 11 November 2014 - 10:04 PM

i tried the sample code from this page http://linksprite.co...eld_for_Arduino



#4 chain

chain

    Advanced Member

  • Members
  • PipPipPip
  • 756 posts

Posted 12 November 2014 - 05:27 AM

Which version of Arduino IDE did you use?  

 

I tried Arduino 1.0.6, it done compiling.

 

cube4X4X4


#5 Guest_james_*

Guest_james_*
  • Guests

Posted 12 November 2014 - 09:03 AM

im using linux and i have arduino IDE 1:104 im going to upgrade now and see if it will compile thanks for helping me out :)



#6 Guest_james_*

Guest_james_*
  • Guests

Posted 12 November 2014 - 09:49 AM

tried compiling with arduino1.06 and now im getting these errors:

 

sketch_nov12a:8: error: ‘PROGEM’ does not name a type
sketch_nov12a.ino: In function ‘void loop()’:
sketch_nov12a:289: error: ‘PatternTable’ was not declared in this scope

 



#7 Guest_james_*

Guest_james_*
  • Guests

Posted 12 November 2014 - 10:13 AM

i just changed line 8 from: PROGEM prog_uchar PatternTable[] = {

 

to:     PROGMEM const unsigned char PatternTable[] = {

 

it compiled now so im going to try it when i fix the headers some of them came loose when taking it off the board thats my bad soldering ha






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users