snmpsim is built on python and requires several other python libraries.
apt install python-pip
pip install virtualenv
#!/bin/bash | |
# Script from https://ubuntu-mate.community/t/controlling-raspberry-pi-with-tv-remote-using-hdmi-cec/4250/4 | |
# Only modified for the tv remote arrow keys. | |
# Run script using cec-client | ./hdmi-cec-control.sh | |
export DISPLAY=:0 # Seemed to be needed to run over SSH. | |
function keychar { | |
parin1=$1 #first param; abc1 | |
parin2=$2 #second param; 0=a, 1=b, 2=c, 3=1, 4=a, ... | |
parin2=$((parin2)) #convert to numeric |
#!/bin/bash | |
#Simple script to control your Raspberry Pi with your TV remote using libcec | |
# | |
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
# GPL licensed (see end of file) * Use at your own risk! | |
# Some minor modifications by Matt Read. | |
# | |
# You can set this to be run in your desktop "startup programs", or | |
# at the last line of /etc/rc.local, just to say a couple options | |
# |
#Copy the following into "/etc/systemd/system/cec-remote.service": | |
[Unit] | |
Description=HDMI-CEC remote script service. | |
[Service] | |
Environment=DISPLAY=:0 | |
Environment=XAUTHORITY=/home/pi/.Xauthority | |
Type=simple | |
ExecStart=/bin/bash /usr/bin/cec-remote.sh |
#include <mcp_can.h> | |
#include <mcp_can_dfs.h> | |
#include <SPI.h> | |
#define MSCAN | |
#define DEBUG | |
// ---- LED Pin for OBD Simulator ---- // | |
const int HSCAN_LED = 41; |