Browse Source

Fix debug pirnt and magic key.(M0110)

led_matrix
tmk 11 years ago
parent
commit
07b6c1a58c
4 changed files with 5 additions and 11 deletions
  1. 1
    1
      converter/m0110_usb/README.md
  2. 3
    2
      converter/m0110_usb/config.h
  3. 0
    7
      converter/m0110_usb/matrix.c
  4. 1
    1
      protocol/m0110.c

+ 1
- 1
converter/m0110_usb/README.md View File

@@ -28,7 +28,7 @@ In this pic:
3. `DATA`(Green)
4. `+5V`(Yellow)

Not that wire colors may vary in your cable.
Note that wire colors may vary in your cable.


### Pinout

+ 3
- 2
converter/m0110_usb/config.h View File

@@ -36,9 +36,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking Caps Lock support */
//#define MATRIX_HAS_LOCKING_CAPS

/* key combination for command */
/* Backspace for command key */
#define BACKSPACE_CODE 0x33
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_LGUI)) \
matrix_is_on((BACKSPACE_CODE>>3)&0x0F, BACKSPACE_CODE&0x07) \
)



+ 0
- 7
converter/m0110_usb/matrix.c View File

@@ -60,13 +60,6 @@ uint8_t matrix_cols(void)

void matrix_init(void)
{
print_enable = true;
debug_enable = true;
debug_matrix = false;
debug_keyboard = false;
debug_mouse = false;
print("debug enabled.\n");

m0110_init();
// initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;

+ 1
- 1
protocol/m0110.c View File

@@ -321,7 +321,7 @@ static inline uint8_t instant(void)
m0110_send(M0110_INSTANT);
uint8_t data = m0110_recv();
if (data != M0110_NULL) {
phex(data); print(" ");
debug_hex(data); debug(" ");
}
return data;
}