From c82c09095e2624fc805820ae147200ea96f265d3 Mon Sep 17 00:00:00 2001 From: v0x23 <40716069+v0x23@users.noreply.github.com> Date: Wed, 31 Oct 2018 12:18:52 +0000 Subject: [PATCH 1/2] Update device adress start point Device adresses start at 1 and the documentation should reflect that. --- pages/software.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pages/software.html b/pages/software.html index 2c4634a1..23ce8ad6 100644 --- a/pages/software.html +++ b/pages/software.html @@ -140,13 +140,11 @@
We iterate over the list of devices by an index that runs from 0 to
-getDeviceCount()-1. The index is the address of each device.
+
We iterate over the list of devices by an index that runs from 1 to
+getDeviceCount(). The index is the address of each device.
This address is the first argument of every function that sets
-a feature or a (Led-)value on a device.
-Note that getDeviceCount() returns the number of devices attached, but the
-address of an device starts at 0 for the first one, 1 for the second one,..
-getDeviceCount()-1 for the last one.
getDeviceCount() for the last one.
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 @@ -622,4 +620,4 @@