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

  • Mastering Arduino
  • Jon Hoffman
  • 124字
  • 2021-07-23 18:57:38

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.

主站蜘蛛池模板: 静乐县| 武山县| 额尔古纳市| 全椒县| 永丰县| 新绛县| 丹凤县| 长葛市| 邯郸市| 冷水江市| 平陆县| 友谊县| 岳阳县| 康马县| 溧水县| 镇远县| 明星| 高青县| 彭泽县| 平乐县| 安多县| 怀来县| 莱西市| 阳西县| 弥勒县| 永兴县| 皋兰县| 南木林县| 礼泉县| 红安县| 监利县| 五家渠市| 兰坪| 城口县| 永仁县| 黎平县| 舞阳县| 锡林郭勒盟| 普兰店市| 临安市| 华池县|