Go Down

Topic: Info about LED and resistor ARDUINO UNO (Read 4594 times) previous topic - next topic

gianni21

Yes I have already given a look at it.
Did you read the last part of my post? About the logic status I mean

polymorph

Steve Greenfield AE7HD
Drawing Schematics: tinyurl.com/23mo9pf - tinyurl.com/o97ysyx - https://tinyurl.com/Technote8
Multitasking: forum.arduino.cc/index.php?topic=223286.0
gammon.com.au/blink - gammon.com.au/serial - gammon.com.au/interrupts

Grumpy_Mike

Quote
Did you read the last part of my post? About the logic status I mean

Yes I did. The logic status is irrelevant, just deal with it.
For some reason it seems to disturb beginners that unpressed gives a logic high and pressed gives a one but it should not. If you are disturbed then just have a hash define at the start of your code:-
Code: [Select]

#define pressed HIGH
#define unpressed LOW

And use pressed and unpressed in your code, or what ever words you are comfortable with.
As I said a push switch to ground is the grown up way to do things, mainly for historic reasons ( with TTL logic pull down required very low resistor values ) but for the reasons I discuss on the web page it is still preferable today.

Go Up