• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rwaldron / johnny-five / 2582
92%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2017 05:17PM UTC
Jobs 10
Files 55
Run time 22min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2582

push

travis-ci

rwaldron
Fix Piezo.prototype.note() (#1328)

* Fix Piezo.prototype.note()

The `note()` method was passing a frequency (Hz) to the `tone()` method, which is expecting to receive a duty cycle (μs), leading to the wrong note being played.  The solution is for `note()` to call `frequency()` instead, which will do the appropriate conversion.

Since it took me a while to understand the relationships between `tone`, `frequency` and `note` I've added some documentation to those methods to clear things up for the next person.  I've also made some unit tests more aggressive about checking that values are converted appropriately as they're passed around, and commented note-frequency-duty equivalencies to help the test read nicer.

* Fix lint error

* Address review feedback

- Test that `note()` is case-insensitive
- Better description of default octave
- One-line Piezo.prototype.note
- s/frequncy/frequency
- Note tests demonstrate the difference between note letter and octave number better

2791 of 3257 branches covered (85.69%)

7237 of 7889 relevant lines covered (91.74%)

1741.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2582.1 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:17PM UTC 0
91.74
Travis Job 2582.1
2 2582.2 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:19PM UTC 0
91.74
Travis Job 2582.2
3 2582.3 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:19PM UTC 0
91.74
Travis Job 2582.3
4 2582.4 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:19PM UTC 0
91.74
Travis Job 2582.4
5 2582.5 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:19PM UTC 0
91.73
Travis Job 2582.5
6 2582.6 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:39PM UTC 0
91.72
Travis Job 2582.6
7 2582.7 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:28PM UTC 0
82.06
Travis Job 2582.7
8 2582.8 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:32PM UTC 0
82.06
Travis Job 2582.8
9 2582.9 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:30PM UTC 0
91.74
Travis Job 2582.9
10 2582.10 (NO_SERIALPORT_INSTALL=1) 21 Apr 2017 05:30PM UTC 0
82.06
Travis Job 2582.10
Source Files on build 2582
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2582
  • 001f27f2 on github
  • Prev Build on master (#2581)
  • Next Build on master (#2584)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc