Missing filename in #include directive in arduino pulse counter sketch

I am reading this tutorial and I think the file name is missing from first line if someone please let me know what it is.

In the first line below, the filename is missing


    #ifndef cbi
    #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
    #ifndef sbi ...

Edit - fixed thread name and mangled text - BT, Moderator

What does the compiler complain about if you try to compile without the #include line?

Looking at the original source, the only possibility I can think of, and bear in mind I am not an Arduino expert, is
#include <avr/sleep.h>
and that’s only because I see “sleep” mentioned.

Let me know if that works, and I’ll get the page corrected. I’m guessing that in moving from the old forum format, the “<” character caused a problem that went unnoticed.

That was the fix. Thanks

1 Like