restructure converters (#1825)

* restructure converters

each converter is its own keyboard and different hardware variants are different subprojects.

remove (seemingly) old method of loading layouts from main Makefile

* call led_set_kb() from overridden led_set()

* put converter back into one folder

* revert some structure changes to bring in line with #1784.

Also attempt to get the BLE thing more properly integrated.
Also also fix led_set() to call led_set_kb().
This commit is contained in:
Balz Guenat
2017-11-08 17:11:44 +01:00
committed by Jack Humbert
parent aee6785476
commit 3b5381d689
20 changed files with 86 additions and 45 deletions

View File

@@ -0,0 +1,30 @@
QMK BLE Adapter
===============
A small device that reads USB keyboard input and passes it on over Bluetooth LE HID.
![Picture of Adapter](https://i.imgur.com/O3VwBBJ.png)
Hardware
--------
The hardware is relatively easy to assemble. Just follow the schematic and don't forget to [cut the VBUS jumper](https://www.pjrc.com/teensy/td_libs_USBHostShield_4a.jpg).
Schematic:
![Schematic](https://i.imgur.com/s1Ia9We.png)
Part list:
* [Adafruit Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829)
* [USB Host Mini](https://www.circuitsathome.com/arduino_usb_host_shield_projects/)
* [Pololu 5V Step-Up Voltage Regulator U3V12F5](https://www.pololu.com/product/2115)
* [Lithium Ion Battery - 3.7v 2000mAh](https://www.adafruit.com/product/2011)
* Some sort of switch to be able to turn it off
Building and Flashing
---------------------
```
make converter-usb_usb-ble
```
```
make converter-usb_usb-ble-avrdude
```

View File

@@ -0,0 +1 @@
#include "ble.h"

View File

@@ -0,0 +1,6 @@
#ifndef BLE_H
#define BLE_H
#include QMK_KEYBOARD_H
#endif

View File

@@ -0,0 +1,13 @@
#ifndef CONFIG_BLE_H
#define CONFIG_BLE_H
#undef PRODUCT
#define PRODUCT QMK BLE Adapter
#undef DESCRIPTION
#define DESCRIPTION
// Turn off the mode leds on the BLE module
#define ADAFRUIT_BLE_ENABLE_MODE_LEDS 0
#define ADAFRUIT_BLE_ENABLE_POWER_LED 0
#endif

View File

@@ -0,0 +1,4 @@
BLUETOOTH = AdafruitBLE
ADAFRUIT_BLE_ENABLE = yes
OPT_DEFS += -DCATERINA_BOOTLOADER
F_CPU = 8000000