View Single Post
  #11   Spotlight this post!  
Unread 15-01-2004, 00:46
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Trouble with pwm outputs

also, if you are required to pass a value, but you have a pointer-based variable, the asterisk (*) will get you what you need.

quick pointers tutorial:
Code:
char *ptr;                   //declares pointer to a char
ptr = whatever;          //assigns "whatever" as the *address* where ptr is pointing (usually for assigning the address of one pointer to another)
*ptr = whatever;        //assigns "whatever" as the value stored where ptr is pointing (the normal "i want to assign a value")
ptr = &whatever;       //assigns the address of "whatever" to the ptr (essentially, makes ptr point at "whatever")