Add `tzarc/ghoul`. (#18562)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
2b3f6d0ec6
commit
9ecd6eb9b9
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
// Matrix
|
||||
#define MATRIX_SHIFT_REGISTER_COUNT 5
|
||||
//#define MATRIX_ROWS 6 // actually defined in info.json: 5 shift registers, plus one row for extras (i.e. encoder pushbutton read)
|
||||
//#define MATRIX_COLS 8 // actually defined in info.json: 8 bits per register
|
||||
|
||||
// EEPROM configuration
|
||||
#define EXTERNAL_EEPROM_BYTE_COUNT 8192
|
||||
#define EXTERNAL_EEPROM_PAGE_SIZE 64 // it's FRAM, so it doesn't actually matter, this just sets the RAM buffer
|
||||
|
||||
// RGB configuration
|
||||
#define RGB_MATRIX_LED_COUNT 40
|
||||
#define RGBLED_NUM 40 // TBD: Once convergence with these defines occurs, remove.
|
||||
#define DRIVER_LED_TOTAL 40 // TBD: Once convergence with these defines occurs, remove.
|
|
@ -0,0 +1,44 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "analog.h"
|
||||
#include "spi_master.h"
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
// Enable RGB current limiter and wait for a bit before allowing RGB to continue
|
||||
setPinOutput(RGB_ENABLE_PIN);
|
||||
writePinHigh(RGB_ENABLE_PIN);
|
||||
wait_ms(20);
|
||||
|
||||
// Offload to the user func
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
void matrix_init_custom(void) {
|
||||
// SPI Matrix
|
||||
setPinOutput(SPI_MATRIX_CHIP_SELECT_PIN);
|
||||
writePinHigh(SPI_MATRIX_CHIP_SELECT_PIN);
|
||||
spi_init();
|
||||
|
||||
// Encoder pushbutton
|
||||
setPinInputLow(ENCODER_PUSHBUTTON_PIN);
|
||||
}
|
||||
|
||||
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||
static matrix_row_t temp_matrix[MATRIX_ROWS] = {0};
|
||||
|
||||
// Read from SPI the matrix
|
||||
spi_start(SPI_MATRIX_CHIP_SELECT_PIN, false, 0, SPI_MATRIX_DIVISOR);
|
||||
spi_receive((uint8_t*)temp_matrix, MATRIX_SHIFT_REGISTER_COUNT * sizeof(matrix_row_t));
|
||||
spi_stop();
|
||||
|
||||
// Read from the encoder pushbutton
|
||||
temp_matrix[5] = readPin(ENCODER_PUSHBUTTON_PIN) ? 1 : 0;
|
||||
|
||||
// Check if we've changed, return the last-read data
|
||||
bool changed = memcmp(current_matrix, temp_matrix, sizeof(temp_matrix)) != 0;
|
||||
if (changed) {
|
||||
memcpy(current_matrix, temp_matrix, sizeof(temp_matrix));
|
||||
}
|
||||
return changed;
|
||||
}
|
|
@ -0,0 +1,134 @@
|
|||
// Copyright 2022 QMK -- generated source code only, image retains original copyright
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
// This file was auto-generated by `qmk painter-convert-graphics -i ghoul-logo.png -f mono4`
|
||||
|
||||
#include <qp.h>
|
||||
|
||||
const uint32_t gfx_ghoul_logo_length = 1936;
|
||||
|
||||
// clang-format off
|
||||
const uint8_t gfx_ghoul_logo[1936] = {
|
||||
0x00, 0xFF, 0x12, 0x00, 0x00, 0x51, 0x47, 0x46, 0x01, 0x90, 0x07, 0x00, 0x00, 0x6F, 0xF8, 0xFF,
|
||||
0xFF, 0x46, 0x00, 0x80, 0x00, 0x01, 0x00, 0x01, 0xFE, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
|
||||
0x02, 0xFD, 0x06, 0x00, 0x00, 0x01, 0x00, 0x01, 0xFF, 0xE8, 0x03, 0x05, 0xFA, 0x60, 0x07, 0x00,
|
||||
0x08, 0x00, 0x81, 0xF9, 0x6F, 0x0E, 0x00, 0x83, 0x40, 0xFE, 0xFF, 0xBF, 0x0D, 0x00, 0x80, 0x80,
|
||||
0x03, 0xFF, 0x80, 0x7F, 0x0C, 0x00, 0x80, 0x40, 0x04, 0xFF, 0x80, 0x2F, 0x0B, 0x00, 0x81, 0x40,
|
||||
0xFE, 0x04, 0xFF, 0x80, 0x1F, 0x0B, 0x00, 0x80, 0xFD, 0x05, 0xFF, 0x80, 0x0B, 0x03, 0x00, 0x80,
|
||||
0x01, 0x02, 0x00, 0x80, 0x80, 0x03, 0x00, 0x80, 0xF8, 0x06, 0xFF, 0x80, 0x03, 0x02, 0x00, 0x80,
|
||||
0x20, 0x03, 0x00, 0x80, 0x0E, 0x02, 0x00, 0x80, 0xE0, 0x07, 0xFF, 0x03, 0x00, 0x80, 0x02, 0x02,
|
||||
0x00, 0x83, 0xF4, 0x01, 0x00, 0x80, 0x07, 0xFF, 0x80, 0x3F, 0x02, 0x00, 0x80, 0xA0, 0x02, 0x00,
|
||||
0x81, 0xC0, 0x1F, 0x02, 0x00, 0x80, 0xFE, 0x07, 0xFF, 0x80, 0x0F, 0x02, 0x00, 0x80, 0x0A, 0x02,
|
||||
0x00, 0x83, 0xFD, 0x01, 0x00, 0xF4, 0x08, 0xFF, 0x88, 0x02, 0x00, 0xA4, 0x01, 0x00, 0xE0, 0x0F,
|
||||
0x00, 0xD0, 0x08, 0xFF, 0x83, 0xBF, 0x00, 0x40, 0x2A, 0x02, 0x00, 0x80, 0xFF, 0x02, 0x00, 0x09,
|
||||
0xFF, 0x88, 0x1F, 0x00, 0xA4, 0x06, 0x00, 0xF4, 0x0F, 0x00, 0xF8, 0x09, 0xFF, 0x87, 0x02, 0x40,
|
||||
0xAA, 0x00, 0x80, 0xBF, 0x00, 0xD0, 0x09, 0xFF, 0x88, 0x7F, 0x00, 0xA4, 0x0A, 0x00, 0xFC, 0x0B,
|
||||
0x00, 0xFE, 0x09, 0xFF, 0x87, 0x0B, 0x40, 0xAA, 0x01, 0xC0, 0xBF, 0x00, 0xF4, 0x09, 0xFF, 0x87,
|
||||
0xBF, 0x01, 0xA4, 0x2A, 0x00, 0xFD, 0x0B, 0x80, 0x0A, 0xFF, 0x87, 0x2B, 0x40, 0xAA, 0x02, 0xD0,
|
||||
0xBF, 0x00, 0xFD, 0x09, 0xFF, 0x87, 0xBF, 0x06, 0xA4, 0x6A, 0x00, 0xFE, 0x0B, 0xE0, 0x0A, 0xFF,
|
||||
0x86, 0xAB, 0x40, 0xAA, 0x0A, 0xE0, 0xFF, 0x00, 0x0A, 0xFF, 0x87, 0xBF, 0x0A, 0xA4, 0xAA, 0x00,
|
||||
0xFE, 0x0F, 0xF4, 0x0A, 0xFF, 0x86, 0xAA, 0x02, 0xAA, 0x0A, 0xE0, 0xFF, 0x80, 0x0A, 0xFF, 0x87,
|
||||
0xAF, 0x2A, 0xA0, 0xAA, 0x00, 0xFE, 0x1F, 0xFC, 0x0A, 0xFF, 0x86, 0xAA, 0x06, 0xA9, 0x0A, 0xE0,
|
||||
0xFF, 0xD1, 0x0A, 0xFF, 0x87, 0xAF, 0x6A, 0x90, 0xAA, 0x00, 0xFE, 0x2F, 0xFE, 0x0A, 0xFF, 0x86,
|
||||
0xAA, 0x0A, 0xA9, 0x0A, 0xF0, 0xFF, 0xF3, 0x0A, 0xFF, 0x86, 0xAF, 0xAA, 0xA0, 0x6A, 0x00, 0xFF,
|
||||
0x7F, 0x0B, 0xFF, 0x86, 0xAA, 0x1A, 0xAA, 0x02, 0xF0, 0xFF, 0xFB, 0x0A, 0xFF, 0x84, 0xAF, 0xAA,
|
||||
0xA6, 0x1A, 0x00, 0x03, 0xFF, 0x80, 0xF7, 0x09, 0xFF, 0x80, 0xA9, 0x02, 0xAA, 0x81, 0x00, 0xF0,
|
||||
0x02, 0xFF, 0x80, 0x1F, 0x09, 0xFF, 0x80, 0x0F, 0x02, 0xAA, 0x81, 0x1A, 0x40, 0x02, 0xFF, 0x81,
|
||||
0xBF, 0xF0, 0x09, 0xFF, 0x80, 0x90, 0x02, 0xAA, 0x81, 0x06, 0xF4, 0x02, 0xFF, 0x81, 0x07, 0xFE,
|
||||
0x08, 0xFF, 0x81, 0x0F, 0xA8, 0x02, 0xAA, 0x80, 0x41, 0x02, 0xFF, 0x81, 0x7F, 0xE0, 0x09, 0xFF,
|
||||
0x80, 0x80, 0x02, 0xAA, 0x81, 0x2A, 0xF8, 0x02, 0xFF, 0x81, 0x03, 0xFD, 0x08, 0xFF, 0x81, 0x0B,
|
||||
0xA8, 0x02, 0xAA, 0x80, 0x86, 0x02, 0xFF, 0x81, 0x3F, 0xD0, 0x08, 0xFF, 0x81, 0x7F, 0x80, 0x02,
|
||||
0xAA, 0x81, 0x6A, 0xFC, 0x02, 0xFF, 0x81, 0x07, 0xFC, 0x08, 0xFF, 0x81, 0x03, 0xA8, 0x02, 0xAA,
|
||||
0x80, 0xCA, 0x02, 0xFF, 0x83, 0xBF, 0x80, 0xFF, 0xD7, 0x04, 0xFF, 0x83, 0xBF, 0xFD, 0x3F, 0x80,
|
||||
0x03, 0xAA, 0x80, 0xFD, 0x02, 0xFF, 0x83, 0x0F, 0xF4, 0x0F, 0xF8, 0x04, 0xFF, 0x83, 0x02, 0xFE,
|
||||
0x02, 0xA9, 0x02, 0xAA, 0x80, 0xEA, 0x03, 0xFF, 0x82, 0x01, 0x2E, 0x00, 0x04, 0xFF, 0x83, 0x1F,
|
||||
0x80, 0x0F, 0xA0, 0x03, 0xAA, 0x03, 0xFF, 0x80, 0x3F, 0x02, 0x00, 0x80, 0xE0, 0x04, 0xFF, 0x02,
|
||||
0x00, 0x80, 0x80, 0x03, 0xAA, 0x80, 0xEA, 0x03, 0xFF, 0x80, 0x0F, 0x02, 0x00, 0x80, 0xFD, 0x03,
|
||||
0xFF, 0x80, 0x0B, 0x02, 0x00, 0x80, 0xA9, 0x02, 0xAA, 0x81, 0x6A, 0xFD, 0x03, 0xFF, 0x82, 0x07,
|
||||
0x00, 0x80, 0x03, 0xFF, 0x80, 0x3F, 0x02, 0x00, 0x80, 0xA9, 0x03, 0xAA, 0x80, 0xC2, 0x03, 0xFF,
|
||||
0x80, 0xBF, 0x02, 0x00, 0x80, 0xF4, 0x03, 0xFF, 0x82, 0x02, 0x00, 0xA0, 0x03, 0xAA, 0x81, 0x2A,
|
||||
0xFC, 0x03, 0xFF, 0x80, 0x07, 0x02, 0x00, 0x80, 0xFE, 0x02, 0xFF, 0x80, 0x0F, 0x02, 0x00, 0x80,
|
||||
0xA9, 0x03, 0xAA, 0x80, 0xC2, 0x03, 0xFF, 0x80, 0x2F, 0x02, 0x00, 0x80, 0xC0, 0x02, 0xFF, 0x80,
|
||||
0x7F, 0x03, 0x00, 0x03, 0xAA, 0x81, 0x1A, 0xF8, 0x02, 0xFF, 0x80, 0xBF, 0x03, 0x00, 0x80, 0xF4,
|
||||
0x02, 0xFF, 0x80, 0x02, 0x02, 0x00, 0x80, 0x90, 0x03, 0xAA, 0x80, 0x81, 0x03, 0xFF, 0x80, 0x07,
|
||||
0x03, 0x00, 0x82, 0xFD, 0xFF, 0x07, 0x03, 0x00, 0x80, 0xA8, 0x02, 0xAA, 0x81, 0x1A, 0xF8, 0x02,
|
||||
0xFF, 0x80, 0x2F, 0x03, 0x00, 0x83, 0x94, 0xFF, 0x6F, 0x01, 0x02, 0x00, 0x80, 0x40, 0x03, 0xAA,
|
||||
0x80, 0x82, 0x03, 0xFF, 0x80, 0x01, 0x02, 0x00, 0x80, 0x80, 0x02, 0xFF, 0x80, 0x7F, 0x03, 0x00,
|
||||
0x80, 0xA0, 0x02, 0xAA, 0x81, 0x2A, 0xF8, 0x02, 0xFF, 0x80, 0x0F, 0x03, 0x00, 0x80, 0xFC, 0x02,
|
||||
0xFF, 0x80, 0x03, 0x03, 0x00, 0x80, 0xA9, 0x02, 0xAA, 0x80, 0x82, 0x02, 0xFF, 0x80, 0x7F, 0x03,
|
||||
0x00, 0x80, 0xC0, 0x02, 0xFF, 0x80, 0x7F, 0x03, 0x00, 0x80, 0x80, 0x02, 0xAA, 0x81, 0x6A, 0xF8,
|
||||
0x02, 0xFF, 0x80, 0x07, 0x03, 0x00, 0x80, 0xFC, 0x02, 0xFF, 0x80, 0x07, 0x03, 0x00, 0x80, 0xA8,
|
||||
0x02, 0xAA, 0x80, 0xC6, 0x02, 0xFF, 0x80, 0x3F, 0x03, 0x00, 0x80, 0xD0, 0x02, 0xFF, 0x80, 0x7F,
|
||||
0x03, 0x00, 0x80, 0x40, 0x02, 0xAA, 0x81, 0x6A, 0xFC, 0x02, 0xFF, 0x80, 0x02, 0x03, 0x00, 0x80,
|
||||
0xFD, 0x02, 0xFF, 0x80, 0x0B, 0x03, 0x00, 0x80, 0xA4, 0x02, 0xAA, 0x80, 0xC6, 0x02, 0xFF, 0x80,
|
||||
0x2F, 0x03, 0x00, 0x83, 0xE0, 0xBF, 0xD0, 0xBF, 0x04, 0x00, 0x02, 0xAA, 0x81, 0x6A, 0xFC, 0x02,
|
||||
0xFF, 0x80, 0x01, 0x03, 0x00, 0x83, 0xFE, 0x03, 0xF8, 0x0F, 0x03, 0x00, 0x80, 0xA0, 0x02, 0xAA,
|
||||
0x80, 0xC6, 0x02, 0xFF, 0x80, 0x1F, 0x03, 0x00, 0x83, 0xF0, 0x1F, 0x00, 0xFF, 0x04, 0x00, 0x02,
|
||||
0xAA, 0x81, 0x6A, 0xFC, 0x02, 0xFF, 0x80, 0x01, 0x02, 0x00, 0x84, 0x40, 0xBF, 0x00, 0xE0, 0x1F,
|
||||
0x03, 0x00, 0x80, 0xA0, 0x02, 0xAA, 0x80, 0xC6, 0x02, 0xFF, 0x80, 0x1F, 0x03, 0x00, 0x84, 0xF4,
|
||||
0x07, 0x00, 0xFC, 0x02, 0x03, 0x00, 0x02, 0xAA, 0x81, 0x2A, 0xFC, 0x02, 0xFF, 0x80, 0x02, 0x02,
|
||||
0x00, 0x84, 0x80, 0x3F, 0x00, 0x80, 0x3F, 0x03, 0x00, 0x80, 0xA0, 0x02, 0xAA, 0x80, 0x82, 0x02,
|
||||
0xFF, 0x80, 0x2F, 0x03, 0x00, 0x84, 0xFD, 0x02, 0x00, 0xF8, 0x0B, 0x02, 0x00, 0x80, 0x40, 0x02,
|
||||
0xAA, 0x81, 0x2A, 0xF8, 0x02, 0xFF, 0x80, 0x03, 0x02, 0x00, 0x84, 0xF0, 0x1F, 0x00, 0x40, 0xFF,
|
||||
0x03, 0x00, 0x80, 0xA8, 0x02, 0xAA, 0x80, 0x41, 0x02, 0xFF, 0x80, 0x7F, 0x02, 0x00, 0x85, 0x80,
|
||||
0xFF, 0x01, 0x00, 0xF0, 0x2F, 0x02, 0x00, 0x80, 0x80, 0x02, 0xAA, 0x81, 0x1A, 0xF0, 0x02, 0xFF,
|
||||
0x80, 0x0F, 0x02, 0x00, 0x81, 0xFE, 0x0F, 0x02, 0x00, 0x81, 0xFF, 0x0B, 0x02, 0x00, 0x80, 0xA9,
|
||||
0x02, 0xAA, 0x81, 0x00, 0xFE, 0x02, 0xFF, 0x83, 0x02, 0x00, 0xF8, 0xFF, 0x02, 0x00, 0x84, 0xE0,
|
||||
0xFF, 0x07, 0x00, 0xA0, 0x02, 0xAA, 0x81, 0x0A, 0xD0, 0x02, 0xFF, 0x84, 0xBF, 0x00, 0xF4, 0xFF,
|
||||
0x0F, 0x02, 0x00, 0x83, 0xFE, 0xFF, 0x02, 0x90, 0x02, 0xAA, 0x82, 0x6A, 0x00, 0xBC, 0x02, 0xFF,
|
||||
0x81, 0xBF, 0xFA, 0x02, 0xFF, 0x02, 0x00, 0x83, 0xE0, 0xFF, 0xBF, 0x96, 0x03, 0xAA, 0x82, 0x02,
|
||||
0x40, 0xF3, 0x05, 0xFF, 0x80, 0x0B, 0x02, 0x00, 0x82, 0xFE, 0xFF, 0xAB, 0x03, 0xAA, 0x80, 0x1A,
|
||||
0x02, 0x00, 0x05, 0xFF, 0x80, 0xBF, 0x02, 0x00, 0x82, 0xE0, 0xFF, 0xBF, 0x03, 0xAA, 0x80, 0x9A,
|
||||
0x02, 0x00, 0x80, 0xE0, 0x05, 0xFF, 0x80, 0x0B, 0x02, 0x00, 0x82, 0xFE, 0xFF, 0xAB, 0x03, 0xAA,
|
||||
0x80, 0x01, 0x02, 0x00, 0x80, 0xFD, 0x04, 0xFF, 0x80, 0xBF, 0x02, 0x00, 0x82, 0xD0, 0xFF, 0xAF,
|
||||
0x03, 0xAA, 0x80, 0x0A, 0x02, 0x00, 0x80, 0xC0, 0x05, 0xFF, 0x80, 0x0B, 0x02, 0x00, 0x81, 0xFD,
|
||||
0xFF, 0x04, 0xAA, 0x03, 0x00, 0x80, 0xF8, 0x04, 0xFF, 0x80, 0xBF, 0x02, 0x00, 0x82, 0xD0, 0xFF,
|
||||
0xAF, 0x03, 0xAA, 0x80, 0x06, 0x02, 0x00, 0x80, 0x40, 0x05, 0xFF, 0x80, 0x0B, 0x02, 0x00, 0x81,
|
||||
0xFD, 0xFF, 0x03, 0xAA, 0x80, 0x2A, 0x03, 0x00, 0x80, 0xE0, 0x04, 0xFF, 0x80, 0xBF, 0x02, 0x00,
|
||||
0x82, 0xD0, 0xFF, 0xAF, 0x03, 0xAA, 0x80, 0x01, 0x03, 0x00, 0x80, 0xFD, 0x04, 0xFF, 0x84, 0x1B,
|
||||
0x00, 0x40, 0xFE, 0xBF, 0x03, 0xAA, 0x80, 0x0A, 0x03, 0x00, 0x80, 0xD0, 0x05, 0xFF, 0x84, 0x0F,
|
||||
0x00, 0xFE, 0xFF, 0xAB, 0x02, 0xAA, 0x80, 0x6A, 0x04, 0x00, 0x80, 0xFD, 0x05, 0xFF, 0x83, 0x90,
|
||||
0xE0, 0xFF, 0xBF, 0x03, 0xAA, 0x80, 0x02, 0x03, 0x00, 0x80, 0xE0, 0x05, 0xFF, 0x84, 0x4F, 0x2F,
|
||||
0xFE, 0xFF, 0xAB, 0x02, 0xAA, 0x80, 0x6A, 0x04, 0x00, 0x06, 0xFF, 0x83, 0xFD, 0xFB, 0xFF, 0xBF,
|
||||
0x03, 0xAA, 0x80, 0x0A, 0x03, 0x00, 0x80, 0xF4, 0x09, 0xFF, 0x04, 0xAA, 0x03, 0x00, 0x80, 0x80,
|
||||
0x09, 0xFF, 0x80, 0xAF, 0x03, 0xAA, 0x80, 0x1A, 0x03, 0x00, 0x80, 0xF8, 0x09, 0xFF, 0x04, 0xAA,
|
||||
0x80, 0x02, 0x02, 0x00, 0x80, 0xC0, 0x02, 0xFF, 0x80, 0xEB, 0x06, 0xFF, 0x80, 0xAF, 0x03, 0xAA,
|
||||
0x80, 0x2A, 0x03, 0x00, 0x83, 0xFC, 0xFF, 0x2F, 0xFE, 0x05, 0xFF, 0x80, 0xBF, 0x04, 0xAA, 0x80,
|
||||
0x02, 0x02, 0x00, 0x83, 0xD0, 0xFF, 0xBF, 0xF0, 0x06, 0xFF, 0x80, 0xAB, 0x03, 0xAA, 0x80, 0x2A,
|
||||
0x03, 0x00, 0x82, 0xFD, 0xFF, 0x07, 0x06, 0xFF, 0x85, 0xBF, 0xAA, 0x6A, 0xA9, 0xAA, 0x06, 0x02,
|
||||
0x00, 0x8E, 0xD0, 0xFF, 0x7F, 0xF0, 0xFF, 0xFE, 0xBF, 0xFF, 0xEF, 0xFF, 0x9B, 0xAA, 0x81, 0xAA,
|
||||
0x6A, 0x03, 0x00, 0x8E, 0xFD, 0xFF, 0x07, 0xFF, 0xDF, 0xFF, 0xF7, 0xFF, 0xFD, 0x2F, 0xAA, 0x0A,
|
||||
0xA8, 0xAA, 0x06, 0x02, 0x00, 0x8E, 0xD0, 0xFF, 0x7F, 0xE0, 0xFF, 0xFD, 0x7F, 0xFE, 0xCF, 0xFF,
|
||||
0xA2, 0xAA, 0x80, 0xAA, 0x6A, 0x03, 0x00, 0x8E, 0xFD, 0xFF, 0x07, 0xFD, 0x9F, 0xFF, 0xE7, 0xFF,
|
||||
0xFC, 0x2F, 0xAA, 0x0A, 0xA8, 0xAA, 0x06, 0x02, 0x00, 0x8E, 0xD0, 0xFF, 0x7F, 0xD0, 0xFF, 0xF9,
|
||||
0x3F, 0xFE, 0xCF, 0xFF, 0xA2, 0x6A, 0x80, 0xAA, 0x6A, 0x03, 0x00, 0x8E, 0xFC, 0xFF, 0x07, 0xFC,
|
||||
0x9F, 0xFF, 0xE3, 0xFF, 0xFC, 0x1B, 0xAA, 0x02, 0xA8, 0xAA, 0x02, 0x02, 0x00, 0x8E, 0xC0, 0xFF,
|
||||
0x3F, 0x80, 0xFF, 0xF5, 0x3F, 0xFF, 0xCF, 0xBF, 0xA1, 0x2A, 0x80, 0xAA, 0x2A, 0x03, 0x00, 0x8E,
|
||||
0xF8, 0xBF, 0x00, 0xF4, 0x5F, 0xFF, 0xF3, 0xFF, 0xF9, 0x1B, 0xAA, 0x01, 0x90, 0xAA, 0x02, 0x02,
|
||||
0x00, 0x81, 0x40, 0x6F, 0x02, 0x00, 0x8A, 0xFF, 0xF5, 0x3F, 0xFF, 0x9F, 0xAF, 0xA1, 0x0A, 0x00,
|
||||
0xA0, 0x2A, 0x03, 0x00, 0x80, 0x70, 0x02, 0x00, 0x87, 0xF0, 0x5F, 0xFF, 0xF3, 0xFF, 0xF9, 0x1A,
|
||||
0xAA, 0x02, 0x00, 0x81, 0x90, 0x01, 0x06, 0x00, 0x87, 0xFE, 0xF1, 0x2F, 0xFF, 0x5F, 0xAF, 0xA1,
|
||||
0x0A, 0x09, 0x00, 0x87, 0xD0, 0x1F, 0xFF, 0xF2, 0xFF, 0xF5, 0x0A, 0x6A, 0x0A, 0x00, 0x87, 0xFC,
|
||||
0xF2, 0x1F, 0xFF, 0x5F, 0xAB, 0xA0, 0x02, 0x09, 0x00, 0x87, 0xC0, 0x1F, 0xFF, 0xF0, 0xFF, 0xB0,
|
||||
0x0A, 0x2A, 0x0A, 0x00, 0x87, 0xF8, 0xE1, 0x0F, 0xFE, 0x0F, 0xAA, 0xA0, 0x02, 0x09, 0x00, 0x87,
|
||||
0x80, 0x0F, 0x7D, 0xD0, 0x7F, 0x90, 0x06, 0x1A, 0x0A, 0x00, 0x87, 0xB4, 0x80, 0x03, 0xF8, 0x03,
|
||||
0x28, 0x90, 0x01, 0x0A, 0x00, 0x83, 0x02, 0x00, 0x40, 0x1F, 0x02, 0x00, 0x80, 0x08, 0x09, 0x00,
|
||||
0x81, 0x02, 0x0E, 0x02, 0x00, 0x80, 0x50, 0x02, 0x00, 0x82, 0x40, 0x0A, 0x04, 0x07, 0x00, 0x83,
|
||||
0x70, 0xF0, 0x02, 0xA0, 0x02, 0x00, 0x83, 0x40, 0x00, 0xA4, 0x80, 0x07, 0x00, 0x8A, 0x40, 0x0B,
|
||||
0x7F, 0x00, 0x1F, 0xE0, 0x00, 0x0A, 0x80, 0x0A, 0x18, 0x07, 0x00, 0x8A, 0xF8, 0xF0, 0x0F, 0xF4,
|
||||
0x02, 0x1F, 0xA4, 0x01, 0xA9, 0x90, 0x01, 0x06, 0x00, 0x8A, 0x80, 0x1F, 0xFF, 0x82, 0x7F, 0xF4,
|
||||
0x82, 0x1A, 0xA0, 0x0A, 0x2A, 0x07, 0x00, 0x8A, 0xF8, 0xF2, 0x3F, 0xFC, 0xDF, 0xBF, 0xAA, 0x82,
|
||||
0xAA, 0xA4, 0x02, 0x06, 0x00, 0x83, 0x80, 0x7F, 0xFE, 0xDB, 0x02, 0xFF, 0x84, 0xAB, 0x6A, 0xA9,
|
||||
0x8A, 0x2A, 0x07, 0x00, 0x81, 0xF8, 0xEF, 0x03, 0xFF, 0x80, 0xBF, 0x02, 0xAA, 0x82, 0x6A, 0xAA,
|
||||
0x02, 0x06, 0x00, 0x80, 0x80, 0x05, 0xFF, 0x80, 0xAB, 0x03, 0xAA, 0x80, 0x2A, 0x07, 0x00, 0x80,
|
||||
0xF4, 0x04, 0xFF, 0x80, 0xAF, 0x04, 0xAA, 0x80, 0x01, 0x06, 0x00, 0x80, 0x40, 0x05, 0xFF, 0x04,
|
||||
0xAA, 0x80, 0x1A, 0x07, 0x00, 0x80, 0xF0, 0x04, 0xFF, 0x80, 0xAF, 0x04, 0xAA, 0x08, 0x00, 0x80,
|
||||
0xFE, 0x03, 0xFF, 0x80, 0xBF, 0x04, 0xAA, 0x80, 0x0A, 0x07, 0x00, 0x80, 0xE0, 0x04, 0xFF, 0x80,
|
||||
0xAB, 0x03, 0xAA, 0x80, 0x6A, 0x08, 0x00, 0x80, 0xFD, 0x03, 0xFF, 0x80, 0xBF, 0x04, 0xAA, 0x80,
|
||||
0x02, 0x07, 0x00, 0x80, 0xC0, 0x04, 0xFF, 0x04, 0xAA, 0x80, 0x2A, 0x08, 0x00, 0x80, 0xF4, 0x03,
|
||||
0xFF, 0x80, 0xAF, 0x04, 0xAA, 0x80, 0x01, 0x08, 0x00, 0x03, 0xFF, 0x80, 0xBF, 0x04, 0xAA, 0x80,
|
||||
0x0A, 0x08, 0x00, 0x84, 0xE0, 0x6F, 0xFE, 0xFF, 0xAB, 0x02, 0xAA, 0x81, 0x5A, 0x6A, 0x09, 0x00,
|
||||
0x83, 0xFD, 0x40, 0xFF, 0xBF, 0x02, 0xAA, 0x82, 0x0A, 0x90, 0x02, 0x08, 0x00, 0x83, 0x80, 0x07,
|
||||
0x40, 0xFE, 0x02, 0xAA, 0x82, 0x1A, 0x00, 0x28, 0x0C, 0x00, 0x82, 0xA9, 0xAA, 0x05, 0x07, 0x00,
|
||||
};
|
||||
// clang-format on
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright 2022 QMK -- generated source code only, image retains original copyright
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
// This file was auto-generated by `qmk painter-convert-graphics -i ghoul-name.png -f mono4`
|
||||
|
||||
#include <qp.h>
|
||||
|
||||
const uint32_t gfx_ghoul_name_length = 371;
|
||||
|
||||
// clang-format off
|
||||
const uint8_t gfx_ghoul_name[371] = {
|
||||
0x00, 0xFF, 0x12, 0x00, 0x00, 0x51, 0x47, 0x46, 0x01, 0x73, 0x01, 0x00, 0x00, 0x8C, 0xFE, 0xFF,
|
||||
0xFF, 0x16, 0x00, 0x44, 0x00, 0x01, 0x00, 0x01, 0xFE, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
|
||||
0x02, 0xFD, 0x06, 0x00, 0x00, 0x01, 0x00, 0x01, 0xFF, 0xE8, 0x03, 0x05, 0xFA, 0x43, 0x01, 0x00,
|
||||
0x0F, 0x00, 0x81, 0xA0, 0x02, 0x04, 0x00, 0x81, 0x3F, 0x54, 0x03, 0x55, 0x81, 0xF5, 0x83, 0x04,
|
||||
0xFF, 0x81, 0x3F, 0xF8, 0x04, 0xFF, 0x80, 0x83, 0x04, 0xFF, 0x81, 0x3F, 0xF8, 0x03, 0xAA, 0x82,
|
||||
0xFA, 0x83, 0x1F, 0x03, 0x00, 0x82, 0x3F, 0xF8, 0x01, 0x02, 0x00, 0x82, 0xF0, 0x43, 0x05, 0x03,
|
||||
0x00, 0x80, 0x2A, 0x12, 0x00, 0x80, 0xA9, 0x02, 0xAA, 0x82, 0x2A, 0x00, 0xD0, 0x03, 0xFF, 0x82,
|
||||
0x03, 0x00, 0xFD, 0x02, 0xFF, 0x82, 0x3F, 0x00, 0x90, 0x02, 0xAA, 0x81, 0xFE, 0x02, 0x03, 0x00,
|
||||
0x81, 0x40, 0x1F, 0x04, 0x00, 0x81, 0xE0, 0x03, 0x03, 0x00, 0x83, 0x90, 0x7F, 0x00, 0xD0, 0x03,
|
||||
0xFF, 0x82, 0x07, 0x00, 0xFD, 0x02, 0xFF, 0x82, 0x2F, 0x00, 0xD0, 0x02, 0xFF, 0x86, 0xBF, 0x01,
|
||||
0x00, 0xA9, 0xAA, 0x6A, 0x01, 0x0D, 0x00, 0x82, 0x90, 0xAA, 0x06, 0x02, 0x00, 0x80, 0xD0, 0x02,
|
||||
0xFF, 0x82, 0x07, 0x00, 0x40, 0x03, 0xFF, 0x82, 0x01, 0x00, 0xFC, 0x02, 0xFF, 0x88, 0x2F, 0x00,
|
||||
0xD0, 0x6F, 0x55, 0xF9, 0x07, 0x00, 0xBD, 0x02, 0x00, 0x8D, 0x7E, 0x00, 0xD0, 0x0F, 0x00, 0xF0,
|
||||
0x07, 0x00, 0xFD, 0x56, 0x95, 0x3F, 0x00, 0x80, 0x03, 0xFF, 0x82, 0x02, 0x00, 0xF4, 0x02, 0xFF,
|
||||
0x80, 0x1F, 0x02, 0x00, 0x82, 0xF9, 0xFF, 0x6F, 0x03, 0x00, 0x81, 0x54, 0x15, 0x0E, 0x00, 0x80,
|
||||
0xA5, 0x02, 0xAA, 0x82, 0x02, 0x00, 0xF4, 0x02, 0xFF, 0x82, 0x3F, 0x00, 0xC0, 0x03, 0xFF, 0x88,
|
||||
0x03, 0x00, 0xFD, 0xAB, 0xAA, 0x2A, 0x00, 0xD0, 0x1F, 0x04, 0x00, 0x80, 0xB8, 0x03, 0x00, 0x82,
|
||||
0x40, 0x55, 0x5E, 0x02, 0x00, 0x80, 0x80, 0x04, 0xFF, 0x81, 0x3F, 0xF8, 0x04, 0xFF, 0x80, 0x83,
|
||||
0x04, 0xFF, 0x81, 0x3F, 0xA4, 0x04, 0xAA, 0x80, 0x02, 0x0B, 0x00, 0x81, 0x40, 0x01, 0x02, 0x55,
|
||||
0x83, 0x15, 0x80, 0x2F, 0xF0, 0x02, 0xFF, 0x82, 0x03, 0xFE, 0x02, 0x02, 0xFF, 0x83, 0x3F, 0xF4,
|
||||
0x2F, 0xF0, 0x02, 0xFF, 0x8C, 0x83, 0x7F, 0x00, 0xBF, 0x95, 0x1B, 0xF8, 0x01, 0xE0, 0x07, 0xE0,
|
||||
0x82, 0x1F, 0x03, 0x00, 0x82, 0x3E, 0xF8, 0x5B, 0x02, 0x55, 0x81, 0xFD, 0x47, 0x04, 0xFF, 0x81,
|
||||
0x3F, 0xE0, 0x04, 0xFF, 0x81, 0x02, 0xF8, 0x03, 0xFF, 0x82, 0x07, 0x00, 0x54, 0x02, 0x55, 0x80,
|
||||
0x05, 0x06, 0x00,
|
||||
};
|
||||
// clang-format on
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2022 QMK -- generated source code only, image retains original copyright
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
// This file was auto-generated by `qmk painter-convert-graphics -i lock-caps.png -f mono4`
|
||||
|
||||
#include <qp.h>
|
||||
|
||||
const uint32_t gfx_lock_caps_length = 108;
|
||||
|
||||
// clang-format off
|
||||
const uint8_t gfx_lock_caps[108] = {
|
||||
0x00, 0xFF, 0x12, 0x00, 0x00, 0x51, 0x47, 0x46, 0x01, 0x6C, 0x00, 0x00, 0x00, 0x93, 0xFF, 0xFF,
|
||||
0xFF, 0x0F, 0x00, 0x10, 0x00, 0x01, 0x00, 0x01, 0xFE, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
|
||||
0x02, 0xFD, 0x06, 0x00, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xE8, 0x03, 0x05, 0xFA, 0x3C, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xA8, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x00, 0xD0, 0x2F, 0x00, 0x00,
|
||||
0xF4, 0x0B, 0x00, 0x00, 0xEE, 0x03, 0x00, 0xC0, 0xF7, 0x00, 0x00, 0xF0, 0x7D, 0x00, 0x00, 0x3D,
|
||||
0x2F, 0x00, 0x40, 0x8F, 0x0B, 0x00, 0xE0, 0xFF, 0x03, 0x00, 0xFC, 0xFF, 0x00, 0x00, 0x6F, 0x7D,
|
||||
0x00, 0xC0, 0x07, 0x2F, 0x00, 0xF4, 0xC1, 0x0B, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
// clang-format on
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2022 QMK -- generated source code only, image retains original copyright
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
// This file was auto-generated by `qmk painter-convert-graphics -i lock-num.png -f mono4`
|
||||
|
||||
#include <qp.h>
|
||||
|
||||
const uint32_t gfx_lock_num_length = 108;
|
||||
|
||||
// clang-format off
|
||||
const uint8_t gfx_lock_num[108] = {
|
||||
0x00, 0xFF, 0x12, 0x00, 0x00, 0x51, 0x47, 0x46, 0x01, 0x6C, 0x00, 0x00, 0x00, 0x93, 0xFF, 0xFF,
|
||||
0xFF, 0x0F, 0x00, 0x10, 0x00, 0x01, 0x00, 0x01, 0xFE, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
|
||||
0x02, 0xFD, 0x06, 0x00, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xE8, 0x03, 0x05, 0xFA, 0x3C, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xA4, 0x02, 0x00, 0x40, 0xBF, 0x00, 0x00, 0xF8, 0x2F, 0x00, 0x00,
|
||||
0xCA, 0x0B, 0x00, 0x00, 0xF0, 0x02, 0x00, 0x00, 0xBC, 0x00, 0x00, 0x00, 0x2F, 0x00, 0x00, 0xC0,
|
||||
0x0B, 0x00, 0x00, 0xF0, 0x02, 0x00, 0x00, 0xBC, 0x00, 0x00, 0x00, 0x2F, 0x00, 0x00, 0xC0, 0x0B,
|
||||
0x00, 0x00, 0xF0, 0x02, 0x00, 0x00, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
// clang-format on
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2022 QMK -- generated source code only, image retains original copyright
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
// This file was auto-generated by `qmk painter-convert-graphics -i lock-scrl.png -f mono4`
|
||||
|
||||
#include <qp.h>
|
||||
|
||||
const uint32_t gfx_lock_scrl_length = 108;
|
||||
|
||||
// clang-format off
|
||||
const uint8_t gfx_lock_scrl[108] = {
|
||||
0x00, 0xFF, 0x12, 0x00, 0x00, 0x51, 0x47, 0x46, 0x01, 0x6C, 0x00, 0x00, 0x00, 0x93, 0xFF, 0xFF,
|
||||
0xFF, 0x0F, 0x00, 0x10, 0x00, 0x01, 0x00, 0x01, 0xFE, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
|
||||
0x02, 0xFD, 0x06, 0x00, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xE8, 0x03, 0x05, 0xFA, 0x3C, 0x00, 0x00,
|
||||
0x00, 0x40, 0x00, 0x00, 0x00, 0xFD, 0x01, 0x00, 0xD0, 0xFF, 0x01, 0x00, 0xBE, 0xF8, 0x02, 0xE0,
|
||||
0x2F, 0xFE, 0x02, 0xBD, 0x8B, 0xFB, 0x01, 0xE1, 0xE2, 0x12, 0x00, 0xB8, 0xB8, 0x00, 0x00, 0x2E,
|
||||
0x2E, 0x00, 0x84, 0x8B, 0x4B, 0x40, 0xEF, 0xE2, 0x7E, 0x80, 0xBF, 0xF8, 0x0B, 0x80, 0x2F, 0xBE,
|
||||
0x00, 0x40, 0xFF, 0x07, 0x00, 0x40, 0x7F, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||
};
|
||||
// clang-format on
|
|
@ -0,0 +1,74 @@
|
|||
// Copyright 2022 QMK -- generated source code only, font retains original copyright
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
// This file was auto-generated by `qmk painter-convert-font-image -i thintel15.png -f mono2`
|
||||
|
||||
#include <qp.h>
|
||||
|
||||
const uint32_t font_thintel15_length = 966;
|
||||
|
||||
// clang-format off
|
||||
const uint8_t font_thintel15[966] = {
|
||||
0x00, 0xFF, 0x14, 0x00, 0x00, 0x51, 0x46, 0x46, 0x01, 0xC6, 0x03, 0x00, 0x00, 0x39, 0xFC, 0xFF,
|
||||
0xFF, 0x0B, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x01, 0xFE, 0x1D, 0x01, 0x00, 0x02, 0x00,
|
||||
0x00, 0xC2, 0x00, 0x00, 0x84, 0x01, 0x00, 0x06, 0x03, 0x00, 0x46, 0x05, 0x00, 0x88, 0x07, 0x00,
|
||||
0x46, 0x0A, 0x00, 0x82, 0x0C, 0x00, 0x43, 0x0D, 0x00, 0x83, 0x0E, 0x00, 0xC4, 0x0F, 0x00, 0x46,
|
||||
0x11, 0x00, 0x83, 0x13, 0x00, 0xC5, 0x14, 0x00, 0x82, 0x16, 0x00, 0x44, 0x17, 0x00, 0xC5, 0x18,
|
||||
0x00, 0x84, 0x1A, 0x00, 0x05, 0x1C, 0x00, 0xC5, 0x1D, 0x00, 0x85, 0x1F, 0x00, 0x45, 0x21, 0x00,
|
||||
0x05, 0x23, 0x00, 0xC5, 0x24, 0x00, 0x85, 0x26, 0x00, 0x45, 0x28, 0x00, 0x02, 0x2A, 0x00, 0xC3,
|
||||
0x2A, 0x00, 0x05, 0x2C, 0x00, 0xC5, 0x2D, 0x00, 0x85, 0x2F, 0x00, 0x45, 0x31, 0x00, 0x08, 0x33,
|
||||
0x00, 0xC5, 0x35, 0x00, 0x85, 0x37, 0x00, 0x45, 0x39, 0x00, 0x05, 0x3B, 0x00, 0xC4, 0x3C, 0x00,
|
||||
0x44, 0x3E, 0x00, 0xC5, 0x3F, 0x00, 0x85, 0x41, 0x00, 0x44, 0x43, 0x00, 0xC5, 0x44, 0x00, 0x85,
|
||||
0x46, 0x00, 0x44, 0x48, 0x00, 0xC6, 0x49, 0x00, 0x06, 0x4C, 0x00, 0x45, 0x4E, 0x00, 0x05, 0x50,
|
||||
0x00, 0xC5, 0x51, 0x00, 0x85, 0x53, 0x00, 0x45, 0x55, 0x00, 0x06, 0x57, 0x00, 0x45, 0x59, 0x00,
|
||||
0x06, 0x5B, 0x00, 0x46, 0x5D, 0x00, 0x86, 0x5F, 0x00, 0xC6, 0x61, 0x00, 0x06, 0x64, 0x00, 0x44,
|
||||
0x66, 0x00, 0xC4, 0x67, 0x00, 0x44, 0x69, 0x00, 0xC6, 0x6A, 0x00, 0x05, 0x6D, 0x00, 0xC3, 0x6E,
|
||||
0x00, 0x05, 0x70, 0x00, 0xC5, 0x71, 0x00, 0x84, 0x73, 0x00, 0x05, 0x75, 0x00, 0xC5, 0x76, 0x00,
|
||||
0x84, 0x78, 0x00, 0x05, 0x7A, 0x00, 0xC5, 0x7B, 0x00, 0x82, 0x7D, 0x00, 0x43, 0x7E, 0x00, 0x85,
|
||||
0x7F, 0x00, 0x42, 0x81, 0x00, 0x06, 0x82, 0x00, 0x45, 0x84, 0x00, 0x05, 0x86, 0x00, 0xC5, 0x87,
|
||||
0x00, 0x85, 0x89, 0x00, 0x44, 0x8B, 0x00, 0xC5, 0x8C, 0x00, 0x83, 0x8E, 0x00, 0xC5, 0x8F, 0x00,
|
||||
0x86, 0x91, 0x00, 0xC6, 0x93, 0x00, 0x06, 0x96, 0x00, 0x45, 0x98, 0x00, 0x04, 0x9A, 0x00, 0x85,
|
||||
0x9B, 0x00, 0x42, 0x9D, 0x00, 0x05, 0x9E, 0x00, 0xC5, 0x9F, 0x00, 0x04, 0xFB, 0x86, 0x02, 0x00,
|
||||
0x00, 0x00, 0x00, 0x54, 0x45, 0x00, 0x50, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0xFD, 0xD2,
|
||||
0xAF, 0x28, 0x00, 0x00, 0x00, 0x84, 0x53, 0x15, 0x0E, 0x55, 0x39, 0x04, 0x00, 0x00, 0x00, 0x00,
|
||||
0x12, 0x15, 0x0A, 0x28, 0x54, 0x24, 0x00, 0x00, 0x00, 0x80, 0x50, 0x14, 0x52, 0x95, 0x58, 0x00,
|
||||
0x00, 0x00, 0x14, 0x00, 0x00, 0x4A, 0x92, 0x24, 0x02, 0x00, 0x91, 0x24, 0x49, 0x01, 0x00, 0x20,
|
||||
0x27, 0x05, 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x1F, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x60, 0x0A, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x24, 0x22,
|
||||
0x11, 0x00, 0x00, 0xC0, 0xA4, 0x94, 0x52, 0x32, 0x00, 0x00, 0x20, 0x23, 0x22, 0x72, 0x00, 0x00,
|
||||
0xC0, 0x24, 0x44, 0x44, 0x78, 0x00, 0x00, 0xC0, 0x24, 0x44, 0x50, 0x32, 0x00, 0x00, 0x80, 0x29,
|
||||
0x95, 0x1E, 0x42, 0x00, 0x00, 0xE0, 0x85, 0x83, 0x50, 0x32, 0x00, 0x00, 0xC0, 0xA4, 0x70, 0x52,
|
||||
0x32, 0x00, 0x00, 0xE0, 0x21, 0x42, 0x84, 0x10, 0x00, 0x00, 0xC0, 0xA4, 0x64, 0x52, 0x32, 0x00,
|
||||
0x00, 0xC0, 0xA4, 0xE4, 0x50, 0x32, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x30, 0x60, 0x0A, 0x00,
|
||||
0x00, 0x11, 0x11, 0x04, 0x41, 0x00, 0x00, 0x00, 0x80, 0x07, 0x1E, 0x00, 0x00, 0x00, 0x20, 0x08,
|
||||
0x82, 0x88, 0x08, 0x00, 0x00, 0xC0, 0x24, 0x64, 0x04, 0x10, 0x00, 0x00, 0x00, 0x1C, 0x22, 0x59,
|
||||
0x55, 0x2D, 0x02, 0x1C, 0x00, 0x00, 0x00, 0xC0, 0xA4, 0xF4, 0x52, 0x4A, 0x00, 0x00, 0xE0, 0xA4,
|
||||
0x74, 0x52, 0x3A, 0x00, 0x00, 0xC0, 0xA4, 0x10, 0x42, 0x32, 0x00, 0x00, 0xE0, 0xA4, 0x94, 0x52,
|
||||
0x3A, 0x00, 0x00, 0x70, 0x11, 0x17, 0x71, 0x00, 0x00, 0x70, 0x11, 0x17, 0x11, 0x00, 0x00, 0xC0,
|
||||
0xA4, 0xD0, 0x52, 0x32, 0x00, 0x00, 0x20, 0xA5, 0xF4, 0x52, 0x4A, 0x00, 0x00, 0x70, 0x22, 0x22,
|
||||
0x72, 0x00, 0x00, 0xC0, 0x21, 0x84, 0x50, 0x32, 0x00, 0x00, 0x20, 0xA5, 0x32, 0x4A, 0x4A, 0x00,
|
||||
0x00, 0x10, 0x11, 0x11, 0x71, 0x00, 0x00, 0x40, 0xB4, 0x55, 0x51, 0x14, 0x45, 0x00, 0x00, 0x00,
|
||||
0x40, 0x34, 0x55, 0x59, 0x14, 0x45, 0x00, 0x00, 0x00, 0xC0, 0xA4, 0x94, 0x52, 0x32, 0x00, 0x00,
|
||||
0xE0, 0xA4, 0x74, 0x42, 0x08, 0x00, 0x00, 0xC0, 0xA4, 0x94, 0x52, 0x51, 0x00, 0x00, 0xE0, 0xA4,
|
||||
0x74, 0x52, 0x4A, 0x00, 0x00, 0xC0, 0xA4, 0x60, 0x50, 0x32, 0x00, 0x00, 0xC0, 0x47, 0x10, 0x04,
|
||||
0x41, 0x10, 0x00, 0x00, 0x00, 0x20, 0xA5, 0x94, 0x52, 0x32, 0x00, 0x00, 0x40, 0x14, 0x45, 0x51,
|
||||
0xA4, 0x10, 0x00, 0x00, 0x00, 0x40, 0x14, 0x45, 0x51, 0xB5, 0x45, 0x00, 0x00, 0x00, 0x40, 0x14,
|
||||
0x29, 0x84, 0x12, 0x45, 0x00, 0x00, 0x00, 0x40, 0x14, 0x45, 0x0E, 0x41, 0x10, 0x00, 0x00, 0x00,
|
||||
0xC0, 0x07, 0x21, 0x84, 0x10, 0x7C, 0x00, 0x00, 0x00, 0x17, 0x11, 0x11, 0x11, 0x07, 0x00, 0x10,
|
||||
0x21, 0x22, 0x44, 0x00, 0x00, 0x47, 0x44, 0x44, 0x44, 0x07, 0x00, 0x84, 0x12, 0x01, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x93, 0x5C, 0x72, 0x00, 0x00, 0x20, 0x84, 0x93, 0x52, 0x3A, 0x00, 0x00, 0x00, 0x60,
|
||||
0x11, 0x61, 0x00, 0x00, 0x00, 0x21, 0x97, 0x52, 0x72, 0x00, 0x00, 0x00, 0x00, 0x93, 0x5E, 0x70,
|
||||
0x00, 0x00, 0x60, 0x11, 0x13, 0x11, 0x00, 0x00, 0x00, 0x00, 0x97, 0x52, 0x72, 0x28, 0x19, 0x20,
|
||||
0x84, 0x93, 0x52, 0x4A, 0x00, 0x00, 0x10, 0x55, 0x00, 0x80, 0x20, 0x49, 0x0A, 0x00, 0x20, 0x84,
|
||||
0x94, 0x4E, 0x4A, 0x00, 0x00, 0x54, 0x55, 0x00, 0x00, 0x00, 0x2C, 0x55, 0x55, 0x55, 0x00, 0x00,
|
||||
0x00, 0x00, 0x80, 0x93, 0x52, 0x4A, 0x00, 0x00, 0x00, 0x00, 0x93, 0x52, 0x32, 0x00, 0x00, 0x00,
|
||||
0x80, 0x93, 0x52, 0x3A, 0x21, 0x00, 0x00, 0x00, 0x97, 0x52, 0x72, 0x08, 0x01, 0x00, 0x50, 0x13,
|
||||
0x11, 0x00, 0x00, 0x00, 0x00, 0x17, 0x0C, 0x3A, 0x00, 0x00, 0x48, 0x96, 0x44, 0x00, 0x00, 0x00,
|
||||
0x80, 0x94, 0x52, 0x72, 0x00, 0x00, 0x00, 0x00, 0x44, 0x51, 0xA4, 0x10, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x44, 0x51, 0x54, 0x6D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x0A, 0xA1, 0x44, 0x00, 0x00,
|
||||
0x00, 0x00, 0x80, 0x94, 0x52, 0x72, 0x28, 0x19, 0x00, 0x70, 0x24, 0x71, 0x00, 0x00, 0x4C, 0x08,
|
||||
0x11, 0x84, 0x10, 0x0C, 0x00, 0x55, 0x55, 0x01, 0x83, 0x10, 0x82, 0x08, 0x21, 0x03, 0x00, 0x00,
|
||||
0x00, 0xB0, 0x1A, 0x00, 0x00, 0x00,
|
||||
};
|
||||
// clang-format on
|
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"manufacturer": "Tzarc",
|
||||
"maintainer": "tzarc",
|
||||
"url": "https://github.com/tzarc/ghoul",
|
||||
"build": {
|
||||
"lto": true
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"console": true,
|
||||
"encoder": true,
|
||||
"mousekey": true,
|
||||
"extrakey": true,
|
||||
"nkro": true,
|
||||
"quantum_painter": true,
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"rows": ["NO_PIN","NO_PIN","NO_PIN","NO_PIN","NO_PIN","NO_PIN"],
|
||||
"cols": ["NO_PIN","NO_PIN","NO_PIN","NO_PIN","NO_PIN","NO_PIN","NO_PIN","NO_PIN"]
|
||||
},
|
||||
"usb": {
|
||||
"vid": "0x1209",
|
||||
"pid": "0x4920"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "label": "Q", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 },
|
||||
{ "label": "W", "matrix": [0, 4], "w": 1, "x": 1, "y": 0 },
|
||||
{ "label": "E", "matrix": [1, 0], "w": 1, "x": 2, "y": 0 },
|
||||
{ "label": "R", "matrix": [1, 4], "w": 1, "x": 3, "y": 0 },
|
||||
{ "label": "T", "matrix": [2, 0], "w": 1, "x": 4, "y": 0 },
|
||||
{ "label": "kEC", "matrix": [5, 0], "w": 1, "x": 5.5, "y": 0 },
|
||||
{ "label": "Y", "matrix": [2, 4], "w": 1, "x": 7, "y": 0 },
|
||||
{ "label": "U", "matrix": [3, 0], "w": 1, "x": 8, "y": 0 },
|
||||
{ "label": "I", "matrix": [3, 4], "w": 1, "x": 9, "y": 0 },
|
||||
{ "label": "O", "matrix": [4, 0], "w": 1, "x": 10, "y": 0 },
|
||||
{ "label": "P", "matrix": [4, 4], "w": 1, "x": 11, "y": 0 },
|
||||
{ "label": "A", "matrix": [0, 1], "w": 1, "x": 0, "y": 1 },
|
||||
{ "label": "S", "matrix": [0, 5], "w": 1, "x": 1, "y": 1 },
|
||||
{ "label": "D", "matrix": [1, 1], "w": 1, "x": 2, "y": 1 },
|
||||
{ "label": "F", "matrix": [1, 5], "w": 1, "x": 3, "y": 1 },
|
||||
{ "label": "G", "matrix": [2, 1], "w": 1, "x": 4, "y": 1 },
|
||||
{ "label": "H", "matrix": [2, 5], "w": 1, "x": 7, "y": 1 },
|
||||
{ "label": "J", "matrix": [3, 1], "w": 1, "x": 8, "y": 1 },
|
||||
{ "label": "K", "matrix": [3, 5], "w": 1, "x": 9, "y": 1 },
|
||||
{ "label": "L", "matrix": [4, 1], "w": 1, "x": 10, "y": 1 },
|
||||
{ "label": ";", "matrix": [4, 5], "w": 1, "x": 11, "y": 1 },
|
||||
{ "label": "Z", "matrix": [0, 2], "w": 1, "x": 0, "y": 2 },
|
||||
{ "label": "X", "matrix": [0, 6], "w": 1, "x": 1, "y": 2 },
|
||||
{ "label": "C", "matrix": [1, 2], "w": 1, "x": 2, "y": 2 },
|
||||
{ "label": "V", "matrix": [1, 6], "w": 1, "x": 3, "y": 2 },
|
||||
{ "label": "B", "matrix": [2, 2], "w": 1, "x": 4, "y": 2 },
|
||||
{ "label": "N", "matrix": [2, 6], "w": 1, "x": 7, "y": 2 },
|
||||
{ "label": "M", "matrix": [3, 2], "w": 1, "x": 8, "y": 2 },
|
||||
{ "label": ",", "matrix": [3, 6], "w": 1, "x": 9, "y": 2 },
|
||||
{ "label": ".", "matrix": [4, 2], "w": 1, "x": 10, "y": 2 },
|
||||
{ "label": "/", "matrix": [4, 6], "w": 1, "x": 11, "y": 2 },
|
||||
{ "label": "Ctrl", "matrix": [0, 3], "w": 1, "x": 0, "y": 3 },
|
||||
{ "label": "Alt", "matrix": [0, 7], "w": 1, "x": 1, "y": 3 },
|
||||
{ "label": "Super", "matrix": [1, 3], "w": 1, "x": 2, "y": 3 },
|
||||
{ "label": "Lower", "matrix": [1, 7], "w": 1, "x": 3, "y": 3 },
|
||||
{ "label": "Space", "matrix": [2, 3], "w": 1, "x": 4, "y": 3 },
|
||||
{ "label": "Space", "matrix": [2, 7], "w": 1, "x": 7, "y": 3 },
|
||||
{ "label": "Raise", "matrix": [3, 3], "w": 1, "x": 8, "y": 3 },
|
||||
{ "label": "←", "matrix": [3, 7], "w": 1, "x": 9, "y": 3 },
|
||||
{ "label": "↓", "matrix": [4, 3], "w": 1, "x": 10, "y": 3 },
|
||||
{ "label": "↑", "matrix": [4, 7], "w": 1, "x": 11, "y": 3 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
// Configurables
|
||||
#define TAPPING_TERM 200
|
||||
|
||||
// RGB settings
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
|
||||
// RGB Effects
|
||||
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_BAND_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define ENABLE_RGB_MATRIX_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_HUE_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
|
||||
#define ENABLE_RGB_MATRIX_HUE_WAVE
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define ENABLE_RGB_MATRIX_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
|
@ -0,0 +1,75 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum { _QWERTY, _LOWER, _RAISE, _ADJUST };
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
// Left-hand home row mods
|
||||
#define HOME_A LGUI_T(KC_A)
|
||||
#define HOME_S LALT_T(KC_S)
|
||||
#define HOME_D LSFT_T(KC_D)
|
||||
#define HOME_F LCTL_T(KC_F)
|
||||
|
||||
// Right-hand home row mods
|
||||
#define HOME_J RCTL_T(KC_J)
|
||||
#define HOME_K RSFT_T(KC_K)
|
||||
#define HOME_L LALT_T(KC_L)
|
||||
#define HOME_SCLN RGUI_T(KC_SCLN)
|
||||
|
||||
#define SFT_ESC LSFT_T(KC_ESC)
|
||||
|
||||
extern void ui_init(void);
|
||||
extern void ui_task(void);
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWERTY] = LAYOUT(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, RGB_MOD, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
HOME_A, HOME_S, HOME_D, HOME_F, KC_G, KC_H, HOME_J, HOME_K, HOME_L, HOME_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
SFT_ESC, KC_LCTL, KC_LGUI, KC_SPC, LOWER, RAISE, KC_SPC, KC_LALT, KC_BSPC, KC_SFTENT
|
||||
),
|
||||
[_LOWER] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_RAISE] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_ADJUST] = LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD, KC_TRNS, KC_TRNS, DEBUG, EEP_RST, QK_BOOT,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[_QWERTY] = {ENCODER_CCW_CW(RGB_HUI, RGB_HUD)},
|
||||
[_LOWER] = {ENCODER_CCW_CW(RGB_HUI, RGB_HUD)},
|
||||
[_RAISE] = {ENCODER_CCW_CW(RGB_HUI, RGB_HUD)},
|
||||
[_ADJUST] = {ENCODER_CCW_CW(RGB_HUI, RGB_HUD)},
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Init the display
|
||||
ui_init();
|
||||
}
|
||||
|
||||
void housekeeping_task_user(void) {
|
||||
// Draw the display
|
||||
ui_task();
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
NKRO_ENABLE = yes
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
|
||||
WPM_ENABLE = yes
|
||||
SRC += ui.c
|
|
@ -0,0 +1,139 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#include <stdio.h>
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "analog.h"
|
||||
#include "qp.h"
|
||||
#include "qp_ssd1351.h"
|
||||
|
||||
#define NUM_ADC_READS 32
|
||||
|
||||
#include "graphics/ghoul-logo.qgf.c"
|
||||
#include "graphics/ghoul-name.qgf.c"
|
||||
#include "graphics/lock-caps.qgf.c"
|
||||
#include "graphics/lock-num.qgf.c"
|
||||
#include "graphics/lock-scrl.qgf.c"
|
||||
#include "graphics/thintel15.qff.c"
|
||||
|
||||
static painter_device_t oled;
|
||||
static painter_image_handle_t logo;
|
||||
static painter_image_handle_t name;
|
||||
static painter_font_handle_t font;
|
||||
static painter_image_handle_t lock_caps;
|
||||
static painter_image_handle_t lock_num;
|
||||
static painter_image_handle_t lock_scrl;
|
||||
|
||||
void ui_init(void) {
|
||||
oled = qp_ssd1351_make_spi_device(128, 128, OLED_CS_PIN, OLED_DC_PIN, OLED_RST_PIN, 8, 0);
|
||||
logo = qp_load_image_mem(gfx_ghoul_logo);
|
||||
name = qp_load_image_mem(gfx_ghoul_name);
|
||||
font = qp_load_font_mem(font_thintel15);
|
||||
lock_caps = qp_load_image_mem(gfx_lock_caps);
|
||||
lock_num = qp_load_image_mem(gfx_lock_num);
|
||||
lock_scrl = qp_load_image_mem(gfx_lock_scrl);
|
||||
|
||||
qp_init(oled, QP_ROTATION_90);
|
||||
qp_rect(oled, 0, 0, 127, 127, 0, 0, 0, true);
|
||||
qp_flush(oled);
|
||||
}
|
||||
|
||||
void ui_task(void) {
|
||||
bool hue_redraw = false;
|
||||
static uint16_t last_hue = 0xFFFF;
|
||||
uint8_t curr_hue = rgblight_get_hue();
|
||||
if (last_hue != curr_hue) {
|
||||
last_hue = curr_hue;
|
||||
hue_redraw = true;
|
||||
}
|
||||
|
||||
if (hue_redraw) {
|
||||
qp_drawimage_recolor(oled, 0, 64 - (name->height / 2), name, curr_hue, 255, 255, curr_hue, 255, 0);
|
||||
qp_drawimage_recolor(oled, 127 - logo->width, 0, logo, curr_hue, 255, 255, curr_hue, 255, 0);
|
||||
}
|
||||
|
||||
static led_t last_led_state = {0};
|
||||
if (hue_redraw || last_led_state.raw != host_keyboard_led_state().raw) {
|
||||
last_led_state.raw = host_keyboard_led_state().raw;
|
||||
qp_drawimage_recolor(oled, lock_caps->width * 0, 0, lock_caps, curr_hue, 255, last_led_state.caps_lock ? 255 : 32, curr_hue, 255, 0);
|
||||
qp_drawimage_recolor(oled, lock_caps->width * 1, 0, lock_num, curr_hue, 255, last_led_state.num_lock ? 255 : 32, curr_hue, 255, 0);
|
||||
qp_drawimage_recolor(oled, lock_caps->width * 2, 0, lock_scrl, curr_hue, 255, last_led_state.scroll_lock ? 255 : 32, curr_hue, 255, 0);
|
||||
|
||||
qp_rect(oled, lock_caps->width * 0 + 1, lock_caps->height + 2, lock_caps->width * 1 - 1, lock_caps->height + 3, curr_hue, 255, last_led_state.caps_lock ? 255 : 0, true);
|
||||
qp_rect(oled, lock_caps->width * 1 + 1, lock_caps->height + 2, lock_caps->width * 2 - 1, lock_caps->height + 3, curr_hue, 255, last_led_state.num_lock ? 255 : 0, true);
|
||||
qp_rect(oled, lock_caps->width * 2 + 1, lock_caps->height + 2, lock_caps->width * 3 - 1, lock_caps->height + 3, curr_hue, 255, last_led_state.scroll_lock ? 255 : 0, true);
|
||||
}
|
||||
|
||||
#if HAL_USE_ADC
|
||||
static int16_t current_reads[NUM_ADC_READS] = {0};
|
||||
static int16_t voltage_reads[NUM_ADC_READS] = {0};
|
||||
static int write_offset = 0;
|
||||
|
||||
static uint32_t last_read = 0;
|
||||
if (timer_elapsed32(last_read) >= 1) {
|
||||
// Perform the reads
|
||||
int16_t current = analogReadPin(ADC_CURRENT_PIN);
|
||||
int16_t voltage = analogReadPin(ADC_VOLTAGE_PIN);
|
||||
int16_t current_ma = (int16_t)(((3300 * (int32_t)current) / ADC_SATURATION));
|
||||
int16_t voltage_mv = (int16_t)((2 * (3300 * (int32_t)voltage)) / ADC_SATURATION);
|
||||
|
||||
// Duplicate the first read so that averages work
|
||||
if (last_read == 0) {
|
||||
for (int i = 0; i < NUM_ADC_READS; ++i) {
|
||||
current_reads[i] = current_ma;
|
||||
voltage_reads[i] = voltage_mv;
|
||||
}
|
||||
}
|
||||
|
||||
// Dump in the current value
|
||||
current_reads[write_offset] = current_ma;
|
||||
voltage_reads[write_offset] = voltage_mv;
|
||||
write_offset = (write_offset + 1) % NUM_ADC_READS;
|
||||
|
||||
static int counter = 0;
|
||||
counter = (counter + 1) % 2500;
|
||||
if (counter == 0) {
|
||||
dprintf("Current: %dmA (%d) -- Voltage: %dmV (%d)\n", (int)current_ma, (int)current, (int)voltage_mv, (int)voltage);
|
||||
}
|
||||
|
||||
last_read = timer_read32();
|
||||
}
|
||||
|
||||
static uint32_t last_draw = 0;
|
||||
if (hue_redraw || timer_elapsed32(last_draw) >= 250) {
|
||||
// Accumulate
|
||||
int32_t total_current_ma = 0;
|
||||
int32_t total_voltage_mv = 0;
|
||||
for (int i = 0; i < NUM_ADC_READS; ++i) {
|
||||
total_current_ma += current_reads[i];
|
||||
total_voltage_mv += voltage_reads[i];
|
||||
}
|
||||
|
||||
// Get the averages
|
||||
int16_t avg_current_ma = (int16_t)(total_current_ma / NUM_ADC_READS);
|
||||
int16_t avg_voltage_mv = (int16_t)(total_voltage_mv / NUM_ADC_READS);
|
||||
|
||||
char buf[32] = {0};
|
||||
sprintf(buf, "Current: %dmA", avg_current_ma);
|
||||
static int16_t maxlen_curr = 0;
|
||||
int16_t len = qp_drawtext_recolor(oled, 0, 127 - (font->line_height * 2), font, buf, 0, 0, 32, 0, 0, 0);
|
||||
if (len < maxlen_curr) {
|
||||
qp_rect(oled, len, 127 - (font->line_height * 2), maxlen_curr, 127 - (font->line_height * 1), 0, 0, 0, true);
|
||||
} else if (len > maxlen_curr) {
|
||||
maxlen_curr = len;
|
||||
}
|
||||
|
||||
static int16_t maxlen_volt = 0;
|
||||
sprintf(buf, "Voltage: %dmV", avg_voltage_mv);
|
||||
len = qp_drawtext_recolor(oled, 0, 127 - (font->line_height * 1), font, buf, 0, 0, 32, 0, 0, 0);
|
||||
if (len < maxlen_volt) {
|
||||
qp_rect(oled, len, 127 - (font->line_height * 1), maxlen_volt, 127 - (font->line_height * 0), 0, 0, 0, true);
|
||||
} else if (len > maxlen_volt) {
|
||||
maxlen_volt = len;
|
||||
}
|
||||
|
||||
qp_flush(oled);
|
||||
|
||||
last_draw = timer_read32();
|
||||
}
|
||||
#endif // HAL_USE_ADC
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
# Ghoul
|
||||
|
||||
![Ghoul](https://i.imgur.com/T8wp7cEh.jpg)
|
||||
|
||||
Planck-like development board for QMK, using SparkFun MicroMod for hot-swap MCU capability.
|
||||
|
||||
* Keyboard Maintainer: [tzarc](https://github.com/tzarc)
|
||||
* Hardware Supported: Ghoul rev1 PCB + MicroMod STM32, MicroMod RP2040
|
||||
* Hardware Availability: [Open-source](https://github.com/tzarc/ghoul)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make tzarc/ghoul/rev1/stm32:default
|
||||
make tzarc/ghoul/rev1/rp2040:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make tzarc/ghoul/rev1/stm32:default:flash
|
||||
make tzarc/ghoul/rev1/rp2040:default:flash
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the top-left key (usually Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Either press all 5 left-most keys on the bottom row, or hold `BOOT` and press `RESET`
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
"usb": {
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"layout": [
|
||||
{ "flags": 4, "matrix": [2, 3], "x": 81, "y": 64 },
|
||||
{ "flags": 4, "matrix": [1, 7], "x": 61, "y": 64 },
|
||||
{ "flags": 4, "matrix": [1, 3], "x": 40, "y": 64 },
|
||||
{ "flags": 4, "matrix": [0, 7], "x": 20, "y": 64 },
|
||||
{ "flags": 4, "matrix": [0, 3], "x": 0, "y": 64 },
|
||||
{ "flags": 4, "matrix": [0, 2], "x": 0, "y": 42 },
|
||||
{ "flags": 4, "matrix": [0, 6], "x": 20, "y": 42 },
|
||||
{ "flags": 4, "matrix": [1, 2], "x": 40, "y": 42 },
|
||||
{ "flags": 4, "matrix": [1, 6], "x": 61, "y": 42 },
|
||||
{ "flags": 4, "matrix": [2, 2], "x": 81, "y": 42 },
|
||||
{ "flags": 4, "matrix": [2, 1], "x": 81, "y": 21 },
|
||||
{ "flags": 4, "matrix": [1, 5], "x": 61, "y": 21 },
|
||||
{ "flags": 4, "matrix": [1, 1], "x": 40, "y": 21 },
|
||||
{ "flags": 4, "matrix": [0, 5], "x": 20, "y": 21 },
|
||||
{ "flags": 4, "matrix": [0, 1], "x": 0, "y": 21 },
|
||||
{ "flags": 4, "matrix": [0, 0], "x": 0, "y": 0 },
|
||||
{ "flags": 4, "matrix": [0, 4], "x": 20, "y": 0 },
|
||||
{ "flags": 4, "matrix": [1, 0], "x": 40, "y": 0 },
|
||||
{ "flags": 4, "matrix": [1, 4], "x": 61, "y": 0 },
|
||||
{ "flags": 4, "matrix": [2, 0], "x": 81, "y": 0 },
|
||||
{ "flags": 4, "matrix": [2, 4], "x": 142, "y": 0 },
|
||||
{ "flags": 4, "matrix": [3, 0], "x": 162, "y": 0 },
|
||||
{ "flags": 4, "matrix": [3, 4], "x": 183, "y": 0 },
|
||||
{ "flags": 4, "matrix": [4, 0], "x": 203, "y": 0 },
|
||||
{ "flags": 4, "matrix": [4, 4], "x": 224, "y": 0 },
|
||||
{ "flags": 4, "matrix": [4, 5], "x": 224, "y": 21 },
|
||||
{ "flags": 4, "matrix": [4, 1], "x": 203, "y": 21 },
|
||||
{ "flags": 4, "matrix": [3, 5], "x": 183, "y": 21 },
|
||||
{ "flags": 4, "matrix": [3, 1], "x": 162, "y": 21 },
|
||||
{ "flags": 4, "matrix": [2, 5], "x": 142, "y": 21 },
|
||||
{ "flags": 4, "matrix": [2, 6], "x": 142, "y": 42 },
|
||||
{ "flags": 4, "matrix": [3, 2], "x": 162, "y": 42 },
|
||||
{ "flags": 4, "matrix": [3, 6], "x": 183, "y": 42 },
|
||||
{ "flags": 4, "matrix": [4, 2], "x": 203, "y": 42 },
|
||||
{ "flags": 4, "matrix": [4, 6], "x": 224, "y": 42 },
|
||||
{ "flags": 4, "matrix": [4, 7], "x": 224, "y": 64 },
|
||||
{ "flags": 4, "matrix": [4, 3], "x": 203, "y": 64 },
|
||||
{ "flags": 4, "matrix": [3, 7], "x": 183, "y": 64 },
|
||||
{ "flags": 4, "matrix": [3, 3], "x": 162, "y": 64 },
|
||||
{ "flags": 4, "matrix": [2, 7], "x": 142, "y": 64 }
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
// Matrix configuration
|
||||
#define SPI_MATRIX_CHIP_SELECT_PIN GP21
|
||||
#define SPI_MATRIX_DIVISOR 16
|
||||
|
||||
// Encoder
|
||||
#define ENCODER_PUSHBUTTON_PIN GP7
|
||||
|
||||
// SPI Configuration
|
||||
#define SPI_DRIVER SPID0
|
||||
#define SPI_SCK_PIN GP22
|
||||
#define SPI_MOSI_PIN GP23
|
||||
#define SPI_MISO_PIN GP20
|
||||
|
||||
// EEPROM configuration
|
||||
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 8
|
||||
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN GP3
|
||||
#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 8
|
||||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN GP2
|
||||
|
||||
// RGB configuration
|
||||
#define RGB_DI_PIN GP13
|
||||
#define RGB_ENABLE_PIN GP6
|
||||
|
||||
// ADC Configuration
|
||||
#define ADC_RESOLUTION ? ? ? // ADC_CFGR1_RES_12BIT // TBD when RP2040 has analog support
|
||||
#define ADC_SATURATION ? ? ? // ((1 << 12) - 1) // TBD when RP2040 has analog support
|
||||
#define ADC_CURRENT_PIN GP26
|
||||
#define ADC_VOLTAGE_PIN GP27
|
||||
|
||||
// Display Configuration
|
||||
#define OLED_CS_PIN GP16
|
||||
#define OLED_DC_PIN GP17
|
||||
#define OLED_RST_PIN GP18
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
//#define HAL_USE_ADC TRUE
|
||||
#define HAL_USE_SPI TRUE
|
||||
|
||||
#include_next <halconf.h>
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"keyboard_name": "Ghoul_RP2040",
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"bootloader_instructions": "Hold the boot switch and tap the reset switch, or hold the top-left key when plugging in the board.",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "GP8",
|
||||
"pin_b": "GP5",
|
||||
"resolution": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
// Used for RGB
|
||||
//#undef RP_ADC_USE_ADC1
|
||||
//#define RP_ADC_USE_ADC1 TRUE
|
||||
|
||||
// Used for EEPROM
|
||||
#undef RP_SPI_USE_SPI0
|
||||
#define RP_SPI_USE_SPI0 TRUE
|
|
@ -0,0 +1 @@
|
|||
WS2812_DRIVER = vendor
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include_next "board.h"
|
||||
|
||||
#ifdef BOARD_OTG_NOVBUSSENS
|
||||
# undef BOARD_OTG_NOVBUSSENS
|
||||
#endif
|
|
@ -0,0 +1,47 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
// Matrix configuration
|
||||
#define SPI_MATRIX_CHIP_SELECT_PIN C4
|
||||
#define SPI_MATRIX_DIVISOR 32
|
||||
|
||||
// Encoder
|
||||
#define ENCODER_PUSHBUTTON_PIN C1
|
||||
|
||||
// SPI Configuration
|
||||
#define SPI_DRIVER SPID1
|
||||
#define SPI_SCK_PIN A5
|
||||
#define SPI_SCK_PAL_MODE 5
|
||||
#define SPI_MOSI_PIN A6
|
||||
#define SPI_MOSI_PAL_MODE 5
|
||||
#define SPI_MISO_PIN A7
|
||||
#define SPI_MISO_PAL_MODE 5
|
||||
|
||||
// EEPROM/Flash configuration
|
||||
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 16
|
||||
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN B3
|
||||
#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 16
|
||||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN A4
|
||||
|
||||
// RGB configuration
|
||||
#define RGB_DI_PIN C6
|
||||
#define WS2812_PWM_DRIVER PWMD3
|
||||
#define WS2812_PWM_CHANNEL 1
|
||||
#define WS2812_PWM_PAL_MODE 2
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM2
|
||||
#define WS2812_DMA_CHANNEL 5
|
||||
#define RGB_ENABLE_PIN C0
|
||||
|
||||
// ADC Configuration
|
||||
#define ADC_RESOLUTION ADC_CFGR1_RES_12BIT
|
||||
#define ADC_SATURATION ((1 << 12) - 1)
|
||||
#define ADC_CURRENT_PIN C5 // ADC12_IN15
|
||||
#define ADC_VOLTAGE_PIN B0 // ADC12_IN8
|
||||
|
||||
// Display Configuration
|
||||
#define OLED_CS_PIN D2
|
||||
#define OLED_DC_PIN A8
|
||||
#define OLED_RST_PIN A0
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_ADC TRUE
|
||||
#define HAL_USE_SPI TRUE
|
||||
#define HAL_USE_PWM TRUE
|
||||
|
||||
#include_next <halconf.h>
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"keyboard_name": "Ghoul_STM32",
|
||||
"processor": "STM32F405",
|
||||
"bootloader": "stm32-dfu",
|
||||
"bootloader_instructions": "Press the 5 keys on the bottom row of the left side, or hold the boot switch and tap the reset switch, or hold the top-left key when plugging in the board.",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "B10",
|
||||
"pin_b": "B1",
|
||||
"resolution": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2018-2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
// Used for RGB
|
||||
#undef STM32_ADC_USE_ADC1
|
||||
#define STM32_ADC_USE_ADC1 TRUE
|
||||
|
||||
// Used for EEPROM
|
||||
#undef STM32_SPI_USE_SPI1
|
||||
#define STM32_SPI_USE_SPI1 TRUE
|
||||
|
||||
// Used for RGB
|
||||
#undef STM32_PWM_USE_TIM3
|
||||
#define STM32_PWM_USE_TIM3 TRUE
|
|
@ -0,0 +1,2 @@
|
|||
WS2812_DRIVER = pwm
|
||||
SRC += analog.c
|
|
@ -0,0 +1,7 @@
|
|||
CUSTOM_MATRIX = lite
|
||||
EEPROM_DRIVER = spi
|
||||
RGB_MATRIX_DRIVER = WS2812
|
||||
QUANTUM_PAINTER_DRIVERS = ssd1351_spi
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
DEFAULT_FOLDER = tzarc/ghoul/rev1/stm32
|
Loading…
Reference in New Issue