diff --git a/lib/led/ledcontrol.js b/lib/led/ledcontrol.js index b00d37e35..49464365c 100644 --- a/lib/led/ledcontrol.js +++ b/lib/led/ledcontrol.js @@ -454,12 +454,15 @@ const Controllers = { this.addresses = available.slice(0, state.devices); } - this.addresses.forEach(address => { - if (!addresses.has(address)) { - throw new Error(`Invalid HT16K33 controller address: ${address}`); - } - addresses.delete(address); - }); + if (!options.skipAddressValidation) + { + this.addresses.forEach(address => { + if (!addresses.has(address)) { + throw new Error(`Invalid HT16K33 controller address: ${address}`); + } + addresses.delete(address); + }); + } this.rotation = options.rotation || 1; // set a default rotation that works with AdaFruit 16x8 matrix if using 16 columns