Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
rainbowhat /
[ HOME SHELL ]
Name
Size
Permission
Action
HT16K33.py
4.41
KB
-rw-r--r--
HT16K33.pyc
3.85
KB
-rw-r--r--
__init__.py
1.09
KB
-rw-r--r--
__init__.pyc
1.36
KB
-rw-r--r--
alphanum4.py
8.01
KB
-rw-r--r--
alphanum4.pyc
6.44
KB
-rw-r--r--
apa102.py
3.59
KB
-rw-r--r--
apa102.pyc
4.88
KB
-rw-r--r--
bmp280.py
7.41
KB
-rw-r--r--
bmp280.pyc
6.27
KB
-rw-r--r--
buzzer.py
2.01
KB
-rw-r--r--
buzzer.pyc
2.55
KB
-rw-r--r--
lights.py
1.83
KB
-rw-r--r--
lights.pyc
3.26
KB
-rw-r--r--
touch.py
2.77
KB
-rw-r--r--
touch.pyc
4.16
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : touch.py
try: import RPi.GPIO as GPIO except ImportError: raise ImportError("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO") PIN_A = 21 PIN_B = 20 PIN_C = 16 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) class Button(object): def __init__(self, index, gpio_pin): object.__init__(self) self.pressed = False self._on_press_handler = None self._on_release_handler = None self._gpio_pin = gpio_pin self._index = index self._is_setup = False def setup(self): if self._is_setup: return GPIO.setup(self._gpio_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.add_event_detect(self._gpio_pin, GPIO.BOTH, bouncetime=1, callback=self._handle_button) self._is_setup = True def _handle_button(self, pin): self.pressed = GPIO.input(pin) != GPIO.HIGH if self.pressed and callable(self._on_press_handler): try: self._on_press_handler(self._index, self._gpio_pin) except TypeError: self._on_press_handler(self._index) elif callable(self._on_release_handler): try: self._on_release_handler(self._index, self._gpio_pin) except TypeError: self._on_release_handler(self._index) def press(self, handler=None): """Bind a function to handle touch press.""" self.setup() if handler is None: def decorate(handler): self._on_press_handler = handler return decorate self._on_press_handler = handler def release(self, handler=None): """Bind a funciton to handle touch release.""" self.setup() if handler is None: def decorate(handler): self._on_release_handler = handler return decorate self._on_release_handler = handler class Buttons(object): A = Button(0, PIN_A) B = Button(1, PIN_B) C = Button(2, PIN_C) _all = [A, B, C] def __getitem__(self, key): return self._all[key] def press(self, handler=None): if handler is None: def decorate(handler): self.A.press(handler) self.B.press(handler) self.C.press(handler) return decorate self.A.press(handler) self.B.press(handler) self.C.press(handler) def release(self, handler=None): if handler is None: def decorate(handler): self.A.release(handler) self.B.release(handler) self.C.release(handler) return decorate self.A.release(handler) self.B.release(handler) self.C.release(handler) Buttons = Buttons()
Close