Comments (1)
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)
- wrap this up in a nice CPAN friendly wrapper? HOT 16
- Is Arduino Mega support built-in? HOT 3
- Device::Firmata is not listed on CPAN HOT 3
- unsupported mode '2' for pin '15' at ../lib/Device/Firmata/Platform.pm line 823. HOT 1
- Possible change to Device::Firmata->open() HOT 2
- Use of uninitialized value in addition (+) at FHEM/lib/Device/Firmata/Protocol.pm line 206. HOT 1
- Support for Firmata later than 2.06 HOT 12
- Capability query does not respect protocol version HOT 4
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 perl-firmata.