mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 12:04:03 +00:00
machine/usb: add back New() with deprecation comment to use Port() instead
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -63,6 +63,12 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
// New returns the USB hid-keyboard port.
|
||||
// Deprecated, better to just use Port()
|
||||
func New() *keyboard {
|
||||
return Port()
|
||||
}
|
||||
|
||||
// Port returns the USB hid-keyboard port.
|
||||
func Port() *keyboard {
|
||||
return Keyboard
|
||||
|
||||
Reference in New Issue
Block a user