Nooooo there is a circle of hell reserved for Linux, it should have died before the end of the last century.
Just thinking there are a lot more examples and tutorials for doing this sort of thing using wemos. I've never found a pi a satisfactory platform to control hardware, gpio support has many issues.
Anyway just my ramblings, and would encourage anyone wanting to do stuff like this to have a go, the hardware is cheap enough and while the learning curve is steep, there are huge resources all over the web for any chosen platform.