In this video, Zahraa explains one of the main commands used within Arduino IDE. The pinMode() function is used to configure a specified pin in Arduino to behave either as an input or an output.
- [Narrator] Now let's try to understand some of the…main commands used within Arduino IDE.…You can use each digital interface on the Arduino as either…input or an output but not both at the same time.…Now in order to tell Arduino which mode your sketch uses…for the specific digital or analog interface, we need to use…pinMode function.…In pinMode function we basically configure the specific pin…in our Arduino to behave either as an input or an output.…
This is the way the function is written the pin mode…function requires two parameters. The pin parameter,…determines the pin number to configure. The mode parameter,…determines whether the pin operates as an input…or an output.…There are three values you can use for…the interface mode setting.…Input, in order to set it for a normal input mode.…Input_pullup, in order to set it for an input mode but uses…an internal pull-up resistor.…
I'll talk more about this later in the course.…And finally as an output, in order to set it as an output…mode.…So we add the pin mode in the setup function because the…
- What's an Arduino?
- Creating an Arduino program
- Using the setup() and loop() functions
- Using the pinMode() and digitalWrite() commands
- Creating your first sketch
- Writing code to turn LEDs on and off
- Wiring a pushbutton to Arduino
- Activating an LED with a pushbutton
Skill Level Beginner
Learning Arduino: Interfacing with Hardwarewith Zahraa Khalil1h 40m Intermediate
Learning Arduino: Pulse Width Modulationwith Rae Hoyt1h 16m Intermediate
1. Introduction to Arduino
2. Creating an Arduino Program
3. Interface with Ouptut: LED
4. Interface with Input: Pushbutton
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.