Author Topic: TMK ADB to USB keyboard converter  (Read 675782 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: ADB to USB keyboard converter
« Reply #500 on: Fri, 18 September 2015, 11:49:25 »

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #501 on: Fri, 18 September 2015, 12:09:11 »
This helps you?
http://deskthority.net/viewtopic.php?t=11569

It appears that it will, I'll look this weekend.

Thanks!

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #502 on: Fri, 18 September 2015, 23:12:20 »
Anybody have a hex code for the firmware with the power button used to switch layers and the number row F keys? I've been staring at the page for a few hours and its like I'm trying to read Greek, I'm so utterly lost. I have no idea how you people do this stuff, it is so confusing to me.

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #503 on: Sat, 19 September 2015, 19:25:15 »
Anybody have a hex code for the firmware with the power button used to switch layers and the number row F keys? I've been staring at the page for a few hours and its like I'm trying to read Greek, I'm so utterly lost. I have no idea how you people do this stuff, it is so confusing to me.

What are you attempting to do?

I have my power button acting as a layer toggle, but I don't understand what you wrote:
Quote
...power button used to switch layers and the number row F keys?


Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #504 on: Sun, 20 September 2015, 00:26:15 »
Anybody have a hex code for the firmware with the power button used to switch layers and the number row F keys? I've been staring at the page for a few hours and its like I'm trying to read Greek, I'm so utterly lost. I have no idea how you people do this stuff, it is so confusing to me.

What are you attempting to do?

I have my power button acting as a layer toggle, but I don't understand what you wrote:
Quote
...power button used to switch layers and the number row F keys?
Yeah, my power button acts currently acts as a power button. What I'm trying to do is have it switch layers to another layer that changes the number row to F1-F12

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #505 on: Sun, 20 September 2015, 10:29:37 »

Anybody have a hex code for the firmware with the power button used to switch layers and the number row F keys? I've been staring at the page for a few hours and its like I'm trying to read Greek, I'm so utterly lost. I have no idea how you people do this stuff, it is so confusing to me.

What are you attempting to do?

I have my power button acting as a layer toggle, but I don't understand what you wrote:
Quote
...power button used to switch layers and the number row F keys?
Yeah, my power button acts currently acts as a power button. What I'm trying to do is have it switch layers to another layer that changes the number row to F1-F12

Oh ok, no problem.

I'll write up what you need when I'm back at my machine.
Easy fix. 

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #506 on: Sun, 20 September 2015, 12:45:44 »

Anybody have a hex code for the firmware with the power button used to switch layers and the number row F keys? I've been staring at the page for a few hours and its like I'm trying to read Greek, I'm so utterly lost. I have no idea how you people do this stuff, it is so confusing to me.

What are you attempting to do?

I have my power button acting as a layer toggle, but I don't understand what you wrote:
Quote
...power button used to switch layers and the number row F keys?
Yeah, my power button acts currently acts as a power button. What I'm trying to do is have it switch layers to another layer that changes the number row to F1-F12

Oh ok, no problem.

I'll write up what you need when I'm back at my machine.
Easy fix.
Really? oh my word thank you so much! You are a life saver! Also, I dont want to ask too much, but is there any way you can keep the Alt Key intact in the layer with the F keys? I need it so I can use shortcuts and stuff

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #507 on: Sun, 20 September 2015, 19:18:14 »
Layout is here (that what you wanted?):
https://github.com/tjweir/octagon_hex/blob/master/mrsquishy/keymap_squishy.c

.hex of above layout:
https://github.com/tjweir/octagon_hex/blob/master/mrsquishy/adb_usb_lufa.hex

Cool?

Edit: Derp, I noticed I swapped GUI and ALT on the layer.  I'll change that now and update.
Edit 2: Fixed.
« Last Edit: Sun, 20 September 2015, 19:28:13 by tjweir »

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #508 on: Sun, 20 September 2015, 19:58:17 »
I don't know if I did that right but whatever I did would cause the keyboard to spit out different characters than what I pressed when I press the magic key and it wont switch back

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #509 on: Sun, 20 September 2015, 20:48:43 »

I don't know if I did that right but whatever I did would cause the keyboard to spit out different characters than what I pressed when I press the magic key and it wont switch back

Can you reflash?

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #510 on: Sun, 20 September 2015, 22:59:47 »

I don't know if I did that right but whatever I did would cause the keyboard to spit out different characters than what I pressed when I press the magic key and it wont switch back

Can you reflash?
Yeah, I went back to my original firmware. I'm going to have my programmer friend look at it tomorrow

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #511 on: Mon, 21 September 2015, 08:50:03 »
How are you flashing?  Using the Teensy Loader?

What characters are getting spit out?

Can you fork my repo and edit the layout, and I'll build the firmware again?

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #512 on: Mon, 21 September 2015, 15:44:53 »
How are you flashing?  Using the Teensy Loader?

What characters are getting spit out?

Can you fork my repo and edit the layout, and I'll build the firmware again?
yeah I'm using teensy loader.
I'm too lazy to figure it out myself, I'll troubleshoot it later.

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #513 on: Thu, 24 September 2015, 08:19:31 »
How are you flashing?  Using the Teensy Loader?

What characters are getting spit out?

Can you fork my repo and edit the layout, and I'll build the firmware again?
yeah I'm using teensy loader.
I'm too lazy to figure it out myself, I'll troubleshoot it later.

Did you get it sorted out?

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #514 on: Thu, 24 September 2015, 16:26:11 »
How are you flashing?  Using the Teensy Loader?

What characters are getting spit out?

Can you fork my repo and edit the layout, and I'll build the firmware again?
yeah I'm using teensy loader.
I'm too lazy to figure it out myself, I'll troubleshoot it later.

Did you get it sorted out?
I haven't had time so no.

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #515 on: Wed, 30 September 2015, 16:20:16 »
Anybody have issues with their m0116's spacebar? Mine keeps getting stuck and it is super annoying.

Offline Hzza

  • Posts: 377
  • Location: Windsor, UK
Re: ADB to USB keyboard converter
« Reply #516 on: Wed, 30 September 2015, 16:39:32 »
Yeah, they're pretty sticky. I took mine off, cleaned and lubed the hole/peg thing and put it back on which helped but it still binds every now and then (though nowhere near as bad as the enter key).

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #517 on: Wed, 30 September 2015, 16:48:25 »
Yeah, they're pretty sticky. I took mine off, cleaned and lubed the hole/peg thing and put it back on which helped but it still binds every now and then (though nowhere near as bad as the enter key).
My issue is that the stabilizer bar comes off the little pegs on the lefthand side and then I have to take it apart to fix it and it's super annoying.

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: ADB to USB keyboard converter
« Reply #518 on: Wed, 30 September 2015, 19:32:33 »
We'd seen poeple suffered from a mouse-going-top-left problem. Some of them had clearly hardware problems like bad connection and wiring but I didn't know exact reason actually.
https://geekhack.org/index.php?topic=14290.msg1754134#msg1754134

But now I finaly got it. You must have a pull-up resistor in the end, mouse function doesn't work without it. If you build firmware without mouse feature it may work without pull-up resistor.

Anyway pull-up resistor is a must-have.

https://github.com/tmk/tmk_keyboard/issues/249

Offline Hzza

  • Posts: 377
  • Location: Windsor, UK
Re: ADB to USB keyboard converter
« Reply #519 on: Thu, 01 October 2015, 03:14:36 »
Yeah, they're pretty sticky. I took mine off, cleaned and lubed the hole/peg thing and put it back on which helped but it still binds every now and then (though nowhere near as bad as the enter key).
My issue is that the stabilizer bar comes off the little pegs on the lefthand side and then I have to take it apart to fix it and it's super annoying.
Oh, maybe try putting a shim between the stabilizer clip in the plate and the stabilizer wire to make it tighter or something? It might be worth taking the spacebar off, the clips out of the plate and trying to reseat everything, I know I had a massive pain getting mine properly in place when I first got it.

Offline DamnDan

  • * Destiny Supporter
  • Posts: 137
  • Location: Poland
  • The Insane One
    • My Deviantart
Re: ADB to USB keyboard converter
« Reply #520 on: Thu, 01 October 2015, 04:12:43 »
Hello All,

Just sharing pinout for M0118, might be useful for people performing internal mod:



and this is my completed road warrior:


Thanks Hasu! :)

Offline Hzza

  • Posts: 377
  • Location: Windsor, UK
Re: ADB to USB keyboard converter
« Reply #521 on: Thu, 01 October 2015, 04:21:45 »
Very nice. I've been on the lookout for an M0118 for ages, we only seem to get M0116's over here though.

Offline DamnDan

  • * Destiny Supporter
  • Posts: 137
  • Location: Poland
  • The Insane One
    • My Deviantart
Re: ADB to USB keyboard converter
« Reply #522 on: Thu, 01 October 2015, 04:34:07 »
Very nice. I've been on the lookout for an M0118 for ages, we only seem to get M0116's over here though.

Heheh, that is quite funny :) Cause I would kill for a M0116 (Poland is using US ANSI, although the typewriters were in ISO QWERTZ).
M0116 has more potential since the right modifier on m0118 is the same as left modifier (one with apple logo).
In Poland we use the right alt for non-latin characters, and having an M0116 you have 5 switches on the right to transform into modifiers if needed :)

But slight mods to the Hasu's converter and I have double right alt on both sides of the space :) Which works.

BTW: Is it normal that the enter on the M0118 gets stuck on it's stabiliser? Shoudn't there be a spring in the stabiliser insert to spring key back up?
Currently that is the only issue I have with M0118...

Offline powaa

  • Posts: 5
  • Location: Western Australia
Re: ADB to USB keyboard converter
« Reply #523 on: Thu, 01 October 2015, 09:37:09 »
Hi!

thanks for the help. My keyboard has been great. however tonight I tried to make the keyboards function buttons as the power key, even following what was said it still doesn't work.

I changed the magic command in config.h :
Code: [Select]
/*
Copyright 2011 Jun Wako <wakojun@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef CONFIG_H
#define CONFIG_H


#define VENDOR_ID       0xFEED
#define PRODUCT_ID      0x0ADB
#define DEVICE_VER      0x0101
#define MANUFACTURER    t.m.k.
#define PRODUCT         Apple
#define DESCRIPTION     M0116 Apple Keyboard

/* matrix size */
#define MATRIX_ROWS 16  // keycode bit: 3-0
#define MATRIX_COLS 8   // keycode bit: 6-4

#define MATRIX_ROW(code)    ((code)>>3&0x0F)
#define MATRIX_COL(code)    ((code)&0x07)


/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE


/* legacy keymap support */
#define USE_LEGACY_KEYMAP


/* ADB port setting */
#define ADB_PORT        PORTD
#define ADB_PIN         PIND
#define ADB_DDR         DDRD
#define ADB_DATA_BIT    0
//#define ADB_PSW_BIT     1       // optional

/* key combination for command */
#ifndef __ASSEMBLER__
#include "adb.h"
#include "matrix.h"
/*#define IS_COMMAND() ( \
    matrix_is_on(MATRIX_ROW(ADB_POWER), MATRIX_COL(ADB_POWER)) \
)
*/

/* key combination for command */
#define IS_COMMAND() ( \
    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)

/*#define IS_COMMAND() ( \
    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) \
)
*/


#endif

#endif

and I disabled it as well in makefile
Code: [Select]
#----------------------------------------------------------------------------
# On command line:
#
# make all = Make software.
#
# make clean = Clean out built project files.
#
# make coff = Convert ELF to AVR COFF.
#
# make extcoff = Convert ELF to AVR Extended COFF.
#
# make program = Download the hex file to the device.
#                Please customize your programmer settings(PROGRAM_CMD)
#
# make teensy = Download the hex file to the device, using teensy_loader_cli.
#               (must have teensy_loader_cli installed).
#
# make dfu = Download the hex file to the device, using dfu-programmer (must
#            have dfu-programmer installed).
#
# make flip = Download the hex file to the device, using Atmel FLIP (must
#             have Atmel FLIP installed).
#
# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
#               (must have dfu-programmer installed).
#
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
#                (must have Atmel FLIP installed).
#
# make debug = Start either simulavr or avarice as specified for debugging,
#              with avr-gdb or avr-insight as the front end for debugging.
#
# make filename.s = Just compile filename.c into the assembler code only.
#
# make filename.i = Create a preprocessed source file for use in submitting
#                   bug reports to the GCC project.
#
# To rebuild project do "make clean" then "make all".
#----------------------------------------------------------------------------

# Target file name (without extension).
TARGET = adb_usb_lufa

# Directory common source filess exist
TMK_DIR = ../../tmk_core

# Directory keyboard dependent files exist
TARGET_DIR = .

# project specific files
SRC = keymap_common.c \
matrix.c \
led.c \
adb.c

ifdef KEYMAP
    SRC := keymap_$(KEYMAP).c $(SRC)
else
    SRC := keymap_ansi.c $(SRC)
endif

CONFIG_H = config.h


# MCU name
#MCU = at90usb1287
MCU = atmega32u4

# Processor frequency.
#     This will define a symbol, F_CPU, in all source code files equal to the
#     processor frequency in Hz. You can then use this symbol in your source code to
#     calculate timings. Do NOT tack on a 'UL' at the end, this will be done
#     automatically to create a 32-bit value in your source code.
#
#     This will be an integer division of F_USB below, as it is sourced by
#     F_USB after it has run through any CPU prescalers. Note that this value
#     does not *change* the processor frequency - it should merely be updated to
#     reflect the processor speed set externally so that the code can use accurate
#     software delays.
F_CPU = 16000000


#
# LUFA specific
#
# Target architecture (see library "Board Types" documentation).
ARCH = AVR8

# Input clock frequency.
#     This will define a symbol, F_USB, in all source code files equal to the
#     input clock frequency (before any prescaling is performed) in Hz. This value may
#     differ from F_CPU if prescaling is used on the latter, and is required as the
#     raw input clock is fed directly to the PLL sections of the AVR for high speed
#     clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
#     at the end, this will be done automatically to create a 32-bit value in your
#     source code.
#
#     If no clock division is performed on the input clock inside the AVR (via the
#     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_USB = $(F_CPU)

# Interrupt driven control endpoint task(+60)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT


# Boot Section Size in *bytes*
#   Teensy halfKay   512
#   Teensy++ halfKay 1024
#   Atmel DFU loader 4096
#   LUFA bootloader  4096
#   USBaspLoader     2048
OPT_DEFS += -DBOOTLOADER_SIZE=4096


# Build Options
#   comment out to disable the options.
#
#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
#MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
#COMMAND_ENABLE = yes    # Commands for debug and configuration
#SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
#ADB_MOUSE_ENABLE = yes

# ADB Mice need acceleration for todays much bigger screens.
OPT_DEFS += -DADB_MOUSE_MAXACC=8


# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax

# Search Path
VPATH += $(TARGET_DIR)
VPATH += $(TMK_DIR)

include $(TMK_DIR)/protocol/lufa.mk
include $(TMK_DIR)/protocol.mk
include $(TMK_DIR)/common.mk
include $(TMK_DIR)/rules.mk

and obviously changed the keymap from the caps key to the power key.
Code: [Select]
#include "keymap_common.h"

const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  /* Default layer : plain keymap IGNORE THE DIAGRAMS, THEY ARE NOT INDICATIVE OF THE KEYBOARD
   *                     +-------+
   *                     | FN1   |
   *                     +-------+
   * +---+---+---+---+---+---+---+---+---+---+---+---+---+-----+ +---+---+---+---+
   * |esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | bks | |clr| = | / | * |
   * +---------------------------------------------------------+ +---+---+---+---+
   * | tab | q | w | e | r | t | y | u | i | o | p | [ | ] |   | | 7 | 8 | 9 | + |
   * +-----------------------------------------------------+   | +---+---+---+---+
   * | caps | a | s | d | f | g | h | j | k | l | ; | ' |return| | 4 | 5 | 6 | - |
   * +---------------------------------------------------------+ +---+---+---+---+
   * | shift  | z | x | c | v | b | n | m | , | . | / |  shift | | 1 | 2 | 3 |   |
   * +---------------------------------------------------------+ +-------+---|ent|
   * |Ctrl|opt|comnd| ` |                   | \ |lef|rig|dwn|up | |   0   | . |   |
   * +---------------------------------------------------------+ +-------+---+---+
   *FROM WHAT I UNDERSTAND FN2 (WHICH IS CURRENTLY SET AS PERIOD ON THE NUMBERPAD) ACTIVATES THE COMMAND I HAVE LABLED AT THE BOTTOM
   */
  [0] = KEYMAP_M0116_ANSI(
    FN2,
    ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC,   DEL, EQL, PSLS,NLCK,
    TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC,       P7,  P8,  P9,  PPLS,
    LCTL, A, S, D, F, G, H, J, K, L, SCLN, QUOT,   ENT,  P4,  P5,  P6,  PMNS,
    LSFT,  Z, X, C, V, B, N, M, COMM,  DOT, SLSH, RSFT,  P1,  P2,  P3,
    CAPS,LGUI,LALT,GRV,   SPC,   BSLS,LEFT,RGHT,DOWN,UP,  P0,       FN1,PENT
  ),
  /* Layer 1 :
   *                     +-------+
   *                     | FN1   |
   *                     +-------+
   * +---+---+---+---+---+---+---+---+---+---+---+---+---+-----+ +---+---+---+---+
   * |Esc|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|     | |   |   |   |Mut|
   * +---------------------------------------------------------+ +---+---+---+---+
   * |     |   |   |   |   |   |   |   |   |   |   |   |   |   | |   |   |   |VoU|
   * +-----------------------------------------------------+   | +---+---+---+---+
   * |      |   |   |   |   |   |   |   |   |   |   |   |      | |   |   |   |VoD|
   * +---------------------------------------------------------+ +---+---+---+---+
   * |      |   |   |   |   |   |   |   |   |   |   |Capslock| |   |   |   |   |
   * +---------------------------------------------------------+ +-------+---|   |
   * |Fn1|   |     |   |                   |   |Hom|End|PgD|PgU| |       |   |   |
   * +---------------------------------------------------------+ +-------+---+---+
   *THIS LAYER IS MEANT TO ACTIVATE WHEN I HIT FN2
   */
   [1] = KEYMAP_M0116_ANSI(
    TRNS,
    ESC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,TRNS,TRNS,   TRNS,                 DEL, HOME, PGUP, MUTE,
    TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,                      INS, END,PGDN, VOLU,
    TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,    TRNS,                  TRNS, UP, TRNS,   VOLD,
    TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,        TRNS,                   LEFT,DOWN,RGHT,
    TRNS,TRNS , TRNS, TRNS,         TRNS,      TRNS, TRNS,TRNS,TRNS,TRNS,                            TRNS,     FN1,    TRNS
  ),
 
    /* Layer 2 :
   *                     +-------+
   *                     | FN1   |
   *                     +-------+
   * +---+---+---+---+---+---+---+---+---+---+---+---+---+-----+ +---+---+---+---+
   * |Esc|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|     | |   |   |   |Mut|
   * +---------------------------------------------------------+ +---+---+---+---+
   * |     |   |   |   |   |   |   |   |   |   |   |   |   |   | |   |   |   |VoU|
   * +-----------------------------------------------------+   | +---+---+---+---+
   * |      |   |   |   |   |   |   |   |   |   |   |   |      | |   |   |   |VoD|
   * +---------------------------------------------------------+ +---+---+---+---+
   * |      |   |   |   |   |   |   |   |   |   |   |Capslock| |   |   |   |   |
   * +---------------------------------------------------------+ +-------+---|   |
   * |Fn1|   |     |   |                   |   |Hom|End|PgD|PgU| |       |   |   |
   * +---------------------------------------------------------+ +-------+---+---+
   */
  [2] = KEYMAP_M0116_ANSI(
    TRNS,
    ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10,F11,F12,          TRNS,                 TRNS, TRNS, TRNS, TRNS,
    TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,      TRNS, TRNS, TRNS, TRNS,
    TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,    TRNS,   TRNS, TRNS, TRNS,   TRNS,
    TRNS,TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,        TRNS,      TRNS,TRNS, TRNS,
    TRNS,TRNS , TRNS, TRNS,         TRNS,      TRNS, TRNS,TRNS,TRNS,TRNS,              TRNS,     TRNS,    TRNS
  ),
};

const uint16_t PROGMEM fn_actions[] = {
    [1] = ACTION_LAYER_TOGGLE(1), /*THIS IS MEANT TO ACTIVATE THE LAYER THAT IS LABELED LAYER 1*/
    [2] = ACTION_LAYER_TAP_KEY(2,1),
};
/*
const uint16_t PROGMEM fn_actions[] = {
ACTION_LAYER_TOGGLE(1), THIS LAYER IS MEANT TO ACTIVATE WHEN I PRESS FN2, WHICH GOES TO LAYER 1 WHICH IS THE SECOND LAYER BECAUSE COMPUTERS COUNT FROM 0
ACTION_LAYER_TAP_KEY(2, KC_CAPS),
};

copied from tufty's keymap
*/

any Ideas? thanks.

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: ADB to USB keyboard converter
« Reply #524 on: Thu, 01 October 2015, 14:32:20 »
TAP_KEY(2,1) is not correct, I'm not sure what you want but you mean TAP_KEY(2, KC_1) ????

Just test with ACTION_LAYER_MOMENTARY(2).

Code: [Select]
const uint16_t PROGMEM fn_actions[] = {
    [1] = ACTION_LAYER_TOGGLE(1), /*THIS IS MEANT TO ACTIVATE THE LAYER THAT IS LABELED LAYER 1*/
    [2] = ACTION_LAYER_TAP_KEY(2,1),
};

Offline powaa

  • Posts: 5
  • Location: Western Australia
Re: ADB to USB keyboard converter
« Reply #525 on: Fri, 02 October 2015, 06:37:35 »
Code: [Select]
const uint16_t PROGMEM fn_actions[] = {
    [1] = ACTION_LAYER_TOGGLE(1), /*THIS IS MEANT TO ACTIVATE THE LAYER THAT IS LABELED LAYER 1*/
    [2] = ACTION_LAYER_TAP_KEY(2,KC_FN1),
};

sorry, this code might make more sense

anyway that isnt the issue. the issue is that the power key doesn't do anything after changing the magic command keys and disabling the magic command.

Offline neex

  • Posts: 14
OS X 10.11
« Reply #526 on: Fri, 02 October 2015, 16:14:35 »
So I upgraded to OS X El Capitan (10.11) today.  My keyboard/converter setup (M0115 w/ Teensy) stopped working... sort of.  It works at the login screen when I startup the computer (I can use it to type my password), but it does not work after logging in.

Any suggestions on how to fix?  Thanks.

Offline tominabox1

  • Posts: 288
Re: OS X 10.11
« Reply #527 on: Fri, 02 October 2015, 16:18:53 »
So I upgraded to OS X El Capitan (10.11) today.  My keyboard/converter setup (M0115 w/ Teensy) stopped working... sort of.  It works at the login screen when I startup the computer (I can use it to type my password), but it does not work after logging in.

Any suggestions on how to fix?  Thanks.

Thats odd. Using the exact same set up and I have not had a problem.  I have been using the 10.11 betas for weeks though so maybe you can just recompile the hex and reset the teensy and all will be well?

Offline neex

  • Posts: 14
Re: OS X 10.11
« Reply #528 on: Fri, 02 October 2015, 16:38:53 »
Thats odd. Using the exact same set up and I have not had a problem.  I have been using the 10.11 betas for weeks though so maybe you can just recompile the hex and reset the teensy and all will be well?

Making progress... My keyboard is usually plugged into a USB HUB.  To make sure there would be no glitches in the upload, I plugged directly into my laptop.  First thing I noticed was that the keyboard was working.

So, the HUB is the issue -- although, it wasn't an issue with OS X 10.10 and it is not an issue at the login screen.  I realize the purpose of this thread isn't about the particular issue I'm having, but I respect the knowledge of the people here and I would really appreciate any quick thoughts or suggestions you might have.

Edit: The ADB keyboard controller is showing up in System Information under USB, even when plugged into the HUB.  Also... I just noticed that, if I plug in the HUB to the computer... OS X opens the Photos app.  Plugging the keyboard into the HUB also opens the photos app.

« Last Edit: Fri, 02 October 2015, 16:57:38 by neex »

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: ADB to USB keyboard converter
« Reply #529 on: Fri, 02 October 2015, 16:49:49 »
powaa,
hmm, OK. I tried Layer change with power button on my M0116, it works as what I expected.
THen I don't know your problem. I think you can solve your problem in the end if you take time enough with patience.

Let us know what your problem was once you can solve it!

This is my change on the latest source` for the test.
Code: [Select]
diff --git a/converter/adb_usb/config.h b/converter/adb_usb/config.h
index 5ce5c22..21c9470 100644
--- a/converter/adb_usb/config.h
+++ b/converter/adb_usb/config.h
@@ -55,9 +55,15 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef __ASSEMBLER__
 #include "adb.h"
 #include "matrix.h"
+/*
 #define IS_COMMAND() ( \
     matrix_is_on(MATRIX_ROW(ADB_POWER), MATRIX_COL(ADB_POWER)) \
 )
+*/
+// NumLock/Clear */
+#define IS_COMMAND() ( \
+    matrix_is_on(MATRIX_ROW(0x47), MATRIX_COL(0x47)) \
+)
 #endif
 
 #endif
diff --git a/converter/adb_usb/keymap_hasu.c b/converter/adb_usb/keymap_hasu.c
index a0b3f1f..5d20963 100644
--- a/converter/adb_usb/keymap_hasu.c
+++ b/converter/adb_usb/keymap_hasu.c
@@ -19,7 +19,7 @@ const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
      * `-----------------------------------------------------------' `-----------' `---------------'
      */
     KEYMAP_EXT_ANSI(
-    ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BRK,                    NO,
+    ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BRK,                    FN0,
     GRV, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,     INS, HOME,PGUP,    NLCK,EQL, PSLS,PAST,
     TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,FN0,      DEL, END, PGDN,    P7,  P8,  P9,  PMNS,
     LCAP,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,                         P4,  P5,  P6,  PPLS,
@@ -44,7 +44,7 @@ const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
      * `-----------------------------------------------------------' `-----------' `---------------'
      */
     KEYMAP_EXT_ANSI(
-    GRV, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BRK,                    NO,
+    GRV, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BRK,                    TRNS,
     ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12, DEL,      INS, HOME,PGUP,    NLCK,BTN1,BTN2,BTN3,
     TAB, Q,   W,   E,   R,   T,   Y,   U,   PSCR,SLCK,PAUS,UP,  INS, FN0,      DEL, END, PGDN,    WH_D,MS_U,WH_U,WH_D,
     LCAP,VOLD,VOLU,MUTE,F,   G,   H,   J,   HOME,PGUP,LEFT,RGHT,     ENT,                         MS_L,MS_D,MS_R,WH_U,

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: ADB to USB keyboard converter
« Reply #530 on: Fri, 02 October 2015, 17:11:36 »
Wierd.
I'll skim source and search any clue later once they place it in public. I guess they changed something on keyboard or USB.
http://www.opensource.apple.com/

Thats odd. Using the exact same set up and I have not had a problem.  I have been using the 10.11 betas for weeks though so maybe you can just recompile the hex and reset the teensy and all will be well?

Making progress... My keyboard is usually plugged into a USB HUB.  To make sure there would be no glitches in the upload, I plugged directly into my laptop.  First thing I noticed was that the keyboard was working.

So, the HUB is the issue -- although, it wasn't an issue with OS X 10.10 and it is not an issue at the login screen.  I realize the purpose of this thread isn't about the particular issue I'm having, but I respect the knowledge of the people here and I would really appreciate any quick thoughts or suggestions you might have.

Edit: The ADB keyboard controller is showing up in System Information under USB, even when plugged into the HUB.  Also... I just noticed that, if I plug in the HUB to the computer... OS X opens the Photos app.  Plugging the keyboard into the HUB also opens the photos app.



Offline neex

  • Posts: 14
Re: ADB to USB keyboard converter
« Reply #531 on: Sat, 03 October 2015, 08:09:56 »
Wierd.
I'll skim source and search any clue later once they place it in public. I guess they changed something on keyboard or USB.
http://www.opensource.apple.com/

Yeah, they definitely changed something.  I just found out that, if I want the computer to crash and force a restart, I only need to tap the caps lock on my M0115 2-3 times.

Google told me that some of the dev builds had some sort of USB issues:

http://www.insanelymac.com/forum/topic/306777-guide-usb-fix-el-capitan-1011/

Not sure what all that means, but, if my experience counts for anything, it seems USB "issues" might still a problem in the public release.

Has anyone else had issues with keyboards/hubs/USB drives/etc.?

Offline tominabox1

  • Posts: 288
Re: ADB to USB keyboard converter
« Reply #532 on: Sat, 03 October 2015, 08:24:51 »
Wierd.
I'll skim source and search any clue later once they place it in public. I guess they changed something on keyboard or USB.
http://www.opensource.apple.com/

Yeah, they definitely changed something.  I just found out that, if I want the computer to crash and force a restart, I only need to tap the caps lock on my M0115 2-3 times.

Google told me that some of the dev builds had some sort of USB issues:

http://www.insanelymac.com/forum/topic/306777-guide-usb-fix-el-capitan-1011/

Not sure what all that means, but, if my experience counts for anything, it seems USB "issues" might still a problem in the public release.

Has anyone else had issues with keyboards/hubs/USB drives/etc.?

Here's my setup - I have my teensy wired up via a cable to the pinout at the ADB header on the daughter card.  Then USB mini cable to an unpowered hub to the Mac Mini.  I have not had any issues with my computer on 10.11 or 10.11.1.  You do have the 1k pullup resistor in place right?   Maybe try to do an EFI/PRAM reset.

Offline RavenII

  • Posts: 191
Re: ADB to USB keyboard converter
« Reply #533 on: Sat, 03 October 2015, 19:02:18 »
Sorry, I thought this was the TMK thread...
« Last Edit: Sat, 03 October 2015, 19:09:49 by RavenII »

Offline neex

  • Posts: 14
Re: ADB to USB keyboard converter
« Reply #534 on: Sun, 04 October 2015, 07:55:43 »
Here's my setup - I have my teensy wired up via a cable to the pinout at the ADB header on the daughter card.  Then USB mini cable to an unpowered hub to the Mac Mini.  I have not had any issues with my computer on 10.11 or 10.11.1.  You do have the 1k pullup resistor in place right?   Maybe try to do an EFI/PRAM reset.

Good to know yours is working.  I have the resistor wired properly!  Only 2 differences here: (1) I'm not running 10.11.1 yet (but yours works with 10.11, so that shouldn't matter), and (2) My hub is powered--it's a 7-port Inateck brand.  I don't have another hub laying around but I'll try to borrow one from work tomorrow just to eliminate the HUB as the problem.  Thanks!

Offline superbia

  • Posts: 133
  • Location: Republique de Croatie
Re: ADB to USB keyboard converter
« Reply #535 on: Fri, 09 October 2015, 06:37:07 »
Hi.. this may be of some help for AEKII users (atleast the azerty owners)

The two highlighted keys in the layout are actually swapped, but you can go around it like i did.


LAYOUT
More
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    KEYMAP_EXT_ISO(
    ESC,    F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,PAUS,                   NO,
    Z,      1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,     INS, HOME,PGUP,    NLCK,PEQL,PSLS,PAST,
    TAB,    Q,   W,   F,   P,   B,   J,   L,   U,   Y,   SCLN,LBRC,RBRC,ENT,      DEL, END, PGDN,    P7,  P8,  P9,  PMNS,
    LCTL,   A,   R,   S,   T,   G,   M,   N,   E,   I,   O,     QUOT,NUHS,                             P4,  P5,  P6,  PPLS,
    LSFT,   GRV, X,   C,   D,   V,   NO,  K,   H,   COMM,DOT, SLSH,     RSFT,          UP,           P1,  P2,  P3,
    CAPS,   LGUI,LALT,          SPC,                               RCTL,RALT,     LEFT,DOWN,RGHT,    P0,       PDOT,PENT
    ),
};

edit: dont mind other keys, im using colemak
« Last Edit: Fri, 09 October 2015, 06:39:44 by superbia »
Keebio Iris 2.8 (Alps) X Colemak Mod-DH

Offline Hzza

  • Posts: 377
  • Location: Windsor, UK
Re: ADB to USB keyboard converter
« Reply #536 on: Fri, 09 October 2015, 07:37:47 »
This is mentioned in one of the docs, the ADB scancode is different for those keys in ISO and ANSI (comments at the bottom of the page). It's good to point it out though, it took me a while to figure out what was going on :D.

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #537 on: Fri, 09 October 2015, 12:36:00 »
Would anyone with an Apple Adjustable Keyboard (this one: http://sandy55.fc2web.com/keyboard/adjustable/front_m.jpg) help me out and add their layout here please?
I'd rather start from a good keymap.

Thanks!

Offline superbia

  • Posts: 133
  • Location: Republique de Croatie
Re: ADB to USB keyboard converter
« Reply #538 on: Fri, 09 October 2015, 13:07:46 »
Would anyone with an Apple Adjustable Keyboard (this one: http://sandy55.fc2web.com/keyboard/adjustable/front_m.jpg) help me out and add their layout here please?
I'd rather start from a good keymap.

Thanks!

wow, nice keyboard :)

You can try the layout hasu provides.
You will quickly figure if everything works (or something needs to be switched).

Its really easy... If you made a controller yourself, you will fix all eventual problems that might come.
Keebio Iris 2.8 (Alps) X Colemak Mod-DH

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #539 on: Fri, 09 October 2015, 13:11:08 »
Would anyone with an Apple Adjustable Keyboard (this one: http://sandy55.fc2web.com/keyboard/adjustable/front_m.jpg) help me out and add their layout here please?
I'd rather start from a good keymap.

Thanks!

wow, nice keyboard :)

You can try the layout hasu provides.
You will quickly figure if everything works (or something needs to be switched).

Its really easy... If you made a controller yourself, you will fix all eventual problems that might come.

Yes, I know I can do it myself, but if someone had already done it and I could simply copy it, I'd appreciate it. :)

Offline superbia

  • Posts: 133
  • Location: Republique de Croatie
Re: ADB to USB keyboard converter
« Reply #540 on: Fri, 09 October 2015, 14:09:47 »
Would anyone with an Apple Adjustable Keyboard (this one: http://sandy55.fc2web.com/keyboard/adjustable/front_m.jpg) help me out and add their layout here please?
I'd rather start from a good keymap.

Thanks!

wow, nice keyboard :)

You can try the layout hasu provides.
You will quickly figure if everything works (or something needs to be switched).

Its really easy... If you made a controller yourself, you will fix all eventual problems that might come.

Yes, I know I can do it myself, but if someone had already done it and I could simply copy it, I'd appreciate it. :)

Its just opening a default keymap file with notepad and swaping letters (the file has 30 lines of "code") ...

Afterwards you make & flash it.. if you want, you can take a look at a post i wrote here previously (where i described the steps i made to get mines working).
« Last Edit: Fri, 09 October 2015, 14:11:27 by superbia »
Keebio Iris 2.8 (Alps) X Colemak Mod-DH

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #541 on: Fri, 09 October 2015, 14:31:34 »
Its just opening a default keymap file with notepad and swaping letters (the file has 30 lines of "code") ...

Afterwards you make & flash it.. if you want, you can take a look at a post i wrote here previously (where i described the steps i made to get mines working).

Ok, maybe I'm not being clear.
I know what to do, and how to do it and I have done it for my AEKIIs, my Octagons and Viper (sold it before I finished), so that's not the issue.

All I was looking for was someone to paste in their existing layout.c for an AAK so I could copy it.
Please don't take any of your time on my behalf.

Offline neex

  • Posts: 14
Re: ADB to USB keyboard converter
« Reply #542 on: Fri, 09 October 2015, 16:25:22 »
Here's my setup - I have my teensy wired up via a cable to the pinout at the ADB header on the daughter card.  Then USB mini cable to an unpowered hub to the Mac Mini.  I have not had any issues with my computer on 10.11 or 10.11.1.  You do have the 1k pullup resistor in place right?   Maybe try to do an EFI/PRAM reset.

Good to know yours is working.  I have the resistor wired properly!  Only 2 differences here: (1) I'm not running 10.11.1 yet (but yours works with 10.11, so that shouldn't matter), and (2) My hub is powered--it's a 7-port Inateck brand.  I don't have another hub laying around but I'll try to borrow one from work tomorrow just to eliminate the HUB as the problem.  Thanks!

I finally got a chance to try a different hub (powered Anker brand).  Still not working.  Very frustrating.  Again, the keyboard is not working when I am logged in and using a hub (computer-->hub-->teensy-->kb).  It always works fine when plugged directly into my laptop.  It also works if I'm at the login screen after a restart (but not after logging in).  Like I said, it always worked under OS X 10.10, just started having this problem after upgrading to 10.11)...

Offline superbia

  • Posts: 133
  • Location: Republique de Croatie
Re: ADB to USB keyboard converter
« Reply #543 on: Fri, 09 October 2015, 17:37:20 »
Here's my setup - I have my teensy wired up via a cable to the pinout at the ADB header on the daughter card.  Then USB mini cable to an unpowered hub to the Mac Mini.  I have not had any issues with my computer on 10.11 or 10.11.1.  You do have the 1k pullup resistor in place right?   Maybe try to do an EFI/PRAM reset.

Good to know yours is working.  I have the resistor wired properly!  Only 2 differences here: (1) I'm not running 10.11.1 yet (but yours works with 10.11, so that shouldn't matter), and (2) My hub is powered--it's a 7-port Inateck brand.  I don't have another hub laying around but I'll try to borrow one from work tomorrow just to eliminate the HUB as the problem.  Thanks!

I finally got a chance to try a different hub (powered Anker brand).  Still not working.  Very frustrating.  Again, the keyboard is not working when I am logged in and using a hub (computer-->hub-->teensy-->kb).  It always works fine when plugged directly into my laptop.  It also works if I'm at the login screen after a restart (but not after logging in).  Like I said, it always worked under OS X 10.10, just started having this problem after upgrading to 10.11)...

Probably some security rules to "prevent bad hardware" to pwn your machine ?
Keebio Iris 2.8 (Alps) X Colemak Mod-DH

Offline mr.squishy

  • Posts: 215
  • I like beer and keebs
Re: ADB to USB keyboard converter
« Reply #544 on: Fri, 09 October 2015, 19:45:25 »
Here's my setup - I have my teensy wired up via a cable to the pinout at the ADB header on the daughter card.  Then USB mini cable to an unpowered hub to the Mac Mini.  I have not had any issues with my computer on 10.11 or 10.11.1.  You do have the 1k pullup resistor in place right?   Maybe try to do an EFI/PRAM reset.

Good to know yours is working.  I have the resistor wired properly!  Only 2 differences here: (1) I'm not running 10.11.1 yet (but yours works with 10.11, so that shouldn't matter), and (2) My hub is powered--it's a 7-port Inateck brand.  I don't have another hub laying around but I'll try to borrow one from work tomorrow just to eliminate the HUB as the problem.  Thanks!

I finally got a chance to try a different hub (powered Anker brand).  Still not working.  Very frustrating.  Again, the keyboard is not working when I am logged in and using a hub (computer-->hub-->teensy-->kb).  It always works fine when plugged directly into my laptop.  It also works if I'm at the login screen after a restart (but not after logging in).  Like I said, it always worked under OS X 10.10, just started having this problem after upgrading to 10.11)...

Probably some security rules to "prevent bad hardware" to pwn your machine ?
I've looked at your problem and after assessing everything you have said, I have realized what your problem is:
Apple sucks.

Offline Toorop

  • Posts: 2
  • Location: France
Re: ADB to USB keyboard converter
« Reply #545 on: Wed, 11 November 2015, 03:06:15 »
Hi everyone,

First thanks for your works :thumb:
Second: excuse my poor english and my lack of knowledge, i try to do my best but when you are noob... you are noob.

That's said, i've found a M0118 azerty iso, it working perfectly (i'm typing with it currently) except that i do not find how to do a @ (for those asking themselves: "but wait you just have done it so you can ?!" i've just done a copy/paste ;))

Thanks for your help

Offline Blaise170

  • * Esteemed Elder
  • Posts: 1332
  • Location: Boston, MA
  • ALPS キーボード
    • XYZ
Re: ADB to USB keyboard converter
« Reply #546 on: Wed, 11 November 2015, 20:00:28 »
Hi everyone,

First thanks for your works :thumb:
Second: excuse my poor english and my lack of knowledge, i try to do my best but when you are noob... you are noob.

That's said, i've found a M0118 azerty iso, it working perfectly (i'm typing with it currently) except that i do not find how to do a @ (for those asking themselves: "but wait you just have done it so you can ?!" i've just done a copy/paste ;))

Thanks for your help

Mauvais! Have you checked the layout to make sure it is proper for your M0118?
I proxy anything including keyboards (キーボード / 鍵盤), from both Japan (日本) and China (中國). For more information, you may visit my dedicated webpage here: https://www.keyboards.es/proxying.html

View my current and past keyboards here: https://deskthority.net/wiki/User:Blaise170

Offline yomammary

  • Posts: 525
  • Location: Québec
Re: ADB to USB keyboard converter
« Reply #547 on: Fri, 13 November 2015, 10:53:09 »
Does anyone have one that he could sell me or will I have to make one? :'(
RF 87u 55g | Leeku 1800

Offline Toorop

  • Posts: 2
  • Location: France
Re: ADB to USB keyboard converter
« Reply #548 on: Sun, 15 November 2015, 03:43:17 »
Mauvais! Have you checked the layout to make sure it is proper for your M0118?

The main problem is that the m0118 azerty doesn't have the "`" key (which is normally, on modern mac kb, on the upper left or at the left of spacebar on older kb) and which is used on mac layout for the "@".



An easy workaround is to switch from "mac layout" to 'pc layout" on the MacOs control panel and use "alt + 0".
When i'll be more familiar with tmk fw, i'll probably add another layout with Fn functions && a direct @ access.

Thanks ;)

Offline tjweir

  • * Exquisite Elder
  • Posts: 1039
  • Location: Toronto
Re: ADB to USB keyboard converter
« Reply #549 on: Sun, 15 November 2015, 06:01:15 »
Does anyone have one that he could sell me or will I have to make one? :'(

There's this: https://geekhack.org/index.php?topic=75213.msg1864261#msg1864261

Unsure of it's current state.

I cut an ADB cable so I had a connector and about 2inches of internal wires.  I then stripped those and soldered them and the 1K resistor to the teensy.
It's only three solder locations, give it a shot. :)