1.以Arduino IDE为开发工具(版本为1.8.5),选取“项目”菜单下“加载库”的“添加一个ZIP库”选项; 2.在文件下载对话框,选取“DFRobot_AS7341-master.ZIP”; 图6加载ZIP库 3.在完成后,在“项目”菜单 “加载库”下即可见到“DFRobot_AS7341-master”选项。有了DFRobot_AS7341库,就可以编写相应的控制程序了...
Run the following code to import the necessary modules and initialize the I2C connection with the sensor: Download File Copy Code fromtimeimportsleepimportboardfromadafruit_as7341importAS7341 i2c = board.I2C() sensor = AS7341(i2c) Now you're ready to read values from the sensor using these ...
1.以Arduino IDE为开发工具(版本为1.8.5),选取“项目”菜单下“加载库”的“添加一个ZIP库”选项; 2.在文件下载对话框,选取“DFRobot_AS7341-master.ZIP”; 图6加载ZIP库 3.在完成后,在“项目”菜单 “加载库”下即可见到“DFRobot_AS7341-master”选项。有了DFRobot_AS7341库,就可以编写相应的控制程序了...