IRController

command module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: Unlicense Imports: 5 Imported by: 0

README

IR Controller

Observe Protocol and Key Codes - V1
sudo ir-keytable -v -t -p rc-5,rc-5-sz,jvc,samsung,sony,nec,sanyo,mce_kbd,rc-6,sharp,xmp -s rc0
Replay IR Codes - V1
ir-ctl -S necx:0x70702

Observe Protocol and Key Codes - V2
ir-ctl -d /dev/lirc0 --receive=samnsung_power.key
Intermediate convert_ir_ctl_recieve_format.sh
#!/bin/bash

if [ "$#" -ne 1 ]; then
	echo "Usage: $0 <filename>"
	exit 1
fi
output_file="samnsung_power_fixed.key"
> "$output_file"
content=$(cat $1)
for value in $content; do
	if [[ $value == +* ]]; then
		echo "pulse ${value#+}" >> "$output_file"
	elif [[ $value == -* ]]; then
		echo "space ${value#-}" >> "$output_file"
	fi
done
Replay IR Codes - V2
ir-ctl -d /dev/lirc0 --send=samnsung_power_fixed.key

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL