大波丁
大波丁
一只爱玩的程序猿

注册于 2年前

回答
5
文章
1
关注者
0

发布于1年前

嵌入式需要抓包吗,所有的包都可以通过中断截取吧,自己写持久层就行了。可能我孤陋寡闻了。

发布于1年前

已解决,关闭问题。

发布于1年前

参考这段代码,将物理按键映射到坐标系中

  1. void lv_port_indev_init(void) {
  2. static lv_indev_drv_t indev_drv;
  3. /*assign buttons to coordinates*/
  4. static lv_point_t points_array[] = {{120, 120},
  5. {0, 0},
  6. {70, 35},
  7. {0, 0}};
  8. /* Initialize the on-board buttons */
  9. rt_pin_mode(BUTTON0_PIN, PIN_MODE_INPUT);
  10. rt_pin_mode(BUTTON1_PIN, PIN_MODE_INPUT);
  11. rt_pin_mode(BUTTON2_PIN, PIN_MODE_INPUT);
  12. rt_pin_mode(BUTTON_WKUP_PIN, PIN_MODE_INPUT);
  13. lv_indev_drv_init(&indev_drv); /*Basic initialization*/
  14. indev_drv.type = LV_INDEV_TYPE_BUTTON;
  15. indev_drv.read_cb = button_read;
  16. /*Register the driver in LVGL and save the created input device object*/
  17. button_indev = lv_indev_drv_register(&indev_drv);
  18. lv_indev_set_button_points(button_indev, points_array);
  19. }

发布于2年前

你说的东西都不在一个维度上,RTT? Keil?

RTT和Keil矛盾吗,Keil中就不能使用RTT吗?

你说的是RT Studio和KEIL的比较吧,一个是基于开放使用的arm-none-eabi-gcc,一个是基于KEIL自研的ARMCC,两种编译器,前者免费的,后者付费的(中国大多是盗版使用)。二者性能确实有点差异。

发布于2年前

建议使用RT Studio,我一直在这上面写C++

回到
顶部

发布
问题

投诉
建议