Where is the TimerOne.h header file? It is nowhere on Github

Trying to compile the emonTx Discrete sampling.

It is looking for TimerOne.h. Is this a emon specific header filer. It's not finding it, and it is not on github

pb66's picture

Re: Where is the TimerOne.h header file? It is nowhere on Github

Not that I recall and a quick Google suggests otherwise too!.

What sketch are you loading specifically? a link would help as a search of the emonTx Firmware repo only finds 4 instances, none of which are a Discrete sampling sketch.

Paul

alexkarstens's picture

Re: Where is the TimerOne.h header file? It is nowhere on Github

Robert Wall's picture

Re: Where is the TimerOne.h header file? It is nowhere on Github

How are you trying to compile? (Arduino IDE? Version?)
Is there anything else in the same directory as your sketch?

AdrianSmith's picture

Re: Where is the TimerOne.h header file? It is nowhere on Github

Hi, I am also trying to compile the "emonTxV3_4_continuous_kwhtotals"

 it has "#include <TimerOne.h>" as the 4th line In the source listing; and I am getting the same problem with the error message "emonTxV3_4_continuous_kwhtotals.ino:17:22: fatal error: TimerOne.h: No such file or directory compilation terminated."

 

I am able to compile the "emonTxV3_4_DiscreteSampling" OK.

 

Simon's picture

Re: Where is the TimerOne.h header file? It is nowhere on Github

Timerone.h is a standard Arduino library.

http://playground.arduino.cc/Code/Timer1

There are some newer/modified versions for example

https://github.com/PaulStoffregen/TimerOne.

But I used the standard TimerOne and it worked fine.

 

 

Robert Wall's picture

Re: Where is the TimerOne.h header file? It is nowhere on Github

What I don't understand is why alexkarstens cannot compile the default sketch, which does not require Timer1. Hence the supplementary questions. I suspect he doesn't understand how the Arduino IDE expects him to work (not surprising really as it got a few idiosyncrasies), and he's got another file in the same directory.

[Simon, in this day and age, people need to learn how to use the search engines effectively, hence the nudge from Paul.]

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.