diff options
Diffstat (limited to 'keyboards/handwired/d48')
-rw-r--r-- | keyboards/handwired/d48/d48.c | 1 | ||||
-rw-r--r-- | keyboards/handwired/d48/d48.h | 19 | ||||
-rw-r--r-- | keyboards/handwired/d48/ds1307.c | 21 | ||||
-rw-r--r-- | keyboards/handwired/d48/ds1307.h | 6 | ||||
-rw-r--r-- | keyboards/handwired/d48/glcdfont_d48.c | 231 | ||||
-rw-r--r-- | keyboards/handwired/d48/info.json | 71 | ||||
-rw-r--r-- | keyboards/handwired/d48/keymaps/anderson/lightmode.c | 44 | ||||
-rw-r--r-- | keyboards/handwired/d48/keymaps/anderson/lightmode.h | 12 | ||||
-rw-r--r-- | keyboards/handwired/d48/keymaps/anderson/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/handwired/d48/readme.md | 87 | ||||
-rw-r--r-- | keyboards/handwired/d48/rules.mk | 26 | ||||
-rw-r--r-- | keyboards/handwired/d48/taphold.c | 29 | ||||
-rw-r--r-- | keyboards/handwired/d48/taphold.h | 25 |
13 files changed, 0 insertions, 574 deletions
diff --git a/keyboards/handwired/d48/d48.c b/keyboards/handwired/d48/d48.c deleted file mode 100644 index 3cc2097bf8..0000000000 --- a/keyboards/handwired/d48/d48.c +++ /dev/null @@ -1 +0,0 @@ -#include "d48.h" diff --git a/keyboards/handwired/d48/d48.h b/keyboards/handwired/d48/d48.h deleted file mode 100644 index b698ca187f..0000000000 --- a/keyboards/handwired/d48/d48.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#include "quantum.h" - -#define ___ KC_NO - -#define LAYOUT( \ - K08, K0B, \ - K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ - K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ - K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \ - K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B \ -) { \ - { ___, ___, ___, ___, ___, ___, ___, ___, K08, ___, ___, K0B }, \ - { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ - { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ - { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B }, \ - { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B } \ -} diff --git a/keyboards/handwired/d48/ds1307.c b/keyboards/handwired/d48/ds1307.c deleted file mode 100644 index f6b57d50d2..0000000000 --- a/keyboards/handwired/d48/ds1307.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "ds1307.h" -#include "i2c_master.h" - -void ds1307_set_time(uint8_t h, uint8_t m, uint8_t s) { - uint8_t data[] = { - ((s % 10) | ((s / 10) << 4)) & 0x7F, - ((m % 10) | ((m / 10) << 4)) & 0x7F, - ((h % 10) | ((h / 10) << 4)) & 0x3F, - 0, 0, 0, 0, 0 - }; // 24-hour mode - i2c_writeReg(DS1307_ADDR, 0, data, 8, 100); -} - -void ds1307_get_time(uint8_t *h, uint8_t *m, uint8_t *s) { - uint8_t data[3]; - i2c_readReg(DS1307_ADDR, 0, data, 3, 100); - i2c_stop(); - *s = (data[0] & 0b1111) + ((data[0] & 0b1110000) >> 4) * 10; - *m = (data[1] & 0b1111) + ((data[1] & 0b1110000) >> 4) * 10; - *h = (data[2] & 0b1111) + ((data[2] & 0b0110000) >> 4) * 10; -} diff --git a/keyboards/handwired/d48/ds1307.h b/keyboards/handwired/d48/ds1307.h deleted file mode 100644 index 6f76db2508..0000000000 --- a/keyboards/handwired/d48/ds1307.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -#include <stdint.h> - -void ds1307_set_time(uint8_t h, uint8_t m, uint8_t s); -void ds1307_get_time(uint8_t *h, uint8_t *m, uint8_t *s); diff --git a/keyboards/handwired/d48/glcdfont_d48.c b/keyboards/handwired/d48/glcdfont_d48.c deleted file mode 100644 index 19063b00ce..0000000000 --- a/keyboards/handwired/d48/glcdfont_d48.c +++ /dev/null @@ -1,231 +0,0 @@ -#include "progmem.h" - -// Helidox 8x6 font with QMK Firmware Logo -// Online editor: http://teripom.x0.com/ - -static const unsigned char font[] PROGMEM = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00, - 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00, - 0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00, - 0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00, - 0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00, - 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, - 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, - 0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, - 0x00, 0x18, 0x24, 0x18, 0x00, 0x00, - 0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00, - 0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00, - 0x26, 0x29, 0x79, 0x29, 0x26, 0x00, - 0x40, 0x7F, 0x05, 0x05, 0x07, 0x00, - 0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00, - 0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00, - 0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00, - 0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00, - 0x14, 0x22, 0x7F, 0x22, 0x14, 0x00, - 0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00, - 0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, - 0x00, 0x66, 0x89, 0x95, 0x6A, 0x00, - 0x60, 0x60, 0x60, 0x60, 0x60, 0x00, - 0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00, - 0x08, 0x04, 0x7E, 0x04, 0x08, 0x00, - 0x10, 0x20, 0x7E, 0x20, 0x10, 0x00, - 0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00, - 0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00, - 0x1E, 0x10, 0x10, 0x10, 0x10, 0x00, - 0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00, - 0x30, 0x38, 0x3E, 0x38, 0x30, 0x00, - 0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, - 0x00, 0x07, 0x00, 0x07, 0x00, 0x00, - 0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, - 0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00, - 0x23, 0x13, 0x08, 0x64, 0x62, 0x00, - 0x36, 0x49, 0x56, 0x20, 0x50, 0x00, - 0x00, 0x08, 0x07, 0x03, 0x00, 0x00, - 0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, - 0x00, 0x41, 0x22, 0x1C, 0x00, 0x00, - 0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00, - 0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, - 0x00, 0x80, 0x70, 0x30, 0x00, 0x00, - 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, - 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, - 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, - 0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, - 0x00, 0x42, 0x7F, 0x40, 0x00, 0x00, - 0x72, 0x49, 0x49, 0x49, 0x46, 0x00, - 0x21, 0x41, 0x49, 0x4D, 0x33, 0x00, - 0x18, 0x14, 0x12, 0x7F, 0x10, 0x00, - 0x27, 0x45, 0x45, 0x45, 0x39, 0x00, - 0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00, - 0x41, 0x21, 0x11, 0x09, 0x07, 0x00, - 0x36, 0x49, 0x49, 0x49, 0x36, 0x00, - 0x46, 0x49, 0x49, 0x29, 0x1E, 0x00, - 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, - 0x00, 0x40, 0x34, 0x00, 0x00, 0x00, - 0x00, 0x08, 0x14, 0x22, 0x41, 0x00, - 0x14, 0x14, 0x14, 0x14, 0x14, 0x00, - 0x00, 0x41, 0x22, 0x14, 0x08, 0x00, - 0x02, 0x01, 0x59, 0x09, 0x06, 0x00, - 0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00, - 0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00, - 0x7F, 0x49, 0x49, 0x49, 0x36, 0x00, - 0x3E, 0x41, 0x41, 0x41, 0x22, 0x00, - 0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00, - 0x7F, 0x49, 0x49, 0x49, 0x41, 0x00, - 0x7F, 0x09, 0x09, 0x09, 0x01, 0x00, - 0x3E, 0x41, 0x41, 0x51, 0x73, 0x00, - 0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, - 0x00, 0x41, 0x7F, 0x41, 0x00, 0x00, - 0x20, 0x40, 0x41, 0x3F, 0x01, 0x00, - 0x7F, 0x08, 0x14, 0x22, 0x41, 0x00, - 0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, - 0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00, - 0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00, - 0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00, - 0x7F, 0x09, 0x09, 0x09, 0x06, 0x00, - 0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00, - 0x7F, 0x09, 0x19, 0x29, 0x46, 0x00, - 0x26, 0x49, 0x49, 0x49, 0x32, 0x00, - 0x03, 0x01, 0x7F, 0x01, 0x03, 0x00, - 0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00, - 0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00, - 0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00, - 0x63, 0x14, 0x08, 0x14, 0x63, 0x00, - 0x03, 0x04, 0x78, 0x04, 0x03, 0x00, - 0x61, 0x59, 0x49, 0x4D, 0x43, 0x00, - 0x00, 0x7F, 0x41, 0x41, 0x41, 0x00, - 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, - 0x00, 0x41, 0x41, 0x41, 0x7F, 0x00, - 0x04, 0x02, 0x01, 0x02, 0x04, 0x00, - 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, - 0x00, 0x03, 0x07, 0x08, 0x00, 0x00, - 0x20, 0x54, 0x54, 0x78, 0x40, 0x00, - 0x7F, 0x28, 0x44, 0x44, 0x38, 0x00, - 0x38, 0x44, 0x44, 0x44, 0x28, 0x00, - 0x38, 0x44, 0x44, 0x28, 0x7F, 0x00, - 0x38, 0x54, 0x54, 0x54, 0x18, 0x00, - 0x00, 0x08, 0x7E, 0x09, 0x02, 0x00, - 0x18, 0xA4, 0xA4, 0x9C, 0x78, 0x00, - 0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, - 0x00, 0x44, 0x7D, 0x40, 0x00, 0x00, - 0x20, 0x40, 0x40, 0x3D, 0x00, 0x00, - 0x7F, 0x10, 0x28, 0x44, 0x00, 0x00, - 0x00, 0x41, 0x7F, 0x40, 0x00, 0x00, - 0x7C, 0x04, 0x78, 0x04, 0x78, 0x00, - 0x7C, 0x08, 0x04, 0x04, 0x78, 0x00, - 0x38, 0x44, 0x44, 0x44, 0x38, 0x00, - 0xFC, 0x18, 0x24, 0x24, 0x18, 0x00, - 0x18, 0x24, 0x24, 0x18, 0xFC, 0x00, - 0x7C, 0x08, 0x04, 0x04, 0x08, 0x00, - 0x48, 0x54, 0x54, 0x54, 0x24, 0x00, - 0x04, 0x04, 0x3F, 0x44, 0x24, 0x00, - 0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00, - 0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00, - 0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00, - 0x44, 0x28, 0x10, 0x28, 0x44, 0x00, - 0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00, - 0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, - 0x00, 0x08, 0x36, 0x41, 0x00, 0x00, - 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, - 0x00, 0x41, 0x36, 0x08, 0x00, 0x00, - 0x02, 0x01, 0x02, 0x04, 0x02, 0x00, - 0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x60, 0x70, 0x78, 0x3C, - 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, - 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, - 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, - 0x07, 0x07, 0x07, 0x07, 0x07, 0x0F, - 0x1F, 0xFE, 0xFE, 0xF8, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xF0, 0xFC, 0xFE, 0xFE, 0x3F, - 0x1F, 0x0F, 0x0F, 0x0F, 0x0F, 0x9F, - 0xFF, 0xFE, 0xFE, 0xFC, 0xF0, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x3E, 0x22, 0x22, 0x00, 0x02, 0x3E, - 0x02, 0x00, 0x3E, 0x20, 0x20, 0x00, - 0x00, 0x3C, 0x0A, 0x3C, 0x00, 0x3E, - 0x20, 0x20, 0x02, 0x3E, 0x02, 0x00, - 0x00, 0x1C, 0x22, 0x32, 0x00, 0x1E, - 0x20, 0x20, 0x1E, 0x00, 0x3E, 0x00, - 0x00, 0x2C, 0x2A, 0x1A, 0x00, 0x3E, - 0x0A, 0x02, 0x00, 0x02, 0x3E, 0x02, - 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, - 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xC0, 0xF8, 0xFF, 0xFF, - 0xFF, 0xE7, 0xE0, 0xE0, 0xE7, 0xFF, - 0xFF, 0xFF, 0xF8, 0xC0, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x3C, - 0x3C, 0x3C, 0x3C, 0x3C, 0x3C, 0x7E, - 0xFF, 0xE7, 0xE7, 0x81, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, - 0xF0, 0xF8, 0x7C, 0x3E, 0x1F, 0x0F, - 0x07, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x22, 0x22, 0x00, 0x00, - 0x0F, 0x0F, 0x2F, 0x2F, 0x0F, 0x0F, - 0xF0, 0xF0, 0xF2, 0xF2, 0xF0, 0xF0, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0x00, 0x00, 0x22, 0x22, 0x00, 0xFF, - 0x0F, 0x0F, 0x2F, 0x2F, 0x0F, 0xFF, - 0xF0, 0xF0, 0xF2, 0xF2, 0xF0, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xF0, 0xFE, 0xFF, 0xFF, 0x0F, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x0F, 0xFF, 0xFF, 0xFE, 0xF0, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, - 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xF0, - 0xF8, 0x7F, 0x7F, 0x1F, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x0F, 0x3F, 0x7F, 0x7F, 0xFF, - 0xF9, 0xF0, 0xF0, 0xF0, 0xF0, 0xF8, - 0xFC, 0x7F, 0x7F, 0x3F, 0x0F, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, - 0xFF, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, - 0xFF, 0x11, 0x11, 0x11, 0x11, 0x11, -}; diff --git a/keyboards/handwired/d48/info.json b/keyboards/handwired/d48/info.json deleted file mode 100644 index 3329c4c599..0000000000 --- a/keyboards/handwired/d48/info.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "keyboard_name": "D48", - "manufacturer": "Andrew Dunai", - "url": "", - "maintainer": "and3rson", - "usb": { - "vid": "0xFEED", - "pid": "0x6060", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - {"x":8, "y":0}, - {"x":11, "y":0}, - - {"x":0, "y":1}, - {"x":1, "y":1}, - {"x":2, "y":1}, - {"x":3, "y":1}, - {"x":4, "y":1}, - {"x":5, "y":1}, - {"x":6, "y":1}, - {"x":7, "y":1}, - {"x":8, "y":1}, - {"x":9, "y":1}, - {"x":10, "y":1}, - {"x":11, "y":1}, - - {"x":0, "y":2}, - {"x":1, "y":2}, - {"x":2, "y":2}, - {"x":3, "y":2}, - {"x":4, "y":2}, - {"x":5, "y":2}, - {"x":6, "y":2}, - {"x":7, "y":2}, - {"x":8, "y":2}, - {"x":9, "y":2}, - {"x":10, "y":2}, - {"x":11, "y":2}, - - {"x":0, "y":3}, - {"x":1, "y":3}, - {"x":2, "y":3}, - {"x":3, "y":3}, - {"x":4, "y":3}, - {"x":5, "y":3}, - {"x":6, "y":3}, - {"x":7, "y":3}, - {"x":8, "y":3}, - {"x":9, "y":3}, - {"x":10, "y":3}, - {"x":11, "y":3}, - - {"x":0, "y":4}, - {"x":1, "y":4}, - {"x":2, "y":4}, - {"x":3, "y":4}, - {"x":4, "y":4}, - {"x":5, "y":4}, - {"x":6, "y":4}, - {"x":7, "y":4}, - {"x":8, "y":4}, - {"x":9, "y":4}, - {"x":10, "y":4}, - {"x":11, "y":4} - ] - } - } -} diff --git a/keyboards/handwired/d48/keymaps/anderson/lightmode.c b/keyboards/handwired/d48/keymaps/anderson/lightmode.c deleted file mode 100644 index bc05956214..0000000000 --- a/keyboards/handwired/d48/keymaps/anderson/lightmode.c +++ /dev/null @@ -1,44 +0,0 @@ -#include "lightmode.h" - -#ifdef LIGHTMODE_ENABLE - -/* Light modes switcher */ - -uint8_t light_mode = SMOOTHLED; - -void set_light_mode(light_mode_t value, uint32_t color) { - light_mode = value; - if (light_mode == SMOOTHLED) { - smoothled_set(color); - } else { - dmc12_start(color, true); - } -} - -void process_light_mode(void) { - if (light_mode == SMOOTHLED) { - smoothled_process(); - } else { - dmc12_process(); - } -} - -void update_light_mode(uint32_t color) { - if (light_mode == SMOOTHLED) { - smoothled_set(color); - } else { - dmc12_start(color, false); - } -} - -void next_light_mode(uint32_t color) { - light_mode = (light_mode + 1) % LIGHT_MODE_SIZE; - set_light_mode(light_mode, color); -} - -void matrix_scan_kb(void) { - process_light_mode(); - matrix_scan_user(); -} - -#endif diff --git a/keyboards/handwired/d48/keymaps/anderson/lightmode.h b/keyboards/handwired/d48/keymaps/anderson/lightmode.h deleted file mode 100644 index 0c81e476bb..0000000000 --- a/keyboards/handwired/d48/keymaps/anderson/lightmode.h +++ /dev/null @@ -1,12 +0,0 @@ -#include "smoothled.h" -#include "dmc12.h" -#include "quantum.h" - -/* Light modes */ -enum light_mode_enum { SMOOTHLED, DMC12, LIGHT_MODE_SIZE }; -typedef enum light_mode_enum light_mode_t; - -void set_light_mode(light_mode_t value, uint32_t color); -void process_light_mode(void); -void update_light_mode(uint32_t color); -void next_light_mode(uint32_t color); diff --git a/keyboards/handwired/d48/keymaps/anderson/rules.mk b/keyboards/handwired/d48/keymaps/anderson/rules.mk deleted file mode 100644 index e925b9a89f..0000000000 --- a/keyboards/handwired/d48/keymaps/anderson/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -OPT_DEFS += -DLIGHTMODE_ENABLE -SRC += smoothled.c dmc12.c seq.c lightmode.c diff --git a/keyboards/handwired/d48/readme.md b/keyboards/handwired/d48/readme.md deleted file mode 100644 index a20b8a4251..0000000000 --- a/keyboards/handwired/d48/readme.md +++ /dev/null @@ -1,87 +0,0 @@ -# D48 - -![Proton C based handwired 40% keyboard](https://i.imgur.com/2wCYuno.jpg) - -A Proton C based handwired 48 key keyboard with 2 rotary encoders, I2C OLED, WS2812 strip, buzzer & clock! - -- Keyboard Maintainer: Andrew Dunai -- Hardware Supported: Proton C handwired - -Make example for this keyboard (after setting up your build environment): - - make handwired/d48:default - -## Details - -- Proton C based handwired keyboard -- 2x custom 1.25mm stainless steel plates -- Kailh Choc White (clicky) -- 2x rotary encoders -- 0.91" 128x32 I<sup>2</sup>C OLED -- Small buzzer mounted inside (still waiting for the AST1109MLTRQ boys) -- WS2812 strip (14 LEDs) -- DS1307 I<sup>2</sup>C module real-time clock - -Build process: [album](https://imgur.com/gallery/zZZGdDw) - -## Pinout - -![D48 pinout](https://imgur.com/QoStCvD.jpg) - -## Challenges - -I'm very happy with the result, but at some point Proton C was driving me nuts. - -I did a lot of trial and error during assembly & programming. -There were a lot of *yet* undocumented caveats, -so I'll outline them here so that you guys can avoid the same issues I had. - -## Matrix & encoders - -Although this is a 48-key board with a 12-col & 4-row matrix, I've decided to add an extra row above the first one -to make my matrix 12x5 and wire encoders' push buttons as 2 extra keys, thus making it a total of 50 (12x4 + 2 encoders). -I used 2 columns (9 & 12) for those buttons. - -So, a first row actually has 2 buttons on columns 9 & 12 (because encoders are located near those columns). -Encoders' push buttons are also configured via QMK's keymap. - -Check out the `d48.h` & `config.h` for pins used & keymap macro definition. - -## I<sup>2</sup>C/OLED - -Most of the stuff worked out of the box, except me choosing the right pins for my OLED. - -On the Proton C pinout, there are 3 labels for I<sup>2</sup>C and for some reason -there are 2 pairs of SDA/SCL for I<sup>2</sup>C<sup>1</sup> channel: `B8`/`B9` (rear left side) and `B6`/`B7` (rear right side). -I'm not sure if this is a mistake or if I was doing something wrong. So initially I picked `B8`/`B9` -which were not working. When I switched to B6/B7, things worked like a charm. -Later I used B9 for matrix row. No issues so far. - -Oh, and by the way, while using `B8`/`B9`, keyboard was sometimes *swallowing* quick keypresses. -I believe this was due to I(2)C timeouts (because incorrect pins were used for OLED). - -## Buzzer - -It turns out once you switch on `AUDIO_ENABLE`, you cannot use A4 & A5 because they interfere with the buzzer. -My guess is that buzzer uses DAC channels (not sure why both). - -I couldn't find this in documentation. Honestly, Proton C has almost zero documentation and this was -the biggest challenge. Anyway, apart from almost going crazy from those challenges, I really liked it! - -## RGB - -I used pin `A15` for my WS28128 RGB strip. - -## D1307 real-time clock - -Connecting DS1307 RTC was a piece of cake: same I<sup>2</sup> pins as OLED (SDA/SCL), GND to GND and power to Proton C VUSB pin (5v). - -## Other issues - -- `B5` could not be used for matrix. -- `TAP_CODE_DELAY` had to be increased to 10 to fix `tap_code(KC_VOLU/KC_VOLD)` calls being swallowed in encoder callback. -- Be extremely attentive about the pinout: keep in mind that **the official Proton C pinout displays the rear of the board, not the front.** Being used to front pinouts, I ended up soldering entire matrix to the wrong side, so I had to desolder every wire and connect it to the opposite side. - -## Conclusion - -I had a lot of fun. The layout was inspired by the Planck THK. Feel free to ask any questions! diff --git a/keyboards/handwired/d48/rules.mk b/keyboards/handwired/d48/rules.mk deleted file mode 100644 index c9fc60c130..0000000000 --- a/keyboards/handwired/d48/rules.mk +++ /dev/null @@ -1,26 +0,0 @@ -# MCU name -MCU = STM32F303 -BOARD = QMK_PROTON_C - -# Bootloader selection -BOOTLOADER = stm32-dfu - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = yes # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -AUDIO_ENABLE = yes -USE_I2C = no -RGBLIGHT_ENABLE = yes -ENCODER_ENABLE = yes -OLED_ENABLE = yes -OLED_DRIVER = SSD1306 -UNICODE_ENABLE = yes - -SRC += ds1307.c taphold.c diff --git a/keyboards/handwired/d48/taphold.c b/keyboards/handwired/d48/taphold.c deleted file mode 100644 index 0b56a5a6a1..0000000000 --- a/keyboards/handwired/d48/taphold.c +++ /dev/null @@ -1,29 +0,0 @@ -#include "taphold.h" - -bool taphold_process(uint16_t keycode, keyrecord_t *record) { - for (int i = 0; i < taphold_config_size; i++) { - taphold_t *config = &taphold_config[i]; - if (config->key == keycode && record->event.pressed) { - if (config->mode == TAPHOLD_LAYER) { - layer_on(config->longAction); - } else { - register_code(config->longAction); - } - config->time = timer_read32(); - config->keypos = record->event.key; - return false; - } else if (KEYEQ(record->event.key, config->keypos) && !record->event.pressed) { - if (config->mode == TAPHOLD_LAYER) { - layer_off(config->longAction); - } else { - unregister_code(config->longAction); - } - if (timer_elapsed32(config->time) < taphold_timeout) { - tap_code(config->shortAction); - } - config->keypos.row = 255; - return false; - } - } - return true; -} diff --git a/keyboards/handwired/d48/taphold.h b/keyboards/handwired/d48/taphold.h deleted file mode 100644 index 3bc5ca0275..0000000000 --- a/keyboards/handwired/d48/taphold.h +++ /dev/null @@ -1,25 +0,0 @@ -#include "quantum.h" - -typedef enum taphold_mode_t { - TAPHOLD_LAYER, - TAPHOLD_MOD -} taphold_mode_t; - -typedef struct taphold_t { - uint16_t key; - uint32_t time; - taphold_mode_t mode; - uint16_t shortAction; - uint16_t longAction; - keypos_t keypos; - // We store key pos to properly release the key - // even when a different layer is active and the key has a different action now -} taphold_t; - -extern taphold_t taphold_config[]; -extern uint16_t taphold_config_size; -// Dual keys tap/hold timeout. -// If key is tapped for less than this value, send key in addition to primary action after completing the action. -extern uint32_t taphold_timeout; - -bool taphold_process(uint16_t keycode, keyrecord_t *record); |