Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| #include <SPI.h> | |
| #include "FS.h" | |
| #include "SPIFFS.h" | |
| #define CS 5 | |
| #define FORMAT false | |
| SPIClass * vspi = NULL; | |
| SPISettings settings(10000000, MSBFIRST, SPI_MODE0); | |
| //SPISettings settings(1000000, MSBFIRST, SPI_MODE0); |
| @echo off | |
| echo Uninstalling KB3075249 (telemetry for Win7/8.1) | |
| start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart | |
| echo Uninstalling KB3080149 (telemetry for Win7/8.1) | |
| start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart | |
| echo Uninstalling KB3021917 (telemetry for Win7) | |
| start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart | |
| echo Uninstalling KB3022345 (telemetry) | |
| start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart | |
| echo Uninstalling KB3068708 (telemetry) |
| [[[HSRC]]] | |
| [[[STEP]]] | |
| [[[DEFINE routername="OpenWrt Barrier Breaker"/]]] | |
| [[[/STEP]]] | |
| [[[STEP]]] | |
| [[[REQUEST]]] | |
| POST /cgi-bin/luci HTTP/1.1 | |
| Host: %%%routerip%%% |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| # running this be sure I2C speed is set as desired | |
| # sudo modprobe -r i2c_bcm2708 && sudo modprobe i2c_bcm2708 baudrate=2000000 | |
| # -*- coding: latin-1 -*- | |
| import time, random | |
| import gaugette.ssd1306 as ssd1306 | |
| import RPi.GPIO as GPIO | |
| import picamera | |
| from datetime import datetime | |
| import rotaryEnc |
| /* | |
| * Framebuffer Driver for Adafruit SSD1306 based Monochrome OLED displays | |
| * | |
| * Copyright 2015 Noralf Trønnes | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | |
| */ |
| /** | |
| * according to http://www.adafruit.com/datasheets/UG-2864HSWEG01.pdf Chapter 4.4 Page 15 | |
| */ | |
| void ssd1306Init(void) | |
| { | |
| i2c_OLED_send_cmd(0xAE); // Set display OFF | |
| i2c_OLED_send_cmd(0xD4); // Set Display Clock Divide Ratio / OSC Frequency | |
| i2c_OLED_send_cmd(0x80); // Display Clock Divide Ratio / OSC Frequency | |
| #!/usr/bin/env bash | |
| # gsettings list-recursively org.gnome.system.proxy | |
| # Change de ip address and port number accordingly. | |
| function myProxyOn() { | |
| gsettings set org.gnome.system.proxy mode 'manual' # ' manual / nome / automatic ' | |
| gsettings set org.gnome.system.proxy.http host '10.0.0.1' | |
| gsettings set org.gnome.system.proxy.http port 8080 | |
| gsettings set org.gnome.system.proxy.https host '10.0.0.1' |