Join Zahraa Khalil for an in-depth discussion in this video Optional review: IF statement, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] So if you are familiar with…the if statement you can skip this video,…and go to the next one,…but if you want to refresh your memory…about what an if statement is…I'm gonna go briefly, and explain what it is.…The most type of constructor command…is the if statement.…The if statement checks for a condition,…and executes the proceeding statement,…or set of statements, if the condition is true.…Or simply skips the statement…to the next line if that condition is not true.…
The condition is a Boolean type.…So it's either true or false.…Here's a simple example of…using an if statement to check a value…if it's greater than hundred.…So whenever the value is greater than 100…we have a digitalWrite to a certain pin to be on.…In the if statement it simply checks a condition,…and then executes the code.…There's no increments in the if statement.…If the if statement you only have one option…of whether or not to run the statement.…If the condition is not true…then the compiler moves to the…next statement in the program.…
- Interfacing with an LCD screen
- Wiring and coding the LCD interface
- Displaying random numbers on the LCD
- Interfacing with a seven-segment LED component
- Cycling through LEDs
- Using a shift register to interface with a seven-segment LED
- Interfacing with a keypad
- Combining the LCD, keypad, and LED
Skill Level Intermediate
The devices used38s
1. Interface with an LCD
2. Interface with a 7-Segment LED Directly
3. Interface with a 7-Segment LED Using a Shift Register
4. Interface with a Keypad
- 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.