数码之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 1560|回复: 4

[other] Arduino与 iic串口 LCD1602显示屏 连接不成功的要留意这问题了

[复制链接]
发表于 2022-9-19 11:13:01 | 显示全部楼层




  //  Serial.println("I2C Scanning...");
  //  nDevices = 0;
  //  for (address = 1; address < 127; address++ ) {
  //    //The i2c_scanner uses the return value of the Write.
  //    //endTransmisstion to see if a device did acknowledge to the address.
  //
  //    i2c.beginTransmission(address);
  //    error = i2c.endTransmission();
  //
  //    if (error == 0) {
  //      Serial.print("I2C device found at address 0x"); Serial.print(address, HEX); Serial.print(" !\r\n");
  //      nDevices++;
  //
  //    } else if (error == 4) {
  //      Serial.print("Unknow error at address 0x"); Serial.print(address, HEX); Serial.print(" !\r\n");
  //    }
  //  }
  //  if (nDevices == 0) {
  //    Serial.println("No I2C devices found\r\n");
  //  } else {
  //    Serial.println("done\r\n");
  //  }
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 微信登录

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2025-7-22 05:21 , Processed in 0.078000 second(s), 8 queries , Redis On.

Powered by Discuz!

© 2006-2025 MyDigit.Net

快速回复 返回顶部 返回列表