Comments (1)
I had the same issue trying to get the pulse generator example from section
18.5 in the Arduino cookbook to compile on an older ATMega8 with the Arduino
bootloader.
The fix was to add the mapping for the ATMega8 pins in TimerOne.cpp:
#include "TimerOne.h" <--- original code
// enable support for ATMEGA8
#if defined(__AVR_ATmega8__)
#define TIMSK1 TIMSK
#define GTCCR SFIOR
#define PSRSYNC PSR10
#endif
TimerOne Timer1; // preinstatiate <--- original code
After that, the pulse generator compiled and appeared to function correctly.
Original comment by [email protected]
on 8 Dec 2012 at 4:48
from arduino-timerone.
Related Issues (17)
- Proposed update HOT 9
- Leonardo support
- Leonardo support
- Wanted: TimerOne for timer2, TimerTwo HOT 1
- [fix included] mega and leonardo not supported
- start() doesn't appear to work on Uno or Nano HOT 1
- Folder name TimerOner-11 is not allowed
- TimerOne error on arduino DUE
- Patch for /trunk/TimerOne.cpp
- TimerOne-v7 error HOT 1
- Missing keywords and example HOT 5
- ReadReceiver Sketch Incompatible with TimerOne-v8, works with TimerOne-v2 HOT 1
- led blink HOT 1
- The period isn't correct. why? HOT 4
- Incompatible with core Servo and SPI libraries HOT 3
- Leonardo support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-timerone.