doublebuf
Ondřej Hruška 7 years ago
parent 5cf2022bbc
commit 3fca05e239
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      main.py

@ -54,6 +54,8 @@ if True:
neo = gex.Neopixel(client, 'npx') neo = gex.Neopixel(client, 'npx')
print('We have %d neopixels.\n' % neo.get_len()) print('We have %d neopixels.\n' % neo.get_len())
# generate a little animation...
for i in range(0,512): for i in range(0,512):
j = i if i < 256 else 255-(i-256) j = i if i < 256 else 255-(i-256)
neo.load([0x660000+j, 0x3300FF-j, 0xFFFF00-(j<<8), 0x0000FF+(j<<8)-j]) neo.load([0x660000+j, 0x3300FF-j, 0xFFFF00-(j<<8), 0x0000FF+(j<<8)-j])

Loading…
Cancel
Save