Add brightness level API to OLED driver (#10772)

* Add brightness level API to OLED driver

* Set default brightness to 255
This commit is contained in:
Ryan
2020-10-29 18:12:50 +11:00
committed by Drashna Jael're
parent 0928d03213
commit 7812b1df57
4 changed files with 26 additions and 27 deletions
@@ -1,23 +0,0 @@
#include QMK_KEYBOARD_H
#include "audio.h"
/* THIS FILE WAS GENERATED AND IS EXPERIMENTAL!
*
* This file was generated by qmk-compile-json. You may or may not want to
* edit it directly.
*/
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(KC_ENTER)
};
void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) {
if (clockwise) {
tap_code(KC_UP);
} else {
tap_code(KC_DOWN);
}
}
};
@@ -1,3 +0,0 @@
{
"documentation": "This file is a keymap.json file for handwired/onekey/pytest"
}