Skip to content

Instantly share code, notes, and snippets.

@vallettea
vallettea / mcp3002.js
Created October 15, 2015 10:20 — forked from 4rzael/mcp3002.js
A litlle example code to read data from a MCP3002 on a RPi using pi-spi
'use strict';
var SPI = require('pi-spi');
var spi = SPI.initialize("/dev/spidev0.0");
// Read value from a MCP3002 (http://ww1.microchip.com/downloads/en/DeviceDoc/21294C.pdf)
function readMCP(channel, callback) {
if (spi === undefined) return;
var mode = (8 + channel) << 4;
@vallettea
vallettea / sim908.md
Last active September 16, 2015 16:42 — forked from 4rzael/sim908.md
Use the SIM908 on odroidC1

How to use the SIM908 on an ODROID-C1

Automatic way :

  • Download the file sim908.sh

  • type sh sim908.sh in your terminal

Manual way :