O
O
omar_nurbek2022-04-04 15:17:06
JavaScript
omar_nurbek, 2022-04-04 15:17:06

How to turn on the LED in Arduino when an analog value is greater than (0-1024) 500 for 5 seconds?

How to turn on the LED in Arduino when an analog value is greater than (0-1024) 500 for 5 seconds?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
index0h, 2016-08-15
@index0h

There are 4 general recommendations:
1. Use ES 6 Luke!
2. Check incoming arguments.
3. Don't do pasta code:
Binding to an event separately, function - separately.
4. Divide code into classes. SOLID, all bullshit.

Z
Zakharov Alexander, 2016-08-15
@AlexZaharow

For me, it’s very decently written, and everyone else has their own development experience. Personally, it was not difficult for me to read. For convenience, add a few screenshots to make it clear what I'm talking about.

T
trevoga_su, 2016-08-16
@trevoga_su

commentators above - find fault
with the code - there is nothing to evaluate here. generally.
a set of standard jquery api calls

B
Borys Latysh, 2022-04-04
@nava2002

Given the simplicity of the question in my opinion, someone is trying to do their homework.
This is a program for 4 operators.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question