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:
if want use pin d8, should change isr(int8_vect) ?
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 */
#define rcauxpin8
i'm under impression pin d8 on board pin 0
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 */
#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
Post a Comment