Skip to content

Instantly share code, notes, and snippets.

View gist:e64c42fb24cfb2d0d27ecb0cbd0cdc99
/* 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 Jun 2, 2017 — forked from ravikp7/output
parsing test
View output
<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 Mar 3, 2016 — forked from pdp7/adc121c021.diff
Android has driver for the ADC in the SeeedStudio Grove ADC: android / kernel / bcm / drivers / power / adc121c021_driver.c
View adc121c021.diff
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"
View config_bbb_slave.sh
#!/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 Aug 29, 2015 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
View CARD_0.html
<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:
View calibrate.sh
#!/bin/sh
apt-get install xinput_calibrator
XAUTHORITY=~debian/.Xauthority DISPLAY=:0.0 xinput_calibrator
View gist:dd2ede60ab93111621a8
/*
IAP_Sensor_03 - added millis() timer
NOTES:
Consider using http://playground.arduino.cc/Code/Timer
This example connects to an unencrypted Wifi network.
Then it prints the MAC address of the Wifi BoosterPack / LaunchPad,
@jadonk
jadonk / CARD_0.html
Created Aug 21, 2014 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
View CARD_0.html
<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: