Join Zahraa Khalil for an in-depth discussion in this video Optional review: The switch...case statement, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] All right, so I'm going…to go through the switch...case statement.…If you are familiar with the concept,…you can skip this video, but if you want to refresh…your memory about what the concept is,…I'm going to go through the concept briefly.…So one of the structure commands used…within Arduino is a switch...case statement.…Oftentimes, we might need to compare a variable…against several possible values.…For example, the keypad we're using,…so we might need to have an assorted output…to be associated when we press certain numbers…on the keypad.…
The switch statement uses a standard…if...then style condition to evaluate for results.…The Arduino jumps to the matching case statement…in the code, skipping over the other case statements.…You can have a default statement…at the end of the switch statement code block.…The Arduino software jumps to the default statement…when none of the cases matches the results.…So we use switch...case statement if we want…to control the flow of the program,…or if we want to switch between different states.…
- 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
Learning Arduino: Pulse Width Modulationwith Rae Hoyt1h 16m 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.