mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-19 22:23:58 +00:00
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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user