'unary' error with new IDE and 'digitalWriteFast'

Hello all,
Somehow with the new IDE (1.0.5) I no longer can use the digitalWriteFast and digitalReadFast commands…
It all does work in the old IDE (0021) though.

The digitalWriteFast library is added, but when I compile in IDE (1.0.5) I get this error:

Speed_Compare2.pde: In function ‘void loop()’:
Speed_Compare2:18: error: invalid type argument of ‘unary *’
Speed_Compare2:19: error: invalid type argument of ‘unary *’

Here is my simple code:

#include <digitalWriteFast.h>
int Counter;

void setup()
{
  pinMode(52, OUTPUT);
}

void loop()
{  
Counter ++;
if (Counter > 1000){
   // Do Stuff
   Counter = 0;
 } 
 digitalWriteFast(52, HIGH);
 digitalWriteFast(52, LOW); 
}

Do any of you know what is causing the problem?
I got the DigitalWriteFast library from here:
http://code.google.com/p/digitalwritefast/downloads/list
And I use the Arduino mega 2560

Thanks!

Which of the three versions did you download?

Try using "digitalWriteFast2()" in place of "digitalWriteFast()".

The digitalWriteFast() function will turn off a timer output if the pin is also controlled by a timer. I think that code is expanding to:

  if (0) 
    bitClear(*0, COM5C1);   // I think it's the "*0" the compiler is complaining about
  bitWrite(*&PORTB, 1, (HIGH)); \

The '2' version skips the test for timers.

Hi and thanks for the reply, I got this version digitalWriteFast.zip From: http://code.google.com/p/digitalwritefast/downloads/list/

In fact I also tried to copy the digitalWriteFast libary folder from IDE version 0021 (in which digitalWriteFast worked) to IDE 1.0.5 and in that IDE version it does not work. (Also in IDE version 1.0.4 it does not work)

Thanks Johnwasser that digitalWriteFast2 did the trick.

johnwasser: Try using "digitalWriteFast2()" in place of "digitalWriteFast()".

The digitalWriteFast() function will turn off a timer output if the pin is also controlled by a timer. I think that code is expanding to:

  if (0) 
    bitClear(*0, COM5C1);   // I think it's the "*0" the compiler is complaining about
  bitWrite(*&PORTB, 1, (HIGH)); \

The '2' version skips the test for timers.