Commit Graph

79 Commits

Author SHA1 Message Date
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 237c74467a term: support '\r' 2024-01-10 17:14:12 +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 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 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 6feac794ed uart: support backspace with scrolling up to the last line in RX input 2024-01-09 19:45:45 +08:00
Zihao Yu 93f0b95beb uart: fix typo 2024-01-09 17:50:28 +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 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 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 9a5ccda71b {uart,vga}: bypass pin_peek() on the fast path 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 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
Zihao Yu 7d5900e5ea add uart framework 2024-01-08 23:59:07 +08:00
Zihao Yu 3da885895f pic: remove unused vbg_1.png 2024-01-08 23:59:07 +08:00
Zihao Yu e506ee2561 refactor code for creating texture 2024-01-08 23:59:07 +08:00
Zihao Yu 5031e6760e organize source files by components 2024-01-08 23:58:39 +08:00
Zihao Yu e577dd7810 enlarge window size and move the position of vga area 2024-01-08 23:10:00 +08:00
xinyangli edd54dd04d refactor: clean up headers inclusion in headers 2024-01-05 17:03:58 +08:00
Zihao Yu 166f29349d nvboard: remove is_rt and is_output in nvboard_bind_pin() API
* after refactoring the internal implementation, they are unused now
2024-01-02 03:49:01 +08:00
Zihao Yu 316c96b0df vga: move init code in update_state() to constructor 2024-01-02 03:29:52 +08:00
Zihao Yu 2635c57c41 component: optimize SEGS7.update_state() with vector peek 2024-01-02 03:22:52 +08:00
Zihao Yu 43f7981aee component: comment out unused RGB_LED 2024-01-02 02:26:12 +08:00
Zihao Yu 6d370e28e7 component: remove rt_components and call update_state() conditionally
* this can reduce the number of unnecessary function call
2024-01-02 02:20:32 +08:00
Zihao Yu ab21fb700c vga: peek 8 bits if pins are bound by vector 2024-01-02 01:11:34 +08:00
Zihao Yu 63f405ebd4 bind input pin value to the origin signal
* also remove nvboard_update_input()
2024-01-02 00:57:33 +08:00
Zihao Yu e483b1ca6e bind output pin value to the origin signal
* also remove nvboard_update_output()
2024-01-02 00:56:15 +08:00
Zihao Yu 1e01a12599 pins: bind pin value to the data field in pin_array 2024-01-02 00:15:25 +08:00
Zihao Yu 6d6172a1a0 pins: use pin_peek() and pin_poke() to access pin value 2024-01-02 00:03:01 +08:00
Zihao Yu 9ce3b3c98d component: remove interface type 2024-01-01 23:34:43 +08:00
Zihao Yu 2e641ff0a5 component: do not distinguish input pins and output pins 2024-01-01 23:29:29 +08:00
Zihao Yu bb5201122d merge the encoding of input pins and output pins 2024-01-01 23:22:21 +08:00
Zihao Yu 918d31a3b4 fix typo 2024-01-01 22:42:49 +08:00
Zihao Yu 6d3ff06ee7 include: rename constrs.h to pins.h 2024-01-01 22:39:16 +08:00
Zihao Yu 7591cd2cb1 nvboard: do not call SDL_RenderPresent() if GUI is not updated 2024-01-01 22:25:10 +08:00
Yu Jin 3c52468fc6 feat: macOS support 2023-09-20 09:41:30 +08:00
Zihao Yu 079dd0e643 add comment for unused RTS pin 2023-07-27 12:18:04 +08:00
nekomona 45530c16b9 Interface positioning 2022-03-15 14:19:43 +08:00
nekomona b7b55d3803 Reorganizing nxdc parser and binding writer 2022-03-15 14:19:37 +08:00
22040866-YuHongli 2ae08f8da5 modify render 2022-03-14 12:05:45 +08:00