My bad, didn’t look into the platform.txt
, the macro there must be prependet with ARDUINO_
, so -DARDUINO_AVR_USTEPPER_S
.
You can also take advantage of the build script capability to set a custom folder location for the variant, so no copying of the uStepperS
folder into PlatformIO-internal package folders is needed.