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
8 stars 7 forks source link

4 Digit 7 Segment Display #289

Closed leandrumartin closed 2 weeks ago

leandrumartin commented 2 weeks ago

Resolves #44. Added controller and helper for a 4-digit 7-segment display.

The pin configuration uses seven digital output pins, one for each digit and three for the mechanics of setting the display. The controller has methods for enabling/disabling, printing a value, setting the value of a specific digit, enabling/disabling specific decimal points on the display, and clearing the display.

The helper class can parse values passed into the print function into appropriate characters to display on each of the digits on the display. It also validates specific characters to display.

There is a test class for all public helper methods. All tests pass.

Documentation is also included in an AsciiDoc file describing the component, assembly, troubleshooting, and examples.