Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jadonk
jadonk / rapid-clone.sh
Created August 26, 2022 01:34 — forked from StaticRocket/rapid-clone.sh
Quickly backup and deploy bootable SD cards with variable size ext4 root partitions
#!/bin/sh
set -e
[ -z "$PART_PREFIX" ] && PART_PREFIX=''
DD_ARGS='bs=4K status=progress conv=fsync'
backup() {
src="$1"
dst="$2"
@jadonk
jadonk / mikroBUS-Greybus-BeagleConnect-Freedom-Demo.md
Last active November 8, 2021 03:25 — forked from vaishnavachath/mikroBUS-Greybus-BeagleConnect-Freedom-Demo.md
mikroBUS over Greybus BeagleConnect Freedom Demo

Seeed BeagleBone® Green Gateway host

When it comes to hardware setup, there is a fair bit of handwaving below. It is assumed for now you can figure out how to connect the antennas to the BeagleConnect Freedom boards and other similar hardware configuration steps.

OS Image for BeagleBone/PocketBeagle from SD card

  1. Download the special mikroBUS/Greybus BeagleBoard.org Debian image from here.
  2. Load this image to a microSD card using a tool like Etcher.
  3. Insert the microSD card into the Green Gateway.
  4. Power the Green Gateway via the 12V barrel jack.
  5. Use Ethernet via a cable or WiFi via connmanctl for an Internet connection.
/* Work in Progress */
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
/dts-v1/;
/plugin/;
/ {
@jadonk
jadonk / output
Last active June 2, 2017 14:06 — forked from ravikp7/output
parsing test
<Buffer ff ff ff ff ff ff a0 f6 fd 8a e9 1a 08 00 03>
{ h_dest: [ 255, 255, 255, 255, 255, 255 ],
h_source: [ 160, 246, 253, 138, 233, 26 ],
h_proto: 2048 }
@jadonk
jadonk / adc121c021.diff
Last active March 3, 2016 06:51 — forked from pdp7/adc121c021.diff
Android has driver for the ADC in the SeeedStudio Grove ADC: android / kernel / bcm / drivers / power / adc121c021_driver.c
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig
index 1ddd13c..b9d7919 100644
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -495,6 +495,13 @@ config CHARGER_RT9455
help
Say Y to enable support for Richtek RT9455 battery charger.
+config MONITOR_ADC121C021_I2C
+ tristate "ADC121C021 Battery Monitor"
#!/bin/sh
# if (a device is currently using 192.168.7.2) then
# Use 192.168.8.x on the host downstream port and slave upstream port
cat <<LOCAL_END >>/etc/network/interfaces
iface eth1 inet static
address 192.168.8.1
netmask 255.255.255.252
@jadonk
jadonk / CARD_0.html
Last active August 29, 2015 14:16 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;">Overview<br></span><span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 14px; line-height: 20px;">In this tutorial, you will learn how to control the color of an RGB LED using a BeagleBone Black (BBB).<br></span><span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;"><img src="https://learn.adafruit.com/system/assets/assets/000/009/503/medium800/beaglebone_overview_web.jpg?1396892026" style="width: 403px;"><br></span><span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 14px; line-height: 20px;">Because the BBB runs Linux, there are many ways in which it can be programmed. In this tutorial we show how to control the power output of a GPIO pin and hence control the color of an RGB LED using Python.</span><span style="color: rgb(51, 51, 51); font-family:
@jadonk
jadonk / calibrate.sh
Last active August 29, 2015 14:13 — forked from anonymous/calibrate.sh
#!/bin/sh
apt-get install xinput_calibrator
XAUTHORITY=~debian/.Xauthority DISPLAY=:0.0 xinput_calibrator