Skip to content

Instantly share code, notes, and snippets.

@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"
@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 }
/* 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 / 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.
@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"