esp8266/scripts/neopixel.py: Swap red and green in pixel accessor.
This commit is contained in:
parent
81a99eb388
commit
b539a61490
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue