Top Menu

使用aiohttp为SenseHat创建api

使用aiohttp可以创建本地API接口用于远程调用SenseHat,再配合frp,可以实现在线调用SenseHat。

将系统python版本切换为3(aiohttp依赖python3)

ls /usr/bin/python* update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2 update-alternatives --config python

Continue Reading 0

Powered by WordPress. Designed by WooThemes