..and for his next trick, adding a servo is easy. Pigpio provides services underneath the operating system including square wave generators. Power the servo at 7.2 volts and drive the signal directly off a gpio pin at 5 volts!
Well yes.. the computer (actually the operating system) make it really hard to generate PWM and pigpio sorts that. The computer with an operating system gives you internet connectivity, ssh, power management...