Headlight leveling control with memory
- Take a look at this youtube video to see how it work
Special thanks to all author of libraries used in this repository
- /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
- /src - Source files for the library (.cpp, .h).
- keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
- library.properties - General library properties for the Arduino package manager.
- DO NOT block loop while headlight is running
- Define pin - Example for NodeMCU esp32
int headlightActivePin = 32;
int headlightReversePin = 33;
int headlightPositionPin = 35;
int headlightUpButtonPin = 26;
int headlightDownButtonPin = 27;
- setup() - Put this inside setup function, base on your need
//Basic setup
HeadlightController.setupHeadlight(headlightActivePin, headlightReversePin, headlightPositionPin);
//Enable physical button control
HeadlightController.setupButton(headlightUpButtonPin, headlightDownButtonPin);
//Enable web control
HeadlightController.setupWebControl(&server);
- loop() - Put this inside loop function.
HeadlightController.loop();
- ESP32_HeadlightControllerSample - An example running on NodeMCU Esp32, with OTA capability for further update
- MultiButton - A library for multiple button event detection.
- SimpleKalmanFilter - A great library to filter ADC noise.
- AsyncElegantOTA - A great library for firmware update.
- V0.1.0 -- Initial commit
This is an open source project!
Please review the LICENSE file for license information.
If you have any questions or concerns on licensing, please contact [email protected].