go_away

Author Topic: Info about programs  (Read 1275 times)

0 Members and 1 Guest are viewing this topic.

Offline ukeshTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 0
Info about programs
« 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??

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: Info about programs
« Reply #1 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.

Offline ukeshTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 0
Re: Info about programs
« Reply #2 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?

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Info about programs
« Reply #3 on: June 24, 2009, 02:27:50 PM »
the ports will be different if thats what you mean?
Howdy

Offline ukeshTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 0
Re: Info about programs
« Reply #4 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?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,657
  • Helpful? 169
    • Society of Robots
Re: Info about programs
« Reply #5 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.

Offline ukeshTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 0
Re: Info about programs
« Reply #6 on: June 28, 2009, 01:20:19 AM »
thnx admin!

 


Get Your Ad Here

data_list