~ % route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 1024 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.16.3.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
172.16.57.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
gutil = require('gulp-util'), | |
source = require('vinyl-source-stream'), | |
buffer = require('vinyl-buffer'), | |
del = require('del'), | |
browserify = require('browserify'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Ethernet.h> | |
#include <SPI.h> | |
#include <Button.h> | |
#include <elapsedMillis.h> | |
elapsedMillis doorElapsed; | |
unsigned int doorInterval = 100; | |
Button door = Button(A0, INPUT_PULLUP); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
SoftwareSerial cptSerial(2, 3); | |
#define startFrame 0x02 | |
#define endFrame 0x03 | |
#define startLine 0x0A | |
#define endLine 0x0D | |
void setup() { | |
Serial.begin(9600); | |
cptSerial.begin(1200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
char inChar; | |
String data = ""; | |
SoftwareSerial teleInfo(2, 3); | |
int watts; | |
void setup() { | |
Serial.begin(9600); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "LPD8806.h" | |
#include "SPI.h" | |
// passer à 0 pour virer le debug | |
#define DEBUG 1 | |
// nb de leds pour un tube | |
// 144 leds par tube, leds adressable 3 par 3, et 3 leds pour un RGB, donc 144/9 = 16 leds RGB en equivalence | |
int nLEDs = 16; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// automatically set by OF | |
attribute vec4 position; | |
attribute vec2 texcoord; | |
uniform mat4 modelViewProjectionMatrix; | |
// varying that will be passed to the fragment shader | |
varying vec2 vUv; | |
// noop vertex shader | |
void main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
void main() { | |
vec2 p = gl_FragCoord.xy / resolution.xy; | |
vec3 a = texture2D(from, p).rgb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <DMD.h> | |
#include <TimerOne.h> | |
#include <Ethernet.h> | |
#include <EthernetUdp.h> | |
// ----------------------------------------------------------- | |
// DMD stuff | |
// USE with https://github.com/xseignard/DMD, not the freetronics one!! | |
// ----------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int IR = A0; | |
const int MIN_MEASURE = 10; | |
const int MAX_MEASURE = 80; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(IR, INPUT); | |
} |