Skip to content

Update getDeviceCount() description #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions pages/software.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,10 @@ <h3>Get the number of attached devices</h3>


<p>We iterate over the list of devices by an index that runs from 0 to
<code>getDeviceCount()-1</code>. The index is the <em>address</em> of each device.
<code>getDeviceCount()</code>. The index is the <em>address</em> of each device.
This <em>address</em> is the first argument of <strong>every</strong> function that sets
a feature or a (Led-)value on a device.
Note that <code>getDeviceCount()</code> returns the number of devices attached, but the
<em>address</em> of an device starts at 0 for the first one, 1 for the second one,..
<code>getDeviceCount()-1</code> for the last one. </p>
a feature or a (Led-)value on a device. The adress starts at 0 for the first device, 1
for the second one,.. <code>getDeviceCount()</code> for the last one.</p>
<h3><a id="ShutdownMode"></a>Power saving mode</h3>
<p>Leds consume quite a lot of energy when they are lit. Battery operated devices
need a way save power by switching the whole display off, when the user doesn't
Expand Down Expand Up @@ -622,4 +620,4 @@ <h2><a id="Demos"></a>Library Demos</h2>
</div>
</div>
</body>
</html>
</html>