红外遥控成功

This commit is contained in:
2024-08-06 18:00:29 +08:00
parent 823ddd46ec
commit d5b82bdaa9
6 changed files with 82 additions and 32 deletions

View File

@@ -20,6 +20,9 @@
``` c
Snake_Thread = rt_thread_create("Snake_Thread", snake_entry, RT_NULL, THREAD_STACK_SIZE, 10, THREAD_TIMESLICE);
```
不注释又闪了,
加到myproject没唤醒时没事唤醒后闪重启也闪
![alt text](image-2.png)
### GET_PIN(F, 11) 的头文件
``` c
@@ -42,4 +45,13 @@ Snake_Thread = rt_thread_create("Snake_Thread", snake_entry, RT_NULL, THREAD_STA
| 0x38 | 电源键 |
| 0xA8 | 静音 |
| 0x88 | 菜单 |
| 0x28 | 退出 |
| 0x28 | 退出 |
### 等待消息
写成这样,导致一直等待,所以一直没反应
``` c
if(page_chosen == 1)
{
rt_mdelay(1000);
}
```

BIN
my_error/image-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB