Go to file
bwhelm fa71c4c91e Fix battery level code in adafruit_ble.cpp (#6648)
* Fix battery level code in adafruit_ble.cpp

The code in tsk_core/protocol/lufa/adafluit_ble.cpp that polls the
battery level for the Adafruit feather BLE controller reads the
regulated voltage, not the raw voltage coming from the battery. To do
that, the Adafruit Feather docs say you should read from pin A9:
https://learn.adafruit.com/adafruit-feather-32u4-basic-proto/power-management#measuring-battery-4-9.
(See also
https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/pinouts#logic-pins-2-9.)

I'm not sure why, but analogRead(9); doesn't read the correct pin.
Checking all available analog pins experimentally, it turns out that
analogRead(7); returns the correct value. So the code above should read:

    state.vbat = analogRead(7);

* Update tmk_core/protocol/lufa/adafruit_ble.cpp

Co-Authored-By: Drashna Jaelre <drashna@live.com>

* Remove old comment

* Fix linking error

* Remove `#ifdef` around `#include analog.h`.

* Really fix linking error
2019-09-04 04:29:23 +10:00
.github
.vscode
bin
docs [Docs] Update i2c_driver.md (#6665) 2019-09-03 10:09:58 -07:00
drivers Fix battery level code in adafruit_ble.cpp (#6648) 2019-09-04 04:29:23 +10:00
keyboards [Keyboard] Doro67 cleanup (#6514) 2019-09-03 09:05:29 -07:00
layouts
lib
quantum Add Dip Switch as a core feature (#6140) 2019-09-03 08:34:31 -07:00
tests
tmk_core Fix battery level code in adafruit_ble.cpp (#6648) 2019-09-04 04:29:23 +10:00
users [Keymap] Update personal userspace and keymaps (#6654) 2019-09-03 08:42:05 -07:00
util Add `dfu-programmer` to `pacman -S` (#6619) 2019-09-02 07:32:14 -07:00
.clang-format
.clang_complete
.editorconfig
.gitattributes
.gitignore
.gitmodules
.travis.yml Always run `util/travis_compiled_push.sh` (#6640) 2019-09-01 09:09:19 -07:00
CODE_OF_CONDUCT.md
Dockerfile
Doxyfile
LICENSE
Makefile Update submodule check to include LUFA (#6661) 2019-09-03 17:56:02 +10:00
Vagrantfile
autocomplete.sh
book.json
bootloader.mk
build_full_test.mk
build_json.mk
build_keyboard.mk
build_layout.mk
build_test.mk
common.mk
common_features.mk Add Dip Switch as a core feature (#6140) 2019-09-03 08:34:31 -07:00
doxygen-todo
license_GPLv2.md
license_GPLv3.md
license_Modified_BSD.md
message.mk
readme.md
requirements.txt
secrets.tar.enc
setup.cfg
shell.nix
show_options.mk Add Dip Switch as a core feature (#6140) 2019-09-03 08:34:31 -07:00
testlist.mk

readme.md

Quantum Mechanical Keyboard Firmware

Current Version Build Status Discord Docs Status GitHub contributors GitHub forks

This is a keyboard firmware based on the tmk_keyboard firmware with some useful features for Atmel AVR and ARM controllers, and more specifically, the OLKB product line, the ErgoDox EZ keyboard, and the Clueboard product line.

Documentation

The docs are hosted on Gitbook and GitHub (they are synced). You can request changes by making a fork and pull request, or by clicking the "suggest an edit" link on any page of the docs.

Supported Keyboards

The project also includes community support for lots of other keyboards.

Maintainers

QMK is developed and maintained by Jack Humbert of OLKB with contributions from the community, and of course, Hasu. The OLKB product firmwares are maintained by Jack Humbert, the Ergodox EZ by ZSA Technology Labs, the Clueboard by Zach White, and the Atreus by Phil Hagelberg.

Official Website

qmk.fm is the official website of QMK, where you can find links to this page, the documentation, and the keyboards supported by QMK.