2025-08-18 20:01:21

This commit is contained in:
swangnice
2025-08-18 20:01:21 +08:00
parent 8a920994bf
commit 7c31f72eea
254 changed files with 29201 additions and 3566 deletions

View File

@@ -9,4 +9,15 @@ draft = false
>}}
Welcome to my website! I'm really happy you stopped by.
{{< /typeit >}}
# This is My Page
I am a recent graduate student.
My interests include robotics 🤖, embedded systems 📟, and photography 📸.
Here, I will share my thoughts, notes, projects, and some interesting content. Stay tuned!
## Some Notes
## Some Projects

View File

@@ -3,3 +3,19 @@ title = 'About'
date = 2024-09-20T04:17:50Z
draft = false
+++
## About Me
Hi, I'm S. Wang, a robotics enthusiast, embedded systems tinkerer, and lifelong learner with a passion for blending hardware and software into seamless solutions. Im currently a new graduate Masters student, and planning to work in ShenZhen, China.
My projects span a wide spectrum: from building quadrotor control systems and FPGA-based accelerators, to creating self-hosted tools. I love diving into low-level performance optimization, experimenting with control algorithms like PID, LQR, and MPC, and exploring AI integration for smarter automation.
When Im not coding or soldering, youll find me behind a camera, capturing moments with the same attention to detail I bring to my engineering work. If youre into robotics, embedded systems, or self-hosted tech, well probably get along just fine.
## About This Site
Here is my personal corner of the internet - a space where I share my journey in robotics, embedded systems, control algorithms, and other technologies. Its more than just a blog — its my open lab notebook. I document everything from hardware design to software integration.
Everything here is written with two goals in mind:
1. To help me think and learn better through documentation.
2. To share ideas that might inspire or assist others working on similar challenges.
⚠️ Disclaimer: I cant promise everything here will be perfectly readable, but I do hope youll find something useful.

View File

@@ -2,4 +2,54 @@
title = 'C'
date = 2024-09-20T04:17:50Z
draft = false
+++
+++
<!-- 笔试题有的时候不给正常输入只给plain text -->
## Format Specifier
Common specifiers:
```
%d int
%u unsigned int
%c char
%s string (char s[])
%p void*
%ld long
%lld long long (64bits)
%f float/double
%lf float/double(usually used in scanf)
```
We can extend the format specifiers:
``` C
printf("%5d", 33); // width " 33"
printf("%.2f", 3.14159); // precision "3.14"
printf("%8.2f", 3.14159);// " 3.14"
printf("%-5d", 33); //Alignment "33 "
```
## IO
Read or print via terminal:
``` C
int x;
scanf("%d", &x);
printf("%d", x);
```
## Type Conversion
String to int, float....
``` c
int i = atoi("123");
double d = atof("3.14");
long l = strtol("123", NULL, 10); // safer, auto detec errors
double d2 = strtod("3.14", NULL);
```
Numbers to string:
``` c
int i = 123;
char buf[20];
sprintf(buf, "%d", i);
```

View File

@@ -32,12 +32,12 @@ git remote add private https://<git_domain>/<username>/project-private.git
## Branch
List all branches:
List all branches, the branch where you are currently working is marked with an asterisk (*):
``` bash
git branch -a
```
Move to a specific branch, the branch where you are currently working is marked with an asterisk (*):
Move to a specific branch:
``` bash
git checkout <branch_name>
```

View File

@@ -0,0 +1,11 @@
+++
title = 'Git'
date = 2024-09-20T04:17:50Z
draft = false
+++
## Commit
1. Add date and time in commit messages:
``` bash
git commit -m "$(date '+%Y-%m-%d %H:%M:%S')"
```

View File

@@ -7,5 +7,7 @@ weight = 100
Here are some insights from my experiences with MCUs. Additionally, you can find my personal MCU benchmark site [here](https://mcubenchmark.swangnice.cn).
Additionally, I know several excellent books about CPU architecture and plan to share a series of notes based on them.

View File

@@ -0,0 +1,14 @@
+++
title = "Notes on CPU Architecture"
date = 2024-09-20T04:17:50Z
draft = false
series = ["CPU Architecture Notes"]
series_order = 1
weight = 1
+++
I hope to share several books about CPU architecture here, and this is a book list:
1. Computer Organization and Design RISC-V Edition. _David A. Patterson & John L. Hennessy_
2. Computer Architecture: A Quantitative Approach. _John L. Hennessy & David A. Patterson_
Additionally, I plan to create CPU demonstrations using Verilog/SystemVerilog.