Let's configure the Slider widget to control the brightness of the LED using digital pins:
- Tap the Slider widget to open the Slider Settings page:
- Tap PIN under OUTPUT. On the left-hand side of the popup, choose Digital, and on the right-hand side of the popup, under PIN, choose gp 18 PWM (this is the only pin available on Raspberry Pi for PWM). Then, tap OK:
- Change the maximum value for the OUTPUT to 1023 by replacing the default value of 255. Now, your Slider Settings ...