awawa-dev / HyperSerialESP32

High speed USB serial port LED strip driver for HyperHDR using ESP32 or ESP32-S2 devices. Multi-segment & multi-core support.
MIT License
73 stars 203 forks source link

Migrate to PlatformIO #6

Closed awawa-dev closed 1 year ago

awawa-dev commented 1 year ago

Major and very important upgrade of HyperSerialESP32. There are many reason that caused our migration from Arduino IDE to PlatformIO.

Refactoring was primarily caused by latest v19 beta1 release, that includes some changes making old 'First LED enabled/disabled' version firmware obsolete. You can read more about it here: https://github.com/awawa-dev/HyperHDR/pull/379 and you can disable/enable first LED in HyperHDR v19.

Also all floating point operations used for RGBW calibration were removed and integer operations were used instead . A special unit test guards the correctness of the new RGBW calculations so the backward compatibility is preserved. All related variables were encapsulated into separated structures to make the code more readable.