View Single Post
  #7   Spotlight this post!  
Unread 31-05-2006, 08:25
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: Vex Library and Sample Code

Quote:
Originally Posted by tacman1123
This is exactly what I'm looking for -- thanks! Is there documentation on this anywhere, besides reading the source code comments? How does one know what rc_dig_in01, pwm01 and pwm_in1 are?

Or sample programs, simpler than the VexCode on vexlabs.com? Something like the GearToothTest that Brad has in WPILib, mentioned in the previous post?

Again, thanks very much, I feel like I'm at least getting closer to understanding how to program without EasyC.

Tac
arrrgh, you wouldn't believe the long insightful answer i had for you when my connection timed out...

the short answer is study the sample code and refer to the 18f8520 datasheet, (watch any ad for a prescription med on the tele for a list of possible side effects), and have a look at theEntropyWorks.com, (a fine example of good intentions and what becomes of them).

anyway, to use pin 1 for input initialize io1 = 1 and to set it to output io1 = 0. when the rc powers up all pins are set to input so that you need not worry that the attached chainsaw on your deathbot will gobble your arm before you can jump clear.

must go to work...
Reply With Quote