Software Installation
https://code.visualstudio.com/
code.visualstudio.com
1
#!/usr/bin/env pybricks-micropython
2
from pybricks.hubs import EV3Brick
3
from pybricks.parameters import Color
4
5
# setup section
6
ev3 = EV3Brick()
7
screen = ev3.screen
8
screen.clear()
9
10
# Main Program
11
screen.draw_text(10, 10, "Everything", text_color=Color.BLACK, background_color=None)
12
screen.draw_text(10, 30, "is", text_color=Color.BLACK, background_color=None)
13
screen.draw_text(10, 50, "Awesome!", text_color=Color.BLACK, background_color=None)
14
15
ev3.speaker.beep()
16
17
while (True):
18
wait = 0
19
Copied!
Last modified 5mo ago
Export as PDF
Copy link