Skip to content

Instantly share code, notes, and snippets.

View rx.sh
ip link set can0 type can bitrate 500000
ifconfig can0 up
candump can0
@jadonk
jadonk / README.md
Last active Jun 3, 2021
Adafruit 2.4" LCD on BeagleBone Blue
View README.md

![Adafruit 2.4" LCD][lcd]

Required components

Steps

  1. Solder across Adafruit 2.4" TFT Breakout IM1/IM2/IM3 jumpers: ![SPI Mode Jumpers][spi-mode-jumpers]
  2. Solder the two (2) JST SH 6 Wire Assemblies to the Adafruit 2.4" TFT Breakout with: ![Solder connections from JST headers to TFT][jst-to-tft] ![JST connector example][jst-header]
@jadonk
jadonk / README.md
Last active Apr 9, 2021
Add X11 to a BeagleBone IoT image
View README.md

As 'root' perform the following:

git clone https://gist.github.com/jadonk/39d0fcfc323347d88e995cdfee02bdad
apt-get install -y --no-install-recommends xinput xinput-calibrator xorg xserver-xorg-video-fbdev \
    xserver-xorg-video-modesetting lightdm xserver-xorg-core xserver-xorg-input-joystick \
    dbus-x11 openbox cmst compton-conf libfm-tools libgl1-mesa-dri lximage-qt	\
    lxqt-about lxqt-admin lxqt-common lxqt-config lxqt-globalkeys lxqt-notificationd	\
    lxqt-panel lxqt-policykit lxqt-runner lxqt-session lxqt-sudo	\
    obconf pcmanfm-qt qterminal \
View Pixeloverlay-Countdownlpl
#!/usr/bin/perl
#############################################################################
# PixelOverlay-Countdown.pl - Scroll a Christmas Countdown across a matrix
#############################################################################
# Set our library path to find the FPP Perl modules use lib "/opt/fpp/lib/perl/";
use lib "/opt/fpp/lib/perl/";
print "#1\n";
# Use the FPP Memory Map module to talk to the daemon
View grove-probe
#!/usr/bin/env perl
my $devices = `i2cdetect -y -r 2`;
#print $devices;
my @lines = split /\n/, $devices;
foreach my $line ( @lines ) {
next if $line =~ /^\s/; # skip lines starting with whitespace
$line =~ s/\d\d\:\s*//; # remove 2 digit indexes
#print $line , "\n";
my @entries = split /\s/, $line;
foreach my $entry ( @entries ) {
View AirQualityMonitor.json
[
{
"id": "582e31fd.66c078",
"type": "tab",
"label": "Sensor Node #1",
"disabled": false,
"info": ""
},
{
"id": "5d6c92b.0dba3ec",
View gist:54dc2c04695ace7cb2489ee334043419
Welcome to Buildroot
buildroot login: root
Password:
# /opt/gbridge.sh
#!/bin/sh -xv
#ATMOD=`lsmod | grep atusb`
#if [ "$ATMOD" == "" ]; then
# modprobe atusb
#fi
#sleep 1
@jadonk
jadonk / config-virt
Created Oct 3, 2020
Alpine default kernel config
View config-virt
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.4.43 Kernel Configuration
#
#
# Compiler: gcc (Alpine 9.3.0) 9.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300