md(git back) for暴力涂色
This commit is contained in:
parent
1c7ba7dd86
commit
6615870145
|
@ -31,6 +31,10 @@ git remote remove origin
|
|||
git remote set-url --add origin git@github.com:*.git
|
||||
|
||||
git push -u origin master
|
||||
|
||||
# 退到/进到 指定commit的sha码
|
||||
|
||||
git reset --hard dde8c25694f34acf8971f0782b1a676f39bf0a46
|
||||
```
|
||||
## SConscript
|
||||
加入这个文件可以使在当前文件夹里的也能被调用
|
||||
|
|
|
@ -14,13 +14,18 @@ void lcd_white(int x, int y)
|
|||
{
|
||||
lcd_address_set(x, y, x, y);
|
||||
lcd_write_half_word(WHITE);
|
||||
|
||||
}
|
||||
void snake_address(int x, int y, int r, const rt_uint16_t da)
|
||||
{
|
||||
lcd_fill(x*r, y*r, x*r+r-1, y*r+r-1,da);
|
||||
for (int i = x * r; i < x * r + r; i++)
|
||||
{
|
||||
for (int j = y * r; j < y * r + r; j++)
|
||||
{
|
||||
lcd_address_set(i, j, i, j);
|
||||
lcd_write_half_word(da);
|
||||
}
|
||||
}
|
||||
}
|
||||
// bt 命令行
|
||||
int color_cmd(int argc, char **argv)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue