月度归档: 2022 年 7 月

14 篇文章

arduino 查询 I2C 设备地址
arduino 查询 I2C 设备地址 https://zhuanlan.zhihu.com/p/349791145 \#include <Wire.h> #include "I2cScan.h" // 扫描 i2c 地址 void scanI2C() { Log.infoln("开始扫描 I2C"); auto count = 0; …
arduino 调用 1602a
我的 1602a 使用 i2c 接口 不同芯片有不同的 I2C 地址, 从下面的链接查看 I2C LCD与Arduino接口 #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x3f, 16, 2); //声明I2C地址和点阵的规格为16字符和2行 // 定义字符.1, 指定哪个…
arduino 日志
arduino 使用日志系统 https://github.com/thijse/Arduino-Log #include <ArduinoLog.h> // 日志, https://github.com/thijse/Arduino-Log // #define DISABLE_LOGGING // 关闭日志功能 void setup…
android studio 启动卡死解决
android studio 无法启动解决。启动 android studio 时显示启动画面,但一直无法继续 可以安装 IntelliJ IDEA Edition 启动时提示 bind 错误。 因为 IDEA需要在端口6942~6991间找到一个可用端口并绑定(bind) 。但是这些端口被 Hyper-V 占用。有两种解决方案 执行 ```net…