add schematic pdfs and firmware code

This commit is contained in:
cuu
2021-03-29 19:32:40 +08:00
parent 7c8c69ab83
commit 9278b6bad3
35 changed files with 40112 additions and 6891 deletions

View File

@@ -0,0 +1,29 @@
#ifndef DEVTERM_H
#define DEVTERM_H
#include <USBComposite.h>
typedef struct keyboard_state{
uint8_t layer;
uint8_t shift;
uint8_t caps_lock;
}KEYBOARD_STATE;
class DEVTERM {
public:
HIDKeyboard *Keyboard;
HIDMouse *Mouse;
HIDJoystick *Joystick;
KEYBOARD_STATE Keyboard_state;
USBCompositeSerial *_Serial;
//if not to use USBCompositeSerial,then use default Serial
//**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;
};
#endif