Update app.py

Refactor, use ledController class for color pattern functions