📄 main.c
字号:
/*
see README.txt for details.
chris <cliechti@gmx.net>
*/
#include "hardware.h"
#include <stdlib.h>
#include <stdio.h>
#include "lcd.h"
//the font file has no separate header file, it just provides
//the font in this array:
extern const char lcdfont[64];
//keymap for the AT keyboard SG layout
typedef struct {
char scancode;
char unshifted;
char shifted;
} keytranslation;
#define SHIFTED (1<<0)
#define ALTERED (1<<1)
const keytranslation keymap[] = {
{0x1c, 'a', 'A'},
{0x32, 'b', 'B'},
{0x21, 'c', 'C'},
{0x23, 'd', 'D'},
{0x24, 'e', 'E'},
{0x2b, 'f', 'F'},
{0x34, 'g', 'G'},
{0x33, 'h', 'H'},
{0x43, 'i', 'I'},
{0x3b, 'j', 'J'},
{0x42, 'k', 'K'},
{0x4b, 'l', 'L'},
{0x3a, 'm', 'M'},
{0x31, 'n', 'N'},
{0x44, 'o', 'O'},
{0x4d, 'p', 'P'},
{0x15, 'q', 'Q'},
{0x2d, 'r', 'R'},
{0x1b, 's', 'S'},
{0x2c, 't', 'T'},
{0x3c, 'u', 'U'},
{0x2a, 'v', 'V'},
{0x1d, 'w', 'W'},
{0x22, 'x', 'X'},
{0x1a, 'y', 'Y'},
{0x35, 'z', 'Z'},
{0x16, '1', '+'},
{0x1e, '2', '"'},
{0x26, '3', '*'},
{0x25, '4', '
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -