Pages: 1 2 3 [4]   Go Down
Author Topic: Weird glitchy stuff  (Read 3494 times)
0 Members and 1 Guest are viewing this topic.
Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 635
Posts: 34572
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No come on, you are starting to piss me off here. Why don't you apply one single bit of thinking to your problems.

At the moment you have a line that says:-
Code:
if ( ! digitalRead(buttonInt) ) return;
and you want to return if another different button is pressed.
So you have the same line again only looking at the different button, or you use the logic OR function || and combine to looks at the button into one line.

There comes a time when hand holding turns into a dependent situation. Are you going to just have a knee jerk reaction to everything you don't immediately understand? At the end of the day you are trying to develop some skills, every one starts out with zero knowledge and it is fine to ask, but to ask repeatedly without even thinking about it is not good.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i used that exact code yesterday with a if statement at the top of fade() but it just immediately went to the other function.. Anyways, as soon as i see my dad (and his present) again i will try to fix it.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 635
Posts: 34572
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you remember the ! and did you wire the button the same as the first one?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 205
Check twice, etch once
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that's the strange thing. It was a different button though. Maybe i should connect the button to my regular Arduino and test if the button works.
Logged

Pages: 1 2 3 [4]   Go Up
Jump to: