Search found 3 matches

by Longhorn Engineer
Mon Jun 20, 2011 4:34 pm
Forum: Arduino
Topic: Uno power source/adapter?
Replies: 6
Views: 970

Re: Uno power source/adapter?

Take the board to Radioshack or Fry's. They should have some jacks. Just test fit a couple then solder up a cable. I think they also sell wall adapters if you don't have any spare ones. The UNO board is going to need at least 7V to operate. No more then 9V. 7-9V. Make sure it can supply at minimum 5...
by Longhorn Engineer
Sun Jun 19, 2011 12:26 am
Forum: Code Snippets
Topic: Sorting Variables
Replies: 4
Views: 3081

Re: Sorting Variables

qsort(A,sizeof(A),sizeof(int),compare); Where A is the array that holds the variables and compare is this function. int compare (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } More info here. Its in the stdlib of C so yo...
by Longhorn Engineer
Sun Jun 19, 2011 12:07 am
Forum: Code Snippets
Topic: WS2801 Propeller Driver
Replies: 0
Views: 2316

WS2801 Propeller Driver

Here is a bit of code I wrote to get the WS2801 working with the propeller. All written in spin. Currently only supports a single WS2801 and is designed to not use a new cog and use minimum resources. I will be working on a driver that supports mult...