SimpleGPIO icon indicating copy to clipboard operation
SimpleGPIO copied to clipboard

Add register-backed components

Open SteveDesmond-ca opened this issue 7 years ago • 0 comments

#2 provides components where all pins are directly mapped to inputs on the component. To reduce wiring to the device for some components, shift registers can be used.

  • [ ] 7-segment display
  • [ ] LED matrix

This could be done as a distinct class from the direct one, abstracting a common base class with 2 implementation, or perhaps use a strategy pattern to call an internal implementation. Regardless, the public API should be consistent between both.

SteveDesmond-ca avatar Aug 17 '18 17:08 SteveDesmond-ca