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> // needed for Arduino versions later than 0018 | |
#include <Ethernet.h> | |
#include <EthernetUdp.h> // UDP library from: bjoern@cs.stanford.edu 12/30/2008 | |
// Enter a MAC address and IP address for your controller below. | |
// The IP address will be dependent on your local network: | |
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
IPAddress ip(192, 168, 1, 177); | |
IPAddress remote(192, 168, 1, 5); |
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 <Arduino.h> | |
#include <WebSocketsServer.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266WiFi.h> | |
#include <Hash.h> | |
#include <Adafruit_NeoPixel.h> |
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 <Arduino.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266WiFi.h> | |
#include <Adafruit_NeoPixel.h> | |
#include <Thread.h> | |
#include <ThreadController.h> | |
#include <WebSocketsServer.h> | |
//Wifi Settings | |
const char* ssid = "RocketzNode"; |
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
#!/bin/bash | |
# Auto rotate screen based on device orientation | |
# based on https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu | |
# install | |
# 1. apt-get install iio-sensor-proxy inotify-tools | |
# 2. add script to autostart | |
# Receives input from monitor-sensor (part of iio-sensor-proxy package) | |
# Screen orientation and launcher location is set based upon accelerometer position |
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
########### cat /sys/kernel/debug/gpio ############### | |
gpiochip2: GPIOs 338-381, parent: platform/INT33FC:02, INT33FC:02: | |
gpio-0 (Unrequested ) in hi pad-29 offset:0x3a0 mux:0 fall level up 20k | |
gpio-1 (Unrequested ) in out lo pad-33 offset:0x420 mux:0 | |
gpio-2 (Unrequested ) in out hi pad-30 offset:0x3c0 mux:0 | |
gpio-3 (Unrequested ) in hi pad-31 offset:0x3e0 mux:0 fall level # Touch screen touched - may by IRQ of touch chip | |
gpio-4 (Unrequested ) in lo pad-32 offset:0x400 mux:0 down 20k | |
gpio-5 (Unrequested ) in lo pad-34 offset:0x440 mux:1 down 20k | |
gpio-6 (ACPI:Event ) in hi pad-36 offset:0x480 mux:0 fall rise up 20k |
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
/* | |
* | |
* Created on: Jul 21, 2018 | |
* Author: links | |
*/ | |
#include <OneWire.h> | |
#include "dev_ids.h" | |
#ifdef ARDUINO_AVR_MEGA2560 |
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
<html> | |
<!-- | |
Samsung Test Pattern Generator | |
creates a Test Pattern for HDMI calibration (ADC) | |
use arrow keys to change pattern and Space to invert | |
has worked for my fine at 720p @ 60Hz with 8x8 | |
--> | |
<head> |
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
#!/bin/bash | |
xinput set-prop "SIS0457:00 0457:1133" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 | |
xinput set-prop "Asus TouchPad" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1 | |
while true ; do | |
xrandrout="$(xrandr)" | |
x=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_x_raw) | |
y=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_y_raw) | |
z=$(cat /sys/bus/iio/devices/iio\:device0/in_accel_z_raw) |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
labels: | |
app: shinobi-cctv | |
name: shinobi-cctv | |
namespace: cctv | |
data: | |
conf.json: | |
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
stages: | |
- build | |
- test | |
docker-build-master: | |
tags: | |
- docker | |
image: jonoh/docker-buildx-qemu | |
stage: build | |
before_script: |
OlderNewer