summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/scripts
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-03 11:17:37 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-03 11:17:37 +0100
commitb539a6149027aa550fa0c24cb019853a77d8a36f (patch)
tree5a9076a31ca39ecb908a6cf16325e3b708b51586 /esp8266/scripts
parent81a99eb388a6ae05c6ec52439c137496510dc757 (diff)
downloadmicropython-b539a6149027aa550fa0c24cb019853a77d8a36f.tar.gz
micropython-b539a6149027aa550fa0c24cb019853a77d8a36f.zip
esp8266/scripts/neopixel.py: Swap red and green in pixel accessor.
Diffstat (limited to 'esp8266/scripts')
-rw-r--r--esp8266/scripts/neopixel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/scripts/neopixel.py b/esp8266/scripts/neopixel.py
index b0b9dc3813..4818c74a3b 100644
--- a/esp8266/scripts/neopixel.py
+++ b/esp8266/scripts/neopixel.py
@@ -18,7 +18,7 @@ class NeoPixel:
def __getitem__(self, index):
i = index * 3
- return self.buf[i], self.buf[i + 1], self.buf[i + 2]
+ return self.buf[i + 1], self.buf[i], self.buf[i + 2]
def write(self):
neopixel_write(self.pin, self.buf, True)