Mausberry Switch Script

Raspberry Pi related support

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 18:00

thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby PeteB » 16 Apr 2016, 18:10

PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 18:15

I change it in /etc/switch.sh, from the default ones in the script, 23 and 24 to 17 and 22.
thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby PeteB » 16 Apr 2016, 18:39

Ok, so it worked with the default numbers, but not after you changed it?
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 18:42

I will check with the default pins again, the problem with those is that they are shorter so the jumper cables are very loose. I'll try and post the results....
thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 19:24

Yep, just tested, on the default GPIO pins it works as before, when the switch is pressed, it shuts down (quickly) , then both the screen and the pi power off very briefly, then it all boots up again.
thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 19:50

No i've changed the pins back on the board and the code, it displaying the same as when it was not on the default pins. Now i'm going to remove all traces of mausberry and reinstall it...
thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 20:03

Hmmmm, I think the not shutting down thing is a loose connection, when i hold the jumper wires against the pins firmly it shuts down and immediately reboots, if i don't hold them it doesn't shutdown properly...
thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby thedman! » 16 Apr 2016, 21:43

I think I'm gonna look at a Python script like and a non-momentary switch...
thedman!
 
Posts: 62
Joined: 24 Mar 2016, 15:45

Re: Mausberry Switch Script

Postby hondagx35 » 16 Apr 2016, 21:49

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests
cron