Here is v5.21 of the Arduino ESP32 source code for this project.
esp32_wifi.ino.v5.21.txt 81.49KB
81 downloads
This one incorporates a number of improvements to the Nunchuck code, to deal with imperfectly centred Nunchucks, including all of the following:
Version 5.21:
-- Nunchuck: Improve range calculations for cases where calibration min/max are different amounts from centre.
-- Nunchuck: Handle calibration data where min/max are zero but centre point appears to be valid.
-- Nunchuck: Measure actual centre point, and redo calculations if it doesn't match the earlier (calibration) values.
Version 5.20:
-- Nunchuck: Use calibration data if it appears to be valid.
Version 5.19: -- Handle Nintendo-branded Nunchucks with more limited movement range.
Edited by mlord, 06 February 2023 - 11:14 PM.