Society of Robots - Robot Forum

General Misc => Misc => Topic started by: ukesh on June 23, 2009, 09:34:08 AM

Title: Info about programs
Post by: ukesh on June 23, 2009, 09:34:08 AM
hi!

 the programs written for adruino board, can we use them for the AXON mcu and vice versa??
Title: Re: Info about programs
Post by: Razor Concepts on June 23, 2009, 11:44:27 AM
Yes you probably can use Arduino for the Axon if you select the Arduino Mega board setting, the Axon and Arduino Mega use basically the same microcontroller.
Title: Re: Info about programs
Post by: ukesh on June 24, 2009, 08:59:49 AM
thnx man :)
do we need to change the syntax for the functions like initializing a port..etc or is it the same?
Title: Re: Info about programs
Post by: SmAsH on June 24, 2009, 02:27:50 PM
the ports will be different if thats what you mean?
Title: Re: Info about programs
Post by: ukesh on June 25, 2009, 08:33:19 AM
hm ya mate. i refer to the ports. So if the change the ports according the the axon mcu everything is fine rite?
Title: Re: Info about programs
Post by: Admin on June 27, 2009, 04:22:59 PM
The code for the Axon and the Arduino Mega are exactly the same. However the compiler needs to know which you are compiling for, as the .hex file will be different. If you are using Axon code for the Arduino, go into the makefile and change the mcu name from 640 to 1280.
Title: Re: Info about programs
Post by: ukesh on June 28, 2009, 01:20:19 AM
thnx admin!