VinciBot Python #04 — Obstacle Detection with if–else + RGB LEDs

4 days ago
3

In this lesson, we move from block coding to text-based Python on VinciBot and build a real-time obstacle indicator:

What you’ll learn

The if–else conditional in Python (indentation, True/False, comparison operators).

Using the sensor API: sensors.is_obstacle_distance('<', 50).

Driving RGB LEDs with LEDS.show_all(r, g, b) (0–255).

Creating a monitoring loop with while True.

Loading comments...