Go to advanced search

by pips
Tue May 02, 2017 10:42 pm
Forum: General discussion
Topic: Motion Sensor Python 3.0
Replies: 1
Views: 616

Motion Sensor Python 3.0

Was wondering if anyone had a code for a PIR motion sensor which every time something is detected, it counts the score. This is for a basketball scoring system. I'm using Python 3.0
by pips
Tue May 02, 2017 10:38 pm
Forum: General discussion
Topic: Help on buttons
Replies: 8
Views: 761

Re: Help on buttons

B.Goode wrote:If you are prepared to code in Python the gpiozero library has built-in support for exactly what you describe.

https://gpiozero.readthedocs.io/en/stable/
Can you tell me which one please? Thanks again..
by pips
Tue May 02, 2017 10:37 pm
Forum: General discussion
Topic: Help on buttons
Replies: 8
Views: 761

Re: Help on buttons

FlexibleSigmoid wrote:Which programming languages are you comfortable creating with?
Python 3.0
by pips
Tue May 02, 2017 10:36 pm
Forum: General discussion
Topic: Help on buttons
Replies: 8
Views: 761

Re: Help on buttons

I use Python 3.0. Was wondering if I could do a Basketball Scoring System with 3 game modes, and when the user is asked which game mode he wants to play, he chooses the specific button..
by pips
Sat Apr 29, 2017 8:06 pm
Forum: General discussion
Topic: Help on buttons
Replies: 8
Views: 761

Help on buttons

I need a code which the program asks the user to press either button 1,2 or 3. If button 1 is pressed, function1 will run. If button 2 is pressed, function2 will run and if button 3 is pressed, function3 will run. Any help please? Thank you :)

Go to advanced search