8 servo hat RGB led not working properly

  • If I use variables to control the red green and blue values I get an error message which says: name 'rgb' isn't defined
    this however does not occur when I use the default values. Does anyone know how to fix this?

    This is the code im running:
    alt text