i'm sorry if this is a stupid question, but i'm new to microcontrollers and programming in general. After getting the stock devboard flying, I wanted to have dynamic retasking capabilities, which I added. My only problem was that this took up an extra input channel, forcing me to manually control throttle (i prefer the autopilot to have rudder) Now, I'm looking at converting the RE0 pin to an input. The only problem I can see is that the RE0 pin is a PWM pin. Is it possible to convert it to an input, even though the other PWM pins are outputs, and if so, how?
Thanks, JP Stewart
You need to be a member of diydrones to add comments!
I have not played with devboard but in generally all GPIO pins can be converted either Input or Output. This is the way it goes in Arduino boards like ArduPilot Mega and other ATMega based chips, PIC based boards so I expect that in Devboard (LPC2138 if i remember correctly, don't kill if i remember wrong...) you can also change it.
Usually this type of definitions are done on initial settings area. Like "void setup()" function in Arduino based boards.
So I suggest to look code a bit more, check general manuals for your MCU. Look more gentlenav documentation.
Replies
Usually this type of definitions are done on initial settings area. Like "void setup()" function in Arduino based boards.
So I suggest to look code a bit more, check general manuals for your MCU. Look more gentlenav documentation.
--jp