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 @@

Get the number of attached devices

-

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.

+a feature or a (Led-)value on a device. The adress starts at 1 for the first device, 2 +for the second one,.. getDeviceCount() for the last one.

Power saving mode

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 @@

Library Demos

- \ No newline at end of file + From 8c5cb8826fdc24e68866dca91dd092ba8b225e79 Mon Sep 17 00:00:00 2001 From: v0x23 <40716069+v0x23@users.noreply.github.com> Date: Thu, 1 Nov 2018 13:04:09 +0000 Subject: [PATCH 2/2] Update software.html --- pages/software.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/software.html b/pages/software.html index 23ce8ad6..c4dc0392 100644 --- a/pages/software.html +++ b/pages/software.html @@ -140,10 +140,10 @@

Get the number of attached devices

-

We iterate over the list of devices by an index that runs from 1 to +

We iterate over the list of devices by an index that runs from 0 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. The adress starts at 1 for the first device, 2 +a feature or a (Led-)value on a device. The adress starts at 0 for the first device, 1 for the second one,.. getDeviceCount() for the last one.

Power saving mode

Leds consume quite a lot of energy when they are lit. Battery operated devices