Comments (3)
When you say "The TimerOne library can't be used together with either the Servo
or the SPI library", do you know if this applies to attachInterrupt as well?
attachInterrupt(function, period)
Calls a function at the specified interval in microseconds.
I just want to use attachInterrupt to trigger SPI to poll for some data ten
times a second (ie: 10Hz). As there's no PWM involved, is this function safe
with SPI?
Original comment by [email protected]
on 2 Dec 2013 at 9:11
from arduino-timerone.
No idea, sorry. Just give it a try. :)
Btw, you might find more help in the Arduino Forum for that, as this place is
just for the Timer One lib.
Original comment by [email protected]
on 5 Dec 2013 at 8:19
from arduino-timerone.
Hi @andre. I can answer my own question and save anyone else confusion - it
DOES work.
OK, to clarify, using the attachInterrupt function of this library appears to
work fine with SPI. Try this code...
https://gist.github.com/lardconcepts/7836064
BTW, when you say "you might find more help in the Arduino Forum for that, as
this place is just for the Timer One lib".
Well, you said "The TimerOne library can't be used together with either the
Servo or the SPI library".
I came and questioned this, because I was having trouble (turned out the slave
select wire to the slave was loose!).
My question was directly related to the TimerOne library, and specific to your
question, so I thought I'd add it on. Anyway, bottom line is... the answer is
yes!
Original comment by [email protected]
on 7 Dec 2013 at 1:21
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
- In member function 'void TimerOne::start()': TimerOne.cpp:143: error: 'PSRSYNC' was not declared in this scope HOT 1
- 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.