Skip to content

Instantly share code, notes, and snippets.

View ankitdaf's full-sized avatar

Ankit Daftery ankitdaf

View GitHub Profile
/*
* Blog post describing the use case for this script is here :
* http://blog.ankitdaf.com/snooping-on-i2c-making-an-oled-display-work/
*
*/
#include <Wire.h>
int buff[1024];
@ankitdaf
ankitdaf / BB-ADS7846-00A0.dts
Created June 1, 2015 17:56
Adding XPT2046 ( ADS7846 ) Touchscreen Support to Beaglebone Black Kernel version 4.1.0-rc5-bone3
/dts-v1/;
/plugin/;
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include <dt-bindings/pinctrl/am33xx.h>
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */