Skip to main content

New answers tagged

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 ...
the busybee's user avatar
  • 2,185
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 ...
Edgar Bonet's user avatar
  • 44.3k
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 ...
Hugh Davenport's user avatar
-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 ...
prd4wc's user avatar
  • 1

Top 50 recent answers are included