From d3eabc9c015dc02b6044b491cd04dde66d40a0ac Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Wed, 28 Mar 2012 18:35:26 -0400 Subject: eliminated Keyboard.type() - unnecessary duplication of Keyboard.write() (David Mellis). Also edit KeyboardReprogram example which was the only example using type() --- cores/arduino/HID.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cores/arduino/HID.cpp') diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index b556223..dfcbd9d 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -591,8 +591,7 @@ void Keyboard_::releaseAll(void) sendReport(&_keyReport); } -// type() does a press and release of the specified key. -size_t Keyboard_::type(uint8_t c) +size_t Keyboard_::write(uint8_t c) { uint8_t p = press(c); // Keydown uint8_t r = release(c); // Keyup -- cgit v1.2.3-18-g5258