Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео
- #2602
- 13 Mar 2026
"Display "Hello World" text on the screen"
from hub import light_matrix import runloop async def main(): light_matrix.write("Hello World") runloop.run(main())
from hub import light_matrix import runloop hours = 2 async def main(): light_matrix.write(str(hours)) runloop.run(main())
from hub import light_matrix import random import runloop hours = random.randint(1, 12) async def main(): light_matrix.write(str(hours)) runloop.run(main())
from hub import light_matrix import random import runloop hours = random.randint(1, 12) minutes = random.randint(0, 59) async def main(): light_matrix.write(str(minutes)) runloop.run(main())
"Display the hours and minutes variables separated by a colon."
from hub import light_matrix import random import runloop hours = random.randint(1, 12) minutes = random.randint(0, 59) async def main(): light_matrix.write(str(hours) + ":" + str(minutes)) runloop.run(main())
"How many degrees must the short hand of the clock rotate to show that one hour has passed? (360/12)"
30
hours = random.randint(1, 12) hour_degrees = hours * 30
"How many degrees must the long hand of the clock rotate to show that one minute has passed? (360/60)"
6
minutes = random.randint(0, 59) minutes_degrees = minutes * 6
from hub import port import motor import random import runloop hours = random.randint(1, 12) hour_degrees = hours * 30 minutes = random.randint(0, 59) minutes_degrees = minutes * 6 async def main(): motor.run_for_degrees(port.E, hour_degrees, 360) runloop.run(main())
from hub import port import motor import random import runloop hours = random.randint(1, 12) hour_degrees = hours * 30 minutes = random.randint(0, 59) minutes_degrees = minutes * 6 async def main(): motor.run_for_degrees(port.E, hour_degrees, 360) await motor.run_for_degrees(port.F, minutes_degrees, -360) runloop.run(main())
from hub import port import motor import random import runloop hours = random.randint(1, 12) hour_degrees = hours * 30 minutes = random.randint(0, 59) minutes_degrees = minutes * 6 async def main(): motor.run_for_degrees(port.E, hour_degrees, 360) await motor.run_for_degrees(port.F, minutes_degrees, -360) await runloop.sleep_ms(5000) motor.run_for_degrees(port.E, hour_degrees, -360) await motor.run_for_degrees(port.F, minutes_degrees, 360) runloop.run(main())
from hub import port, light_matrix import motor import random import runloop hours = random.randint(1, 12) hour_degrees = hours * 30 minutes = random.randint(0, 59) minutes_degrees = minutes * 6 async def main(): motor.run_for_degrees(port.E, hour_degrees, 360) await motor.run_for_degrees(port.F, minutes_degrees, -360) await runloop.sleep_ms(5000) motor.run_for_degrees(port.E, hour_degrees, -360) await motor.run_for_degrees(port.F, minutes_degrees, 360) light_matrix.write(str(hours) + ":" + str(minutes)) runloop.run(main())
Курсове и занятия включващи този Урок
Този Урок е използван в следните курсове и занятия.
Level A: Python Foundations – Robotics with LEGO SPIKE Prime
This is the first level of the LEGO Robotics Curriculum with Python, designed for students in grades 2, 3, and 4.
In this robot adventure, students learn to control robots using real Python code, while teachers guide them through their first steps in text-based programming. Throughout the level, students build a variety of LEGO SPIKE Prime robot models and program them to move, turn, and complete tasks with increasing precision.
Step by step, students learn how to read, understand, and write their own Python programs. Through fun and creative challenges, they bring their robots to life and discover how code can control movement, solve problems, and interact with the world. Along the way, they explore concepts such as navigation, obstacle avoidance, and sensor-based behavior.
The curriculum is designed to help teachers introduce programming in an engaging and approachable way while giving students plenty of opportunities to experiment, test ideas, and develop confidence in their coding skills.
By the end of the level, students apply everything they have learned in an exciting robotics competition. Using their own programs and robot designs, they complete missions on a competition field with boxes, putting their coding, engineering, and problem-solving skills to the test.
- 46
- 4:32
- 78
Lesson 5 - Educational toy: Learn to read the clock
Важно е да даваме обратна връзка на учениците си и се стремим да го правим редовно по време на курса. По-долу ще намерите описание на ранговете, които използваме в училището по роботика, както и на качествата и поведението, които ги определят.
Днес трябва да поставите рангове на учениците си според инструкциите тук.
- 7
- 6
- 14
- 3d_rotation 1