Trying to port some code to C - Newbie :(
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 5
- Joined: Sat Feb 14, 2009 8:32 am
Trying to port some code to C - Newbie :(
Hi, I'm trying to port subsys.spin to C for my program, I'v managed to get the LEDs and Button functions ported over but cant manage to get the speaker working, the reason is that you use outa[SPKRPin] instead of using DIRA, OUTA and INA, Could you please post a small snippet about how I would turn the speaker on and off in C compiled using the ICCPROP compiler. Very sorry for this newbie question but I'm not really confident about the meenings of INA, OUTA, etc and only have a rough idea of what they do.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Trying to port some code to C - Newbie :(
please spend some time reading the propeller tutorials on the parallax site
once you've finished the entire tutorial pdf you will understand how to program the chip
once you've finished the entire tutorial pdf you will understand how to program the chip
Please be positive and constructive with your questions and comments.