Forum Index > Projects > LED Pegboard and Matrix Projects
 Default Code not Working In Arduino Workspace
 |  Printable Version
By: Anonymous: Bretticus () on Monday, April 12 2010 @ 12:28 PM PDT (Read 2041 times)  
Anonymous: Bretticus

I had been playing around with different coding for the Peggy, and decided to go back to the default code with all LED lit on the Peggy. I am having trouble uploading the code to the Peggy, and keep being faced with errors, such as "In function 'int main()':
error: redefinition of 'int main()'" when I verify the code "peggy2.c" and am faced with even more errors with the makefile. I am clearly dong something wrong, and am unsure what exactly I am supposed to with both codes.

Any help would e appreciated.
–Brett





       
   
By: Windell (offline) on Monday, April 12 2010 @ 06:04 PM PDT  
Windell

It sounds like you're trying to run avr-gcc code from within the Arduino environment, or maybe vice versa.

If you have a file called peggy2.c, you should run it with the makefile and avr-gcc. (If you don't have the software toolchain installed already, you can get it through win-avr on Windows or Crosspack on the mac.)

If you want to use the Arduino environment, download the Peggy2 library for Arduino, and the included "minimal" peggy2 demo is very close to the default firmware.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   



 All times are PDT. The time is now 08:32 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?