Customized MKZ4 Firmware for ESP32 (NOT for ESP8266).
Based on cerevo/MKZ4
.
https://github.com/cerevo/MKZ4
https://www.ebay.com/itm/113952018901
https://cerevo.shop-pro.jp/?pid=104131889
(Official Shop Link, but may be only in Japan...)
*My machine works by these codes for now, but I don't expect them to work universally for all your DIY products, so I recommend customizing them as you like.
See below or schematic/schematic.pdf
https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
- Servo Library for ESP32 https://www.arduino.cc/reference/en/libraries/esp32servo/ https://github.com/madhephaestus/ESP32Servo
Add ESP32 libraries path to "includePath" like below:
"includePath": [
"C:\\Users\\your_name\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.2\\libraries",
"${workspaceFolder}/**",
"..\\libraries"
],