problem with digitalWriteFast

Hi guys

I have digitalWriteFast library install to IDE at my desktop but when im trying to work my project at my laptop, digitalWriteFast doesn’t work.
i tryed to install the library to my laptop(copy from my desktop library to laptop library) but it does not work.
It seems to be in libraries but line that project starts : #include <digitalWriteFast.h>

doesnt appears with red color.

any ideas why?

thank you

Are you saying it doesn't set the pin to the state you specified, or are you saying it hasn't got a keywords.txt file?

I guess you didn’t point the Arduino IDE on your laptop to your sketchbook folder. Go to settings and point to it :slight_smile:

septillion: I guess you didn't point the Arduino IDE on your laptop to your sketchbook folder. Go to settings and point to it :)

thank you for replays!

septillion can you more specific please. if you mean what i understand,the digitalWriteFast library it appears in examples.so is in the right folder.

thank you

in my desktop digitalFat was ok I make format to my desktop and digitalfast has problem too. maybe i have to install something to my desktop windows. Have any ideas? thanks

Which IDE do you use? Is it the same as before?

And were (specific folder path) did you place the library? And did you copy all the files in there?

Hi septillion
thanks for replay
In fact i can not remebers which IDE iwas using.
Any way now i am trying with 1.0.6 and 1.6.6 also
I manage my IDE to see digitalWriteFast nad now appears with red text.
the code i post its a code that i was using before format my pc,to read an Incremental Rotary Encoder
and now errors come up

#include <digitalWriteFast.h>


const byte pin_A =  2; // connect white wire here
const byte pin_B =  3; // connect green wire here
int A_set =         0;
int B_set =         0;
long pulses =       0;


void setup()
{
  pinMode(pin_A, INPUT);
  digitalWrite(pin_A, HIGH); // enables pull-up resistor
  pinMode(pin_B, INPUT);
  digitalWrite(pin_B, HIGH); // enables pull-up resistor  

  A_set = digitalRead(pin_A);
  B_set = digitalRead(pin_B);

  attachInterrupt(0, encoderPinChange_A, CHANGE); // pin 2
  attachInterrupt(1, encoderPinChange_B, CHANGE); // pin 3

  Serial.begin(115200);  
}


void loop()
{
  Serial.println(pulses);
}


void encoderPinChange_A()
{
  A_set = digitalReadFast2(pin_A) == HIGH;
  pulses += (A_set != B_set) ? +1 : -1;
}


void encoderPinChange_B()
{
  B_set = digitalReadFast2(pin_B) == HIGH;
  pulses += (A_set == B_set) ? +1 : -1;
}

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: “Arduino Duemilanove w/ ATmega328”
In file included from incremental_rotary_encoder.ino:1:
C:\Users\alextech\Documents\Arduino\libraries\digitalWriteFast/digitalWriteFast.h:1:23: error: WProgram.h: No such file or directory
incremental_rotary_encoder.ino: In function ‘void encoderPinChange_A()’:
incremental_rotary_encoder:36: error: ‘digitalReadFast2’ was not declared in this scope
incremental_rotary_encoder.ino: In function ‘void encoderPinChange_B()’:
incremental_rotary_encoder:43: error: ‘digitalReadFast2’ was not declared in this scope

Any help will be nice

pls anyone
the code is

#include <digitalWriteFast.h>


const byte pin_A =  2; // connect white wire here
const byte pin_B =  3; // connect green wire here
int A_set =         0;
int B_set =         0;
long pulses =       0;


void setup()
{
  pinMode(pin_A, INPUT);
  digitalWrite(pin_A, HIGH); // enables pull-up resistor
  pinMode(pin_B, INPUT);
  digitalWrite(pin_B, HIGH); // enables pull-up resistor  

  A_set = digitalRead(pin_A);
  B_set = digitalRead(pin_B);

  attachInterrupt(0, encoderPinChange_A, CHANGE); // pin 2
  attachInterrupt(1, encoderPinChange_B, CHANGE); // pin 3

  Serial.begin(115200);  
}


void loop()
{
  Serial.println(pulses);
}


void encoderPinChange_A()
{
  A_set = digitalReadFast2(pin_A) == HIGH;
  pulses += (A_set != B_set) ? +1 : -1;
}


void encoderPinChange_B()
{
  B_set = digitalReadFast2(pin_B) == HIGH;
  pulses += (A_set == B_set) ? +1 : -1;
}

the problem now is:
Arduino: 1.6.0 (Windows 7), Board: “Arduino Uno”

incremental_rotary_encoder.ino:1:30: fatal error: digitalWriteFast.h: No such file or directory
compilation terminated.
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

whats wrong?