shifter: simplify API surface for PyBadge (#137)

* shifter: simplify API surface and use build directive to directly match the PyBadge

Signed-off-by: Ron Evans <ron@hybridgroup.com>

* shifter: further simplify API for PyBadge

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2020-03-06 06:29:30 +00:00
committed by GitHub
parent 583e80026a
commit 41c6e3be0b
3 changed files with 44 additions and 23 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ type ShiftPin struct {
pressed bool
}
// New returns a new thermistor driver given an ADC pin.
// New returns a new shifter driver given the correct pins.
func New(numBits NumberBit, latch, clk, out machine.Pin) Device {
return Device{
latch: latch,