google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.63k stars 694 forks source link

aiy.vision.leds missing Color class #592

Closed kbrooks80 closed 5 years ago

kbrooks80 commented 5 years ago

When aiy.leds moved to aiy.vision.leds it looks like the Color class got stripped out and enter and exit got stripped from the Leds class. Additionally, aiy.vision.leds does not import math anymore for the blend function in the Color class. I'm not sure if this was to increase performance or not - I'm still pretty terrible at Python & don't know how to do pull requests yet. The result of these omissions is that leds_example.py from the aiy.leds documentation does not work.

When you add the above items to aiy.vision.leds and change aiy.leds to aiy.vision.leds in leds_example.py, all examples in leds_example.py work.

This applies to the 2018-11-16 release image

dmitriykovalev commented 5 years ago

There is no aiy.vision.leds, everything is in aiy.leds.