Skip to content

Instantly share code, notes, and snippets.

View remisarrailh's full-sized avatar

Rémi Sarrailh remisarrailh

View GitHub Profile
const int reedSwitch1 = 2; //LOCK
const int reedSwitch2 = 3; //DOOR
void setup() {
// put your setup code here, to run once:
pinMode(reedSwitch1, INPUT);
Serial.begin(115200);
}
void loop() {
const int reedSwitch1 = 2; //LOCK
void setup() {
// put your setup code here, to run once:
pinMode(reedSwitch1, INPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
#include <LowPower.h>
void setup() {
}
void loop() {
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
}
#include <RH_RF95.h>
#include <SPI.h>
#include <LowPower.h>
RH_RF95 rf95(8, 7); // Instanciate a LoRa driver
const float frequency = 868.0; // Change the frequency here.
void setup(){
if (!rf95.init()) {
#include <SPI.h>
#include <RH_RF95.h>
#include "FS.h"
;----------------------------------------------------------
; GAMEHUT SHELL
; BY JON BURTON - APR 2018
;----------------------------------------------------------
INCLUDE SYSTEM.S ;INCLUDES LOTS OF SYSTEM CODE TO MAKE ALL THIS POSSIBLE
;----------------------------------------------------------
; VRAM MEMORY MAP IN HEXADECIMAL
; (NOTE: CHARACTERS ARE 8 X 8 PIXEL BLOCKS)
;----------------------------------------------------------
/*
First Configuration
This sketch demonstrates the usage of MKR WAN 1300 LoRa module.
This example code is in the public domain.
*/
#include <MKRWAN.h>
#include "SparkFun_Si7021_Breakout_Library.h"
#include <Wire.h>
TEST 1
28s lost
root@dev:/home/pi# /home/pi/yavta/yavta --capture=10000000 -n 3 --encode-to=/home/pi/test/file.h264 -f UYVY -m -T /dev/video0
We're encoding to /home/pi/test/file.h264
Device /dev/video0 opened.
Device `unicam' on `platform:unicam 3f801000.csi1' (driver 'unicam') is a video capture (without mplanes) device.
stride is 0
stride is now 1280
Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4177920
@remisarrailh
remisarrailh / totallynotabusing_comment.md
Created November 20, 2017 14:48
Placeholder for images

Nothing to see here

@remisarrailh
remisarrailh / wittr-modules.md
Created November 20, 2017 10:27
Short description of wittr modules.

Wittr Modules description

In case someone wonders what the module in wittr do, here is short description taken from https://www.npmjs.com

  • Babelify : Use latest feature in javascript while maintaining compatibility with older browser
  • Browserify: browserify will recursively analyze all the require() calls in your app in order to build a bundle you can serve up to the browser in a single <script> tag.
  • busboy: A streaming parser for HTML form data for node.js
  • closest : Similar to jQuery's $.fn.closest and $.fn.parents. Finds the closest parent that matches a selector
  • compression : Node.js compression middleware