Skip to content

Instantly share code, notes, and snippets.

@fbelleau
fbelleau / i2c-hmc5883.ino
Created November 11, 2017 23:15
i2c-hmc5883
// http://arduino.bucki.pl/hmc5883-gy-273-test/
/*
An Arduino code example for interfacing with the HMC5883
by: Jordan McConnell
SparkFun Electronics
created on: 6/30/11
license: OSHW 1.0, http://freedomdefined.org/OSHW
@fbelleau
fbelleau / i2c-mpu6050.ino
Last active November 11, 2017 23:16
i2c-mpu6050
// https://playground.arduino.cc/Main/MPU-6050
// MPU-6050 Short Example Sketch
// By Arduino User JohnChi
// August 17, 2014
// Public Domain
#include<Wire.h>
const int MPU_addr=0x68; // I2C address of the MPU-6050
@fbelleau
fbelleau / i2c-lcd-serial.ino
Last active November 11, 2017 23:16
i2c-lcd-serial
// https://github.com/marcoschwartz/LiquidCrystal_I2C
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
@fbelleau
fbelleau / i2c-scanner.ino
Last active November 11, 2017 23:15
i2c-scanner
// i2c_scanner
// https://playground.arduino.cc/Main/I2cScanner
#include <Wire.h>
void setup()
{
Wire.begin();
[
"organisme",
{
"type": "help",
"helpvalue": "<h4>Catégories d'emploi</h4><p>Créer une entrée pour chaque catégorie d'employés ou de contractuels.</p>"
},
{
"key": "comments",
"add": "Créer une catégorie de resources humaines",
[
{
"key": "organisme",
"title": "Organisme propriétaire"
},
{
"key": "adresse",
"title": "Adresse de la salle ou code postal"
},
{
{
"boolean": false,
"conditionBlade": true,
"conditionSan": true,
"conditionUPS": true,
"conditionClimatiseur": true,
"conditionGeneratrice": false,
"adresse": "fdsfds",
"salleFonction": "Salle secondaire",
"nombreCabinets": 5,