Skip to main content
100%

Cálculo del Área de un Triángulo con Micro:bit

✓ Published0🌍 Public
IIoTeacher
Last edited Nov 27, 2024
Created on Nov 21, 2024

This example shows how a BBC micro:bit can be used as an interactive tool for calculating the area of a triangle. The MicroPython code uses the `microbit` module’s `display.scroll()`, `display.show()`, `button_a.is_pressed()`, and `button_b.is_pressed()` APIs to let a user incrementally set a base and height value, then displays the computed area on the device’s LED screen. The rendering approach is the micro:bit’s built-in 5x5 LED matrix, with button inputs serving as the only data source for the calculation.

AI-generated description

Similar vizzes