Author Topic: I want to make a GH60 with adafruit Bluefruit mod  (Read 1579 times)

0 Members and 1 Guest are viewing this topic.

Offline soslhg

  • Thread Starter
  • Posts: 1
  • Location: China
I want to make a GH60 with adafruit Bluefruit mod
« on: Tue, 18 October 2016, 00:24:55 »
plan:
1,GH60
2,BT mod   ----adafruit Bluefruit  mod
3,led   ------ws2812


problem:
1,How to use the core TMK Library?
2,I checked a lot of information.i found a project  https://github.com/bgould/arduino-tmk-keyboard/
 write by C++,   The project is changed protocol PS2 to  Bluefruit EZ-Key HID.
The author changed makefile compile to  ARDUINO IDE .
Code: [Select]
#include "config.h"
#include <KeyboardFirmware.h>

BluefruitHost host;
PS2MatrixCodeset3 matrix;
static uint16_t reset_press_time = 0;

void setup() {

    pinMode(KEY_LED_PIN, INPUT);
    pinMode(PAIR_LED_PIN, INPUT);
    pinMode(PAIR_BUTTON_PIN, OUTPUT);
    pinMode(RESET_BUTTON_PIN, OUTPUT);
    pinMode(DEBUGGING_LED, OUTPUT);

    digitalWrite(PAIR_BUTTON_PIN, LOW);            // write high for 5 seconds to reset pairing
    digitalWrite(RESET_BUTTON_PIN, LOW);           // pull low to reset the bluefruit module
    digitalWrite(OUTPUT_LED_PIN, OUTPUT_LED_OFF);

#if DEBUG_ENABLE   
    debug_enable = true;

How can I change it, let it be my plan?