Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #9546

Re: RPi.GPIO Button Help Please

From Rob Morley <nospam@ntlworld.com>
Newsgroups comp.sys.raspberry-pi
Subject Re: RPi.GPIO Button Help Please
Date 2015-09-06 18:16 +0100
Message-ID <20150906181650.4d4d6f38@ntlworld.com> (permalink)
References <0e1Ex.10370$wH.2464@fx10.iad> <4gHGx.9788$SW6.8123@fx24.iad>

Show all headers | View raw


On Sat, 05 Sep 2015 19:20:32 GMT
John McKenzie <davros@bellaliant.net> wrote:

>  My current issue is that if I push a button the LED strip lights up
> that colour without turning off the previous colour.

Either keep track of what's switched on, and switch it off before the
next switch-on event (unless it's for the same LEDs, in which case do
nothing) or just switch all LEDs off every time there's a new switch-on
event.

Back to comp.sys.raspberry-pi | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RPi.GPIO Button Help Please John McKenzie <davros@bellaliant.net> - 2015-08-28 17:53 +0000
  Re: RPi.GPIO Button Help Please Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-08-29 13:37 -0400
    Re: RPi.GPIO Button Help Please Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-08-29 13:52 -0400
    Re: RPi.GPIO Button Help Please John McKenzie <davros@bellaliant.net> - 2015-08-29 18:10 +0000
      Re: RPi.GPIO Button Help Please Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-08-30 22:21 -0400
  Re: RPi.GPIO Button Help Please John McKenzie <davros@bellaliant.net> - 2015-09-05 19:20 +0000
    Re: RPi.GPIO Button Help Please Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-06 12:56 -0400
    Re: RPi.GPIO Button Help Please Rob Morley <nospam@ntlworld.com> - 2015-09-06 18:16 +0100
  Re: RPi.GPIO Button Help Please John McKenzie <davros@bellaliant.net> - 2015-09-09 18:19 +0000
    Re: RPi.GPIO Button Help Please Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-09 20:33 -0400
      Re: RPi.GPIO Button Help Please John McKenzie <davros@bellaliant.net> - 2015-09-10 16:00 +0000
  Re: RPi.GPIO Button Help Please John McKenzie <davros@bellaliant.net> - 2015-09-13 06:11 +0000

csiph-web