Coder Social home page Coder Social logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.