|
#define led pin 11
|
tarix | 19.05.2023 | ölçüsü | 119,99 Kb. | | #117693 |
| New Microsoft Word Document
8888888888888888888888888888888
#define LED_PIN 11
#define POTENTIOMETER_PIN A1
void setup()
{
pinMode(LED_PIN, OUTPUT);
}
void loop()
{
int potentiometerValue = analogRead(POTENTIOMETER_PIN);
int brightness = potentiometerValue / 4;
analogWrite(LED_PIN, brightness);
}
Dostları ilə paylaş: |
|
|