Porting Code from one board to another


i'm green grass, i'm trying learn how program.  i want fly tricopter using mulitwii firmware run on atmega 328.  there specific board sold vendor, have different board laidout little differently.  my board arduimu sold 3drobotics.  this board labeled pins d8, a0, a1, a2, a3 available.  the multiwii code setup read ppm on pin labeled d2, have d8 available reading rx.  

this line in rx sketch ppm started:

/**************************************************************************************/
/***************                ppm sum rx pin reading             ********************/
/**************************************************************************************/
// attachinterrupt fix promicro
#if defined(promicro) && defined(serial_sum_ppm)
  isr(int6_vect){rxint();}
#endif


if want use pin d8, should change isr(int8_vect) ?




well, cant express problem.  let me try 1 more time. 

this line in def.h:

#define ppm_pin_interrupt          attachinterrupt(0, rxint, rising); //pin 0

i able rx single channel turning off ppm , uncommenting line:

/*********************************    aux 2 pin     ***********************************/
      /* possibility use pin8 or pin12 aux2 rc input (only one, not both)
         it deactivates in case power pin (pin 12) or buzzer pin (pin 8) */
      #define rcauxpin8

i'm under impression pin d8 on board pin 0

 


Arduino Forum > Using Arduino > Programming Questions > Porting Code from one board to another


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62