ICOMP-UNC / Bit-Masters

MIT License
0 stars 0 forks source link

[FEATURE][#2] Show temperature in display #13

Closed sofiavalos closed 2 weeks ago

sofiavalos commented 2 weeks ago

Dependencies

This change depends on configuring GPIO pins for controlling the 7-segment displays and setting up interrupts to periodically update the display.

What?

The code configures two GPIO ports for controlling the two 7-segment displays. It reads the temperature from a sensor, processes the temperature into tens and units digits, and displays them on the 7-segment displays. An interrupt periodically triggers updates to the display to reflect the current temperature.

Why?

GPIO pins are configured for output to control the 7-segment displays, which show the temperature values. The interrupt is used to periodically refresh the displays without blocking the main program flow, allowing for smooth and consistent updates.

How?

  1. GPIO Configuration: Two GPIO ports are set up for output to drive the 7-segment displays.
  2. Temperature Read: The temperature is read from a sensor (you can use a simple function to simulate this).
  3. Interrupt Configuration: An interrupt is configured to periodically trigger a function to update the display.