MicroPython Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

The animations in this recipe can be tweaked to create a variety of different animations. For instance, you could change the speed of the animation or the number of times the animation loops around the pixels. The preceding code can be used in a function that receives these two parameters as arguments. This can then be used in a larger program, which will call the function to make animations with different settings.