diff options
author | toinux <toinux@gmail.com> | 2022-04-22 09:41:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 17:41:54 +1000 |
commit | d8b9796a32b9e7105e0af485d697886f230c094f (patch) | |
tree | 04af6e259035b0fad3da2ce2e43a292ea67c146f /keyboards/crkbd/keymaps/toinux/oled.h | |
parent | 97b861d104a006619d4563c4fc6cbe7acc3e3fe2 (diff) | |
download | qmk_firmware-d8b9796a32b9e7105e0af485d697886f230c094f.tar.gz qmk_firmware-d8b9796a32b9e7105e0af485d697886f230c094f.zip |
[Keymap] Toinux's crkbd keymap and userspace (#16437)
Diffstat (limited to 'keyboards/crkbd/keymaps/toinux/oled.h')
-rw-r--r-- | keyboards/crkbd/keymaps/toinux/oled.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/toinux/oled.h b/keyboards/crkbd/keymaps/toinux/oled.h new file mode 100644 index 0000000000..30be16e602 --- /dev/null +++ b/keyboards/crkbd/keymaps/toinux/oled.h @@ -0,0 +1,71 @@ +/* Copyright 2022 @toinux + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#pragma once + +static const char PROGMEM ctrl_icon[2][2][4] = { + { + // off + {0x93, 0x94, 0x95, 0}, + {0xB3, 0xB4, 0xB5, 0}, + }, + { + // on + {0x8F ,0x90, 0x91, 0}, + {0xAF ,0xB0, 0xB1, 0}, + } +}; + +static const char PROGMEM shift_icon[2][2][4] = { + { + // off + {0xD3, 0xD4, 0xB5, 0}, + {0xA8, 0xA9, 0xD5, 0}, + }, + { + // on + {0xCF ,0xD0, 0xB1, 0}, + {0xC8 ,0xC9, 0xD1, 0}, + } +}; + +static const char PROGMEM gui_icon[2][2][4] = { + { + // off + {0x92, 0x8C, 0x8D, 0}, + {0xB2, 0xAC, 0xAD, 0}, + }, + { + // on + {0x8E ,0x8A, 0x8B, 0}, + {0xAE ,0xAA, 0xAB, 0}, + } +}; + +static const char PROGMEM alt_icon[2][2][4] = { + { + // off + {0xB2, 0xCC, 0xCD, 0}, + {0xD2, 0x88, 0x89, 0}, + }, + { + // on + {0xAE ,0xCA, 0xCB, 0}, + {0xCE ,0x86, 0x87, 0}, + } +}; + +void set_keylog(uint16_t keycode, keyrecord_t *record); |