Coder Social home page Coder Social logo

Comments (1)

bcarroll avatar bcarroll commented on June 9, 2024

looks like samplingInterval is set to 19 by default.
int samplingInterval = 19; // how often to run the main loop (in ms)

I changed it to 99, but the results are very different.

Results with samplingInterval=19;
C:\perl-firmata-dev\examples>test.pl
>f0,79,f7
<f0,79,02,03,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,46,00,69,00,72,00,6d,00,61,00,74,00,61,00,2e,00,69,00,6e,00,6f,00,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,6b,f7
<f0,6c,7f,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,0
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,69,f7
<f0,6a,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,00,01,02,03,04,05,06,07,08,09,0a,0b,0c,0d,0e,0f,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>ff
>f0,79,f7
<f0,79,02,03,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,46,00,69,00,72,00,6d,00,61,00,74,00,61,00,2e,00,69,00,6e,00,6f,00,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,6b,f7
<f0,6c,7f,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,03,08,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,06,01,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,01,01,04,0e,7f,00,01,0
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>f0,69,f7
<f0,6a,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,7f,00,01,02,03,04,05,06,07,08,09,0a,0b,0c,0d,0e,0f,f7
< START_SYSEX
< DATA_SYSEX
< END_SYSEX
>d1,01
>f4,0b,01
>d1,01
>f4,0c,00
unsupported mode '2' for pin '15' at ../lib/Device/Firmata/Platform.pm line 823.

Results with samplingInterval=19;
C:\perl-firmata-dev\examples>test.pl
>f0,79,f7
>f0,79,f7
>ff
>f0,79,f7

from perl-firmata.

Related Issues (9)

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.