EasyManua.ls Logo

Eckstein komponente KS0530 - Page 102

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
102
(7)Code Explanation:
Serial.begin(9600)-
initialize the serial communication and set the baud
rate to 9600
pinMode(pin, INPUT)-
use the function pinMode() to tell Arduino whether
it is an output pin or an input pin
digitalRead(pin)-
read the digital level of pins,be HIGHT OT LOW
(8)Extension Projectcontrol the LED by the push button module
/*
keyestudio sun_follower
lesson 3.2