programmirovanie 2

RomanRus71
Offline
Зарегистрирован: 16.12.2017
#define LED_PIN 5
#define P_PIN A0
void setup() {
  // put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
}
 
void loop() {
  // put your main code here, to run repeatedly:
int x=analogRead(P_PIN);
analogWrite(LED_PIN,x/4);
}
Alexander
Offline
Зарегистрирован: 25.04.2010
RomanRus71
Offline
Зарегистрирован: 16.12.2017

благодарю

ЕвгенийП
ЕвгенийП аватар
Offline
Зарегистрирован: 25.05.2015

Принято к сведению.