Go to advanced search

by CookieGamez2018
Sat Dec 15, 2018 10:45 pm
Forum: Python
Topic: Have a certain time to do something
Replies: 2
Views: 238

Have a certain time to do something

Hi, i am building a basic alarm system. what i want is when the motion sensor goes off you have 15 seconds to hit a push button but i cant find out how to do that. how can i make it so you have a set amount of time to hit the button but if you don't in that time period the alarm goes off. all help i...
by CookieGamez2018
Thu Dec 13, 2018 9:04 pm
Forum: Python
Topic: Keypad Passcode
Replies: 10
Views: 387

Re: Keypad Passcode

Thank you Scotty101 so much for helping me and solving the problem :D
by CookieGamez2018
Thu Dec 13, 2018 9:02 pm
Forum: Python
Topic: Keypad Passcode
Replies: 10
Views: 387

Re: Keypad Passcode

scotty101 wrote:
Thu Dec 13, 2018 9:43 am
Did you try using the code example I provided?
Yes it did work thank you so much
by CookieGamez2018
Thu Dec 13, 2018 12:13 am
Forum: Python
Topic: Keypad Passcode
Replies: 10
Views: 387

Re: Keypad Passcode

Welcome to the forum. What keypad do you have? Could please edit your post so the code is in the 'code' tag: [ c o d e ] Python goes here [ / c o d e ] (without the spaces by using the </> button>) Then we can see the indents in the program - these are vital for Python :lol: i am using a 4x4 keypad
by CookieGamez2018
Wed Dec 12, 2018 6:54 pm
Forum: Python
Topic: Keypad Passcode
Replies: 10
Views: 387

Re: Keypad Passcode

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) MATRIX = [ [1,2,3,'A'], [4,5,6,'B'], [7,8,9,'C'], ['*',0,'#','D'] ] ROW = [3,5,8,10] COL = [19,21,23,24] for j in range(4): GPIO.setup(COL[j], GPIO.OUT) GPIO.output(COL[j], 1) for i in range(4): GPIO.setup(ROW[i], ...
by CookieGamez2018
Sun Dec 09, 2018 9:36 pm
Forum: Python
Topic: Keypad Passcode
Replies: 10
Views: 387

Keypad Passcode

Hello, i need some help with setting up a pass-code with my raspberry pi. i would like it to be a four digit code that you enter on the keypad and it prints "access granted" if right and "access denied" if wrong. any help would be great! my code so far, it prints the button you hit: import RPi.GPIO ...

Go to advanced search