mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-10 09:53:42 +00:00
Replace Safe functions with legacy.PinOutput
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ type Device struct {
|
||||
// New returns a new buzzer driver given which pin to use
|
||||
func New(pin drivers.PinOutput) Device {
|
||||
return Device{
|
||||
set: drivers.SafePinOutput(pin).Set,
|
||||
set: pin.Set,
|
||||
High: false,
|
||||
BPM: 96.0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user