Skip to content

Commit 64a03f4

Browse files
authored
Merge pull request #2530 from adafruit/neodriver_extendedbus
Updating neodriver extended bus example
2 parents e659987 + 7f9bbac commit 64a03f4

File tree

1 file changed

+4
-4
lines changed
  • NeoDriver_seesaw_Examples/Extended_Bus_NeoDriver_seesaw

1 file changed

+4
-4
lines changed

NeoDriver_seesaw_Examples/Extended_Bus_NeoDriver_seesaw/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from adafruit_extended_bus import ExtendedI2C as I2C
1010
from adafruit_seesaw import seesaw, neopixel
1111

12-
i2c = I2C(1)
12+
i2c = I2C(1, frequency=800000)
1313
ss = seesaw.Seesaw(i2c, addr=0x60)
1414
neo_pin = 15
15-
num_pixels = 64
15+
num_pixels = 30
1616

17-
pixels = neopixel.NeoPixel(ss, neo_pin, num_pixels, brightness = 0.1)
17+
pixels = neopixel.NeoPixel(ss, neo_pin, num_pixels, brightness = 0.3, auto_write=False)
1818

1919
color_offset = 0
2020

@@ -23,5 +23,5 @@
2323
rc_index = (i * 256 // num_pixels) + color_offset
2424
pixels[i] = colorwheel(rc_index & 255)
2525
pixels.show()
26-
color_offset += 1
26+
color_offset += 8
2727
time.sleep(0.01)

0 commit comments

Comments
 (0)