Zihao Yu
|
a48416ef81
|
fix compile error with clang in MacOS
|
2024-03-07 22:09:38 +08:00 |
Zihao Yu
|
b8c2ab1661
|
font: use Shaded-category render API instead of LCD-category
* the LCD-category API requires higher version of SDL_ttf
|
2024-01-11 12:45:02 +08:00 |
Zihao Yu
|
e770a22bed
|
term: draw cursor during initialization
|
2024-01-11 00:53:19 +08:00 |
Zihao Yu
|
a73c474d37
|
keyboard: adjust position
|
2024-01-11 00:44:47 +08:00 |
Zihao Yu
|
f2973b686b
|
update labels of uart and keyboard
|
2024-01-11 00:39:54 +08:00 |
Zihao Yu
|
d2b8a0e380
|
uart: merge rx terminal into tx terminal
* RX should send each key directly, instead of providing cook mode
|
2024-01-11 00:20:29 +08:00 |
Zihao Yu
|
8179e010a6
|
uart: add '\n' at the end of the input string
|
2024-01-10 17:14:25 +08:00 |
Zihao Yu
|
237c74467a
|
term: support '\r'
|
2024-01-10 17:14:12 +08:00 |
Zihao Yu
|
23cd183fea
|
vga: refactor
|
2024-01-10 10:55:13 +08:00 |
Zihao Yu
|
03f4bf79c2
|
vga: allow unbound blank_n signal
|
2024-01-10 10:54:40 +08:00 |
Zihao Yu
|
8950f4cd55
|
resources: remove unused files
|
2024-01-10 03:40:33 +08:00 |
Zihao Yu
|
fc308eb394
|
nvboard: refactor version string
|
2024-01-10 03:35:14 +08:00 |
Zihao Yu
|
9b168c2427
|
render: add NVBoard name and version
|
2024-01-10 03:32:37 +08:00 |
Zihao Yu
|
c48fcfa4c3
|
keyboard: add label
|
2024-01-10 03:07:49 +08:00 |
Zihao Yu
|
eb3f526890
|
uart: add label
|
2024-01-10 03:07:46 +08:00 |
Zihao Yu
|
5e099ea6db
|
refactor
|
2024-01-10 02:43:15 +08:00 |
Zihao Yu
|
e75c38df20
|
switch: add lines and texts
|
2024-01-10 02:04:32 +08:00 |
Zihao Yu
|
d253424ce8
|
led: add lines and texts
|
2024-01-10 02:00:32 +08:00 |
Zihao Yu
|
fa744aa732
|
button: draw surrounding lines
|
2024-01-10 01:59:52 +08:00 |
Zihao Yu
|
3d6f4f3af1
|
segs7: draw surrounding lines
|
2024-01-10 00:37:03 +08:00 |
Zihao Yu
|
a8c9c54e87
|
keyboard: refine the textures of up key and down key
|
2024-01-09 19:59:24 +08:00 |
Zihao Yu
|
2f25106e0f
|
uart: draw lines above and below RX input
|
2024-01-09 19:57:27 +08:00 |
Zihao Yu
|
6feac794ed
|
uart: support backspace with scrolling up to the last line in RX input
|
2024-01-09 19:45:45 +08:00 |
Zihao Yu
|
d8fd0f12f9
|
keyboard: highlight pressing key
|
2024-01-09 19:05:40 +08:00 |
Zihao Yu
|
199515d7f4
|
nvboard: fill keyboard background with white
|
2024-01-09 17:48:44 +08:00 |
Zihao Yu
|
f0ed9b0473
|
keyboard: render the whole keyboard
|
2024-01-09 17:45:56 +08:00 |
Zihao Yu
|
5f1ce6df88
|
keyboard: render some keys
|
2024-01-09 13:06:03 +08:00 |
Zihao Yu
|
43c32540e9
|
uart: support backspace for RX input
|
2024-01-09 03:35:40 +08:00 |
Zihao Yu
|
7007a7b2cc
|
nvboard: do not call uart_rx_send() if it is idle
|
2024-01-09 03:13:05 +08:00 |
Zihao Yu
|
2e7135fcb6
|
refactor
|
2024-01-09 03:09:57 +08:00 |
Zihao Yu
|
211469f27b
|
uart: only show cursor in RX terminal when it gets focus
|
2024-01-09 03:01:00 +08:00 |
Zihao Yu
|
a83a8819c8
|
event: support switching between keyboard and uart RX
|
2024-01-09 02:34:33 +08:00 |
Zihao Yu
|
fd00b7854b
|
uart: support RX
|
2024-01-09 02:19:15 +08:00 |
Zihao Yu
|
28190b0c3e
|
uart: capture RX input in terminal
|
2024-01-09 02:14:08 +08:00 |
Zihao Yu
|
d06eb4811e
|
event: add basic test for SDL text mode
|
2024-01-09 00:39:40 +08:00 |
Zihao Yu
|
1c7e773419
|
nvboard: fix divide by 0 when diff == 0
|
2024-01-09 00:19:11 +08:00 |
Zihao Yu
|
b7a5b39a9b
|
nvboard: optimize with branch
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
adc894c3e1
|
vga: optimize the fast path of update_state()
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
91b82e5687
|
uart: add dedicated FPS for TX
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
54fe35b910
|
nvboard: change the condition of calling uart->check_tx()
* this can reduce the number of memory access
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
aedd663a5e
|
nvboard: change to count down to compare cnt with 0
* this can reduce one memory access
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
c7bf288ab6
|
uart: allow unbound TX pin
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
9a5ccda71b
|
{uart,vga}: bypass pin_peek() on the fast path
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
9ff263670e
|
{uart,vga}: count down for clock divisor to reduce the number of memory access
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
09453390e8
|
term: record dirty state of the screen
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
6a1ec9f5a0
|
font: do not use transparent background
* this can avoid clearing the foreground first when redrew
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
b8752ac898
|
uart: only update GUI when receiving a new char
* also limit the update frequency to the FPS
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
78b9b49c9d
|
term: support '\n'
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
61f89b2aa7
|
uart: support TX
|
2024-01-08 23:59:07 +08:00 |
Zihao Yu
|
f4d22b5b16
|
add basic terminal
|
2024-01-08 23:59:07 +08:00 |