树莓派2 ubuntu
A Rasberry Pi (RPi) is a low cost mini computer and has the size of a credit card. It is a great solution for hobby and home projects (and some commercial, too) because it has various input/output pins, video, camera, sound interfaces and many good OSes to install.
Rasberry Pi(RPi)是一种低成本的微型计算机,具有信用卡大小。 对于业余和家庭项目(以及一些商业项目),它是一个很好的解决方案,因为它具有各种输入/输出引脚,视频,摄像头,声音接口以及许多不错的OS。
介绍 (Introduction)
Inter-Integrated Circuit (I2C) is a protocol to allow communication between multiple chips. It only uses two lines to communicate:
集成电路间(I2C)是一种允许多个芯片之间进行通信的协议。 它仅使用两行进行通信:
- SDA: Serial Data SDA:串行数据
- SCL: Serial ClockSCL:串行时钟
It combines some characteristics of two other communications (UART and SPI):
- Like SPI, it is only intended for short distance communication; 与SPI一样,它仅适用于短距离通信。
- Like UART, it only requires two wires to exchange information. 与UART一样,它仅需要两根导线即可交换信息。
And solve some of their problems:
并解决他们的一些问题:
Unlike SPI, it allows more than one master on the line and has only two lines, which can save a lot of connections and space;
与SPI不同,它允许一条线上有多个主机,而只有两条线路,这样可以节省大量的连接和空间。
- Unlike UART, the SCL line is used to synchronize data and can support more than two devices. 与UART不同,SCL线用于同步数据,可以支持两个以上的设备。
An I2C bus protocol