kt88seamp
12-26-2009, 10:40 AM
In C lets say you want to make pin 8 an output and set it high·and all the other pins inputs. How·would you do it with the propeller?·
With the MSP430 microcontrollers·you simply would say something like:
P8DIR = 0x01 // Make pin 8 an output.
P8OUT = 0x01 // Make pin 8 high.
The imagecraft compiler does not work that way. I don't think you can work with individual bits like that. How do you with the propeller?
With the MSP430 microcontrollers·you simply would say something like:
P8DIR = 0x01 // Make pin 8 an output.
P8OUT = 0x01 // Make pin 8 high.
The imagecraft compiler does not work that way. I don't think you can work with individual bits like that. How do you with the propeller?