oss-slu / Pi4Micronaut

A java library combining Micronaut and Pi4j to streamline hardware connectivity to Raspberry Pi's
https://oss-slu.github.io/Pi4Micronaut/
Apache License 2.0
7 stars 6 forks source link

4 Digit 7 Segment Display #44

Open GreihMurray opened 1 year ago

GreihMurray commented 1 year ago

Given: A four-digit seven-segment display is connected to the Raspberry Pi.

When: Data is sent to the display.

Then: The display shows the appropriate four-digit numeric or character values based on the input.

Component Functionality: This component will allow the Pi4Micronaut project to display multi-digit numbers (e.g., clock, counters) on a four-digit seven-segment display for advanced monitoring and control purposes.

Developer Notes:

  1. Draw the circuit setup for hardware connections: Show how the four-digit display connects to GPIO pins, including common anode/cathode configurations.
  2. Develop functionality to control the display: Create a FourDigitSevenSegmentDisplayHelper.java class to manage individual digits and segments.
  3. Implement methods to display multi-digit numbers: Support numbers (0000-9999) and basic character representation.
  4. Handle multiplexing: Implement the timing logic to control all four digits using multiplexing.
  5. Configure GPIO pins appropriately: Ensure compatibility with common four-digit seven-segment displays.
  6. Create an example controller in componets folder to clearly demonstate the working of helper class.
  7. Create a YAML configuration file for display settings: Add fields like name, address, commonType, provider.
  8. Provide code comments for each function for future documentation.

Acceptance Criteria:

yrlmanoharreddy commented 1 week ago

Below are the @GreihMurray comments

May be an SPI component, may be I2C, may be DigitalOutput, answer is unclear. Unfortunately CrowPi does not have support for this component so code will have to be handled manually