scottywei / bioi-g60ble

A Bluetooth/USB Duo-Mode Keybaord PCB.
GNU General Public License v3.0
31 stars 4 forks source link

Bluetooth in QMK? #17

Open codeandr3w opened 2 years ago

codeandr3w commented 2 years ago

Hi, I really like this PCB, well done!

I'm wanting to add some customizations in QMK. If I build the G60BLE firmware from source in QMK, it doesn't support Bluetooth, but if I use your pre-built firmware with VIA, it does support Bluetooth. Is there source code where I can customize the QMK code myself and still get Bluetooth support?

Thanks!

andtari commented 2 years ago

Did you get that resolved? I managed to get QMK+bluetooth working by using code from scottywei's original github pull request 9602 where there are still includes to ble.h code. Also remember to use his version bioi/g60 not bioi/g60ble that is someone else version without bluetooth support.

codeandr3w commented 2 years ago

Oh that's really helpful, thank you. I will try that

andrewrichards commented 1 year ago

Sorry for the slow response, it took me a while before I could try this out. It worked great. I was using the wrong repo like you said and now I can make all the modifications I want. Thank you this was really helpful

ltpquang commented 1 year ago

@andtari 's comment hints me a bit, I take this code snippet from g60/rules.mk and put into g60ble/rules.mk at the same position. Then everything just works.

SRC += usart.c \
       ble.c \
       main.c

OPT_DEFS += -DPROTOCOL_BLE
OPT_DEFS += -DUART_RX1_BUFFER_SIZE=16 -DUART_TX1_BUFFER_SIZE=16
OPT_DEFS += -DUSART1_ENABLED
will-hedges commented 1 year ago

If anyone is still following this thread, I recently merged a PR updating the master QMK branch with this code https://github.com/qmk/qmk_firmware/pull/21120

Thanks @ltpquang for the hint