Sunday, February 17, 2019

Visually Editing Python on the AIY Vision Kit

In this video, I cover visually editing the python code with the Thonny Python editor.



Here is the source code I used for the project: leds_example.py 


#!/usr/bin/env python3

import time
from aiy.leds import Leds, Color

with Leds() as leds:
    for _ in range(50):
        leds.update(Leds.rgb_on(Color.BLUE))
        time.sleep(1)
        leds.update(Leds.rgb_off())
        time.sleep(1)


    


No comments:

Trying out the Dart Analysis Server

I wanted to see how the Dart Analysis Server was put together and worked. I started looking to see how I could wire it up and try out the co...