Skip to content

Instantly share code, notes, and snippets.

View fiveseven808's full-sized avatar

fiveseven808 fiveseven808

  • Narnia
View GitHub Profile
@reagames
reagames / Seek_Thermal_Pygame_fbtft_2.0
Last active April 26, 2023 21:03 — forked from hightemp/Seek_2.0.py
Python script for Raspberry Pi to run Seek Thermal Camera, with openCV and pygame output - based on Seek by Cynfab http://www.eevblog.com/forum/thermal-imaging/yet-another-cheap-thermal-imager-incoming/msg571129/#msg571129
###########################################################################
#
#
# This is a program to read thermal image data from the Seek PIR206 Thermal Camera
# This program is intended to be used with Raspberry Pi
# Pygame allows to output directly to framebuffer.
# Here I use small TFT display connected to GPIO and sending data to framebuffer fb1 for output to this display.
# I also use three simple GPIO buttons to have realtime control for image processing parameters
# This comes particularly useful e.g. when you use Seek at low temperature (you will need to lower down "lower threshold limit"
@quelleck
quelleck / rpi-hdmi.sh
Last active January 13, 2024 07:45 — forked from AGWA/rpi-hdmi.sh
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
vcgencmd display_power | grep "display_power=0" >/dev/null
}
case $1 in
@RamonGilabert
RamonGilabert / bluetooth.sh
Last active October 12, 2023 18:24
Bluetoothctl automation
#!/usr/bin/expect -f
set prompt "#"
set address [lindex $argv 0]
spawn sudo bluetoothctl -a
expect -re $prompt
send "remove $address\r"
sleep 1
expect -re $prompt
@AGWA
AGWA / rpi-hdmi.sh
Last active June 9, 2024 15:15
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in