Nothing to see here
This file contains hidden or 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
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() { |
This file contains hidden or 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
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: |
This file contains hidden or 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 <LowPower.h> | |
void setup() { | |
} | |
void loop() { | |
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF); | |
} |
This file contains hidden or 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 <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()) { |
This file contains hidden or 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 <RH_RF95.h> | |
#include "FS.h" |
This file contains hidden or 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
;---------------------------------------------------------- | |
; 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) | |
;---------------------------------------------------------- |
This file contains hidden or 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
/* | |
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> |
This file contains hidden or 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
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 |
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