Change Roll Pin from D4 to D13

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
speedy
Posts: 1
Joined: Mon Jul 09, 2012 8:03 pm

Change Roll Pin from D4 to D13

Post by speedy »

Hello,

I want to build a Y4 and have a ProMini Board. I use the MultiWii release candidate 2.1 r964

But the Pin 4 for Roll doesn't works. So I have to change it to another pin. I think I want to use D13.(Pin for the Status LED)

What I have to do to activate this Pin for Roll ?

I already made the following changes in the def.h:

Code: Select all

  #define ROLLPIN                    13


and I comment the values for the Status LED out (so that I don't have to remove all occurences of this defines)

Code: Select all

    #define LEDPIN_PINMODE;//             pinMode (13, OUTPUT);
    #define LEDPIN_TOGGLE;//              PINB |= 1<<5;     //switch LEDPIN state (digital PIN 13)
    #define LEDPIN_OFF;//                 PORTB &= ~(1<<5);
    #define LEDPIN_ON;//                  PORTB |= (1<<5);


I saw in the RX.ino in the configureReceiver method, if I define the RXAUXPIN12 (so also the RXAUXPIN), than all Pin's up to D13 are activated, but this isn't my problem.


Regards
speedy

Post Reply