- 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.
推薦閱讀
- 喚醒生涯:生命成長(zhǎng)視閾下的生涯教育
- 生物的環(huán)境:生態(tài)學(xué)(探究式科普叢書(shū))
- 自然哲學(xué)筆記
- 人人都該懂的科學(xué)簡(jiǎn)史
- 趣說(shuō)萬(wàn)事萬(wàn)物的起源
- 泡利的錯(cuò)誤:科學(xué)殿堂的花和草
- 發(fā)明的故事
- 玉米病蟲(chóng)害識(shí)別手冊(cè)
- 環(huán)形交叉口通行能力分析方法(遼寧省優(yōu)秀自然科學(xué)著作)
- 在家就能做的80個(gè)STEAM科學(xué)小實(shí)驗(yàn)
- 中國(guó)前沿:不如問(wèn)問(wèn)科學(xué)家吧
- 我們都是科學(xué)家:那些妙趣橫生而寓意深遠(yuǎn)的科學(xué)實(shí)驗(yàn)
- 秘境追蹤
- 理性的邊界
- 必知的生物科技