esp8266/scripts/neopixel.py: Swap red and green in pixel accessor.

This commit is contained in:
Damien George 2016-05-03 11:17:37 +01:00
parent 81a99eb388
commit b539a61490
1 changed files with 1 additions and 1 deletions

View File

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