Skip to main content

Timeline for Input-Output Circuit Issue

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Mar 10, 2017 at 4:12 comment added Hasan @deadguy88 May be you're right. But it is better to apply pull up through program because why you use extra circuitry if that things happens through program. Usually, I prefer this things. Try out my code and schematic. It will definitely work.
Mar 9, 2017 at 6:34 comment added deadguy88 But im using a pull up resistor on the button.So, i didnt need INPUT_PULLUP right?I think my schematic and my code are wrong.Btw thanks for your help
Mar 9, 2017 at 4:11 history edited Hasan CC BY-SA 3.0
Fix Code
Mar 9, 2017 at 4:09 comment added Hasan @jwpat7 Yeap, you're right.
Mar 8, 2017 at 16:58 comment added James Waldby - jwpat7 To make that work need to change pinMode (redbutton, INPUT); pinMode (uvbutton, INPUT); to pinMode (redbutton, INPUT_PULLUP); pinMode (uvbutton, INPUT_PULLUP); and invert the logic in if's
Mar 8, 2017 at 11:07 history answered Hasan CC BY-SA 3.0