create a new file compass.rs under the examples directory and copy the contents of src/main.rs into it. clear the super loop. we will replace it with an example application code to test the...
在examples目录下创建compass.rs文件,复制src/main.rs的内容,去除超循环,替换为测试指南针的代码。使用raspberry pico、usb线、hc-05蓝牙模块和hmc5833l指南针模块,读取hmc5883l数据寄存器,进行校准,计算磁头和强度,并打印结果。