官术网_书友最值得收藏!

Digital pins

The digital pins on the Arduino are the ones that are used the most when connecting external sensors. These pins can be configured for either input or output. These pins default to an input state; therefore, when we are using a pin for input we do not need to explicitly declare them as input pins; however, it is good practice to do so because it will make it easier for someone reading our code to understand what the pin is being used for.

The digital pins will have one of two values: HIGH (1), which is 5V, or LOW (0), which is 0V. Once we start to program the Arduino, we will see how to read from or write to these pins.

主站蜘蛛池模板: 枣庄市| 板桥市| 桂阳县| 鹤岗市| 郑州市| 丹巴县| 荥经县| 安丘市| 玛沁县| 盐源县| 双牌县| 民县| 横山县| 莆田市| 墨脱县| 东港市| 板桥市| 苏尼特右旗| 湖州市| 江达县| 孟州市| 手游| 思南县| 遵化市| 于都县| 阳江市| 天镇县| 措勤县| 陇川县| 四平市| 沧州市| 通城县| 通州区| 青铜峡市| 东城区| 涞水县| 武陟县| 海南省| 新疆| 文水县| 通海县|