Pages: [1]   Go Down
Author Topic: library(s) location ? & Protothread use  (Read 1483 times)
0 Members and 1 Guest are viewing this topic.
95060
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm a newbee running Arduino 0022 on a MAC OSX platform had trouble geting directory linkages correct;
this I have learned:

need to learn to spell Arduino correctly and accurately

if you have Arduino folders in more than one location your likely to get confused ....


The "built-in" libraries are located in the Arduino App Bundle.
/Applications/Arduino.app/Contents/Resources/Java/libraries/

I set the Sketchbook location preferences to >  /Users/tws/Documents/Ardurino/libraries
but placed downloaded library in >  /Users/tws/Applications/Arduino/libraries
 
When I place  UN-Zipped Protothread which yielded (PT 1.4) folder {I renamed Protothread} in sketchbook library location
  I'm getting more than example sketches show.

Example sketches imply
#include <pt.h>

When I import I end up with

#include <lc-addrlabels.h>
#include <lc-switch.h>
#include <lc.h>
#include <pt-sem.h>
#include <pt.h>

Questions :

Can a library folder be named anything one wants.

Do I need to include other than <pt.h> ?

Is protothreading overkill when all i want to do is run a simple a digital sensor loop that triggers a quick servo action when actuated AND every minute or so break long enough to blink (count) number of times, representing a the number of triggered actions ... likely less than 20.
 count() is set to zero at start-up
« Last Edit: April 29, 2011, 01:16:13 pm by tomswell » Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 49
Posts: 3425
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is protothread overkill

Very much so. Let's see if I can type this before someone else says it: look at the blink without delay tutorial  smiley-wink
Logged

95060
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for comment .... I'm just begining to figure out patterns :  classes , functions , nesting of events , _local variables, naming conventions ... who gets declared where. It's a bit much to take in all at once.
I'll play with blink with delay
Logged

Pages: [1]   Go Up
Jump to: