![move brightness slider to top move brightness slider to top](https://cdn.allthings.how/wp-content/uploads/2021/07/allthings.how-how-to-change-brightness-on-windows-11-image-30.png)
#Move brightness slider to top serial
Inside the setup() function, we will open the serial communication at a baud rate of 9600.
![move brightness slider to top move brightness slider to top](https://www.itechguides.com/wp-content/uploads/2020/03/image-235-740x1024.png)
The ‘flag’ will be used to check that the serial prints the pwmValue once. The ‘pwmValue’ will hold the slider value set by the user. We will require the following for our project: Another label saying Bluetooth is Connected or disconnected is also shown on the screen. You can select HC-05 Bluetooth module from the list. To enable Bluetooth connectivity, there is a button saying ‘Connect Bluetooth’ that opens a List picker which opens up Bluetooth devices currently paired with the android phone. Thus the slider will be used to control the brightness of the LED where the increasing values increase the brightness. When Arduino receives the slider value, it alters the PWM cycle by setting the duty cycle according to the value. The slider will have a maximum value of 255 (duty cycle of 100%) and minimum value of 0 (no PWM) as we will be using 8-bit resolution. What key is the Fn key Simply put, the Fn key used with the F keys across the top of the keyboard, provides short cuts to performing actions, such as controlling the. The slider value will update to a new one as we move the slider. To find the brightness slider in earlier versions of Windows 10, select Settings > System > Display, and then move the Change brightness slider to adjust the brightness. The user will move the slider to set the duty cycle. The android app features a slider which allows the user to set the brightness of the LED. We will create an Arduino IoT app through HC-05 and MIT App Inventor to control the brightness of an LED connected with Arduino.