Trying to port some code to C - Newbie :(

Talk about YBoxen, widgets, Propeller hacking, etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
mmjack
 
Posts: 5
Joined: Sat Feb 14, 2009 8:32 am

Trying to port some code to C - Newbie :(

Post by mmjack »

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. :oops:

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Trying to port some code to C - Newbie :(

Post by adafruit »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “YBox2 (discontinued)”