borrwoed a lot code from https://github.com/foriequal0/devterm_keyboard in order to optimize the trackball

This commit is contained in:
cuu
2021-12-16 20:41:37 +08:00
parent 1a1be01dbb
commit b1370d2124
18 changed files with 538 additions and 118 deletions

View File

@@ -2,6 +2,7 @@
#define DEVTERM_H
#define KEY_LATENCY 1400
#include "state.h"
#include <USBComposite.h>
typedef struct key_debouncing{
@@ -32,6 +33,8 @@ class DEVTERM {
//**Serial and USBCompositeSerial can not use together, otherwise the keyboard firmware uploading will be dead**
//and you will need to find a way out to flash the stm32duino bootloader once again
//USBSerial *_Serial;//_Serial = &Serial;
State *state;
uint32_t delta;
};
#define KEYBOARD_PULL 1 // 1 for PULLUP, 0 FOR PULLDOWN