Skip to content

Instantly share code, notes, and snippets.

View stephanebachelier's full-sized avatar
🎯
Focusing

Stéphane Bachelier stephanebachelier

🎯
Focusing
  • Paris France
View GitHub Profile
@stephanebachelier
stephanebachelier / authors.json
Created March 17, 2017 08:12
Metz sur les bancs
{
"authors": [
{
"id": 1,
"name": "Martin Page",
"picture": "",
"bio": ""
},
{
"id": 2,
@stephanebachelier
stephanebachelier / authors.json
Last active March 21, 2017 13:00 — forked from sarahverdier/authors.json
Metz sur les bancs
{
"authors": [
{
"id": 1,
"name": "Sophie Cherer",
"picture": "Photo Sophie Chérer © Droits réservés.JPG",
"bio": ""
},
{
"id": 2,
@stephanebachelier
stephanebachelier / config.json
Created November 29, 2017 08:26 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"lat": 51.5085,
"lon": -0.1257,
"timezone": "Europe/London",
"timezone_offset": 0,
"current": {
"dt": 1701344588,
"sunrise": 1701330122,
"sunset": 1701359784,
"temp": 3.02,
@stephanebachelier
stephanebachelier / readme.md
Last active December 9, 2023 01:24 — forked from mikaelleven/readme.md
NodeJS SPI Dump for MCP3008 (and Raspberry Pi)

NodeJS SPI Dump for MCP3008

This is a simple script that reads all eight analog channels of an MCP3008 each second and outputs the result to the console.

I created this script to ease debugging of the MCP3008 ADC connected to my Raspberry Pi.

If you need to troubleshoot the SPI connection in itself you can check out my guide how to test SPI through the loopback "debug mode" https://mikaelleven.wordpress.com/2015/12/10/troubleshooting-spi-on-raspberry-pi-nodejs/.

Installation