from gpiozero import PWMLED, MCP3008 from signal import pause led = PWMLED(17) pot = MCP3008() led.source = pot.values pause()