It should work without much change in a pro mini!
There is one problem with this code…
The #include line stripped out the library. You need to #include the control surface library, and that line should look like this
Only with a less than/greater than around the library. These forums strip it out 🙁
On my blog I have cleaner code examples