![Arduino OOP—Object-Oriented Programming [Video]](https://content.packt.com/V19326/cover_image_small.jpg)
Arduino OOP—Object-Oriented Programming [Video]
Subscription
FREE
Video
$54.99
What do you get with a Packt Subscription?
What do you get with a Packt Subscription?
What do you get with Video + Subscription?
What do you get with a Packt Subscription?
What do you get with eBook?
What do I get with Print?
What do you get with video?
What do you get with Audiobook?
Subscription
FREE
Video
$54.99
What do you get with a Packt Subscription?
What do you get with a Packt Subscription?
What do you get with Video + Subscription?
What do you get with a Packt Subscription?
What do you get with eBook?
What do I get with Print?
What do you get with video?
What do you get with Audiobook?
-
Free ChapterIntroduction
-
Your First Arduino Class - LED
-
Organize the Class in a Clear Way
-
Circuit for the Course
-
Your Turn - Push Button Class
- Introduction
- Create the PushButton Class Header File - Interface
- Create the PushButton Class cpp File - Implementation
- Create a PushButton Object to Read the Button's State
- Handle Pull Up and Pull Down Resistors in the Class
- Add More Abstraction to Know When the Button Is Pressed
- Debounce the Button Inside the Class
- Combine LEDs and Buttons - Work with Multiple Objects
-
LEDBlinker - Use a Class Inside Another Class
-
Your Turn - Traffic Light System
- Introduction- Final Project Overview
- The Interface and Main Program (Help to Get Started)
- Set Up the Traffic Light Class
- Add Methods to Init and Toggle Between the LEDs
- Add a State Machine Inside the Class
- Use Time Functionalities to Wait Between Different States
- Create a Class for the Potentiometer
- Modify the LED's Brightness with the Potentiometer
-
Conclusion
About this video
Do you want to write Arduino code that you can easily read, modify, and share with other Arduino developers? Or do you already know OOP (Object-Oriented Programming) and you want to know how to apply it to Arduino? Then this course is for you.
In this course, you will learn how to create a first class (for an LED component), then organize the class, and separate the interface from the implementation. Next, it will be your turn to write OOP code for a push button. Later, you will learn how to create a class to make an LED blink (how to use a class inside another class). Finally, you will get a chance to create the final TrafficLight class with high-level logic, while using all the previous classes you have created in this course.
By the end of this course, you will be able to write clean Arduino code with OOP for any hardware component or functionality, rewrite your own projects using OOP, and create a clean and super easy-to-use OOP Arduino library.
- Publication date:
- August 2022
- Publisher
- Packt
- Duration
- 4 hours 20 minutes
- ISBN
- 9781804614945