New answers tagged programming
0
votes
Open drain without pull-up
We can differentiate these alternatives, omitting others that would need extra hardware:
Set the pins in OUTPUT mode, and switch between HIGH and LOW.
This will produce short circuits when the ...
0
votes
Open drain without pull-up
A pull-up resistor is absolutely needed for open-drain communication.
Whether you read the pin or not is irrelevant, as someone has to read
it, otherwise there would be no communication. If the device ...
0
votes
LED fade with LDR sensor depending on the light
Your code is able to change the LED color based on the LDR sensor value, but to achieve the fading and breathing effect, you need to add some control logic, such as a fading function.
You can take a ...
-1
votes
Sketch always appears to show data one iteration of main loop behind
I've solved the problem. It's because I was using the wrong value in the shift routines, ie I was using current_frequency instead of previous_frequency. After all, I want to know what the frequency ...
Top 50 recent answers are included
Related Tags
programming × 1672arduino-uno × 569
c++ × 210
serial × 131
arduino-mega × 127
arduino-ide × 125
c × 103
sketch × 95
sensors × 91
arduino-nano × 63
led × 60
esp8266 × 59
library × 55
motor × 47
lcd × 45
code-review × 41
array × 38
pins × 37
string × 37
interrupt × 34
servo × 32
communication × 32
timers × 29
button × 25
bluetooth × 24