From e4930f866d41baa7e8ac615f22dc3e92ec0f1c5a Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 20 Dec 2011 17:00:19 -0500 Subject: changed Keyboard write() method to type(). Made write() an alias for type() to allow subclassing by Stream. --- cores/arduino/HID.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cores/arduino/HID.cpp') diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index 8ed1566..d69522f 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -407,6 +407,11 @@ const uint8_t _asciimap[128] = uint8_t USBPutChar(uint8_t c); size_t Keyboard_::write(uint8_t c) +{ + type(c); +} + +size_t Keyboard_::type(uint8_t c) { // Keydown { -- cgit v1.2.3-18-g5258