Index>Robot Kit>Alter All in One Kit for RPi>Lesson 42 Product API Documentation
No related product information!

Lesson 42 Product API Documentation

947

In order to facilitate rapid secondary development for users, we encapsulate the functions of Alter products in alterMove.py, which can be used directly.

1. Before writing your own program, first import alterMove.py, instantiate it, and start the thread.

import alterMove
    alter = alterMove.Alter()
    alter.start()
    screen = alterMove.OLED()
    screen.start()

2. Then you can start calling these APIs and start writing your own programs.

 

3. The following is a description of the role of some functions:

image.png

image.png

image.png

image.png

image.png

image.png