I just start code m5stack for 2 day (My model is m5stack fire).
This code support 3 mode .
Manual Mode. You can set RC servo from 0 to 180 degree.(10 degree per step.)
Center Mode. This mode will lock servo at 90 degree.
Sweep Mode. This mode will loop sweeping servo to 0, 90 and 180 degree then sweep back to 90 and 0 degree.