ну так покажите, а то у меня телепатия сегодня отключилась.
error: 'uint16' does not name a type; did you mean 'uint16_t'?
volatile uint16 tic, Dimmer1, Dimmer2;
^~~~~~
uint16_t
In function 'void setup()':
error: 'High' was not declared in this scope
attachInterrupt(0, detect,High); // настроить прерывание interrupt0 на pin 2 на высокий уровень
^~~~
9:27: note: suggested alternative: 'sinh'
attachInterrupt(0, detect,High); // настроить прерывание interrupt0 на pin 2 на высокий уровень
^~~~
sinh
In function 'void loop()':
15:5: error: 'uint16' was not declared in this scope
uint16 T1=micros()-tic;
^~~~~~
15:5: note: suggested alternative: 'uint16_t'
uint16 T1=micros()-tic;
^~~~~~
uint16_t
error: 'ledPin' was not declared in this scope
digitalWrite(ledPin, val); // устанавливаем значение на све
^~~~~~
16:16: note: suggested alternative: 'ldiv'
digitalWrite(ledPin, val); // устанавливаем значение на све
^~~~~~
ldiv
16:24: error: 'val' was not declared in this scope
digitalWrite(ledPin, val); // устанавливаем значение на све
^~~
17:13: error: 'Dimmer1' was not declared in this scope
if ((Dimmer1-T1)>0) { D5_High; delayMicroseconds(50);Dimmer1 =0;}
^~~~~~~
17:21: error: 'T1' was not declared in this scope
if ((Dimmer1-T1)>0) { D5_High; delayMicroseconds(50);Dimmer1 =0;}
^~
17:21: note: suggested alternative: 'A1'
if ((Dimmer1-T1)>0) { D5_High; delayMicroseconds(50);Dimmer1 =0;}
^~
A1
18:13: error: 'Dimmer2' was not declared in this scope
if ((Dimmer2-T1)>0) { D6_High; delayMicroseconds(50);Dimmer2 =0;}
^~~~~~~
18:21: error: 'T1' was not declared in this scope
if ((Dimmer2-T1)>0) { D6_High; delayMicroseconds(50);Dimmer2 =0;}
^~
18:21: note: suggested alternative: 'A1'
if ((Dimmer2-T1)>0) { D6_High; delayMicroseconds(50);Dimmer2 =0;}
^~
A1
In function 'void detect()':
23:3: error: 'tic' was not declared in this scope
tic=micros();
^~~
24:5: error: 'Dimmer1' was not declared in this scope
Dimmer1= map(analogRead(0), 0,1023,50,9800); // Эти входы для потенциометров
^~~~~~~
25:5: error: 'Dimmer2' was not declared in this scope
Dimmer2 = map(analogRead(1), 0,1023,50,9800);
^~~~~~~
exit status 1
'uint16' does not name a type; did you mean 'uint16_t'?