EasyManua.ls Logo

ADEEPT PiCar-Pro - Page 84

ADEEPT PiCar-Pro
178 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
81
Import dependent libraries and initialize.
1. def run():
2. with canvas(device) as draw:
3. draw.text((0, 0), text_1, fill="white")
4. draw.text((0, 10), text_2, fill="white")
5. draw.text((0, 20), text_3, fill="white")
6. draw.text((0, 30), text_4, fill="white")
7. draw.text((0, 40), text_5, fill="white")
8. draw.text((0, 50), text_6, fill="white")
9.
10. if __name__ == '__main__':
11. run()
Light up the OLED screen.

Related product manuals