From c1e037280f80ff47a8588681f6b785527b39a10c Mon Sep 17 00:00:00 2001 From: John Kilmister Date: Wed, 22 Apr 2020 20:24:51 +0100 Subject: [PATCH] Update ReadMe code sample as it would not run The device variable was declared however the led variable was used giving an undefined error. This corrects this by using the declared variable. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c33177c9..f5195019 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,9 @@ To get the first blinkstick on your system: To set the color: - led.blink('random', function(){ - led.pulse('random', function(){ - led.setColor('red', function(){ + device.blink('random', function(){ + device.pulse('random', function(){ + device.setColor('red', function(){ }); }); });