Newbie C programmer wanna be
w4fej
Posts: 264
DISCLAIMER: I know squat about "C" but am excited about learning the language.
I have the Simple IDE installed and libs updated. The default example runs just fine. ("Hello") I loaded up the "joystick.c" example and have it wired up to a MCP3202. It doesn't work. The same hookup works fine in Spin. I know the example was written with the Prop Activity board, I'm using the Prop Pro Dev board. The activity board uses a different ADC chip but appears to work just like the the 3202.(SPI etc) If I hook up the 3202 to the pins with the same function names (ie: CS, SCL etc) shouldn't the program work or is there a difference between the two ADC chips that's keeping it from working??
I get no errors when I compile the example.
Any help would be appreciated.
Mike B.
I have the Simple IDE installed and libs updated. The default example runs just fine. ("Hello") I loaded up the "joystick.c" example and have it wired up to a MCP3202. It doesn't work. The same hookup works fine in Spin. I know the example was written with the Prop Activity board, I'm using the Prop Pro Dev board. The activity board uses a different ADC chip but appears to work just like the the 3202.(SPI etc) If I hook up the 3202 to the pins with the same function names (ie: CS, SCL etc) shouldn't the program work or is there a difference between the two ADC chips that's keeping it from working??
I get no errors when I compile the example.
Any help would be appreciated.
Mike B.
Comments
OK, thanks again Jazzed. Looks like I have a lot to learn.... Is there an "exchange" for includes much like the OBEX for Spin??
I lloked in vain trying to figure out just "where" the bit twiddling was taking place so I could build a 3202 function but will do some more digging...
Mike B.