Jump to content

Tian Dan

Active Members
  • Content Count

    5
  • Joined

  • Last visited

About Tian Dan

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for that, Paul. But already I'm running into the next road block. For some reason the "println"-functionality doesn't work in my arduino environment. It does print out the letters and numbers but it doesn't do the line break at the end. Several "println"-commands one after the other just produce continuous textflow without line breaks. My first guess is that the println-function contains some kind of appended Enter-Keypress-thingy that also doesn't work with german keyboards. Could that be?
  2. Couldn't stop myself and ran the test in cat-on-keyboard-mode. Did this void setup () { delay(2500); Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.set_key1(KEY_R); Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); delay(1500); Keyboard.print("notepad.exe"); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); delay(2000); Keyboard.print("testing german keyboard layout"); Keyboard.send_now(); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0);
  3. Works great. Tried the alpha version and get the characters I want in Linux (Ubuntu 10.04 german) as well as in Windows (7). Did this void setup () { delay(2500); Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.set_key1(KEY_R); Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); delay(1500); Keyboard.print("notepad.exe"); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); delay(2000); Keyboard.print("testing german keyboard layout"); Keyboard.send_now(); Keyboard.set_key
  4. Sorry for the late reply, hope it's still of use. Output of your code is the following: 5b6c7d8e9f10g11h12i13j14k15l16m17n18o19p20q21r22s23t24u25v26w27x28z29y3013123233 3434535636737838939040 41443 44 45ß46´47ü48+49#50#51ö52ä53^54,55.56-57%( After that the Windows Help opened (I suppose the Teensy send an F1-keystroke). In it's input line the following was entered: %)&=&!&"&§ Somewhere inbetween the Caps Lock key was switched on, I suspected after 57, so I changed the code and tested that and yes Keyboard.set_key1(57); Keyboard.send_no
  5. A "Keyboard Layout"-Option would be great. Or maybe you could let the user specify which keycodes to send. That way we could map the key codes to the actual output ourselves. Instead of keyboard.set_key1(KEY_A) we could do keyboard.set_key1(HIDCODE). Being a total programming newbie I don't even know if that's possible or if I'm making sense at all, but hey... Anyways, I tried to the map the keystrokes send by the Teensy to the keystrokes defined in the Arduino-Code myself and this is what I came up with: void setup() { delay(5000); Keyboard.set_modifier(128); Keyboard.set_key1
×
×
  • Create New...