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

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.

主站蜘蛛池模板: 宜昌市| 准格尔旗| 孝义市| 濉溪县| 武鸣县| 汝阳县| 疏附县| 嘉荫县| 嘉荫县| 武清区| 婺源县| 兰考县| 五常市| 潞城市| 静安区| 古田县| 象州县| 两当县| 临泽县| 博乐市| 铜鼓县| 云和县| 南和县| 乌鲁木齐市| 高邑县| 元阳县| 陆良县| 禹城市| 清徐县| 谢通门县| 洪雅县| 夏邑县| 乌兰浩特市| 沙田区| 长葛市| 雅江县| 方正县| 墨竹工卡县| 闵行区| 汉源县| 承德市|