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/sh | |
# Organize files by file extension | |
# Written in answer to http://unix.stackexchange.com/q/19110/250 | |
# Configuration (feel free to add your types and change the path) | |
DOCUMENTS=' | |
doc | |
' |
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
pi@homeassistant:~ $ curl -sL https://raw.githubusercontent.com/patrickjquinn/P-Brain.ai-RasPi/master/raspberrypi.sh | bash | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
git is already the newest version. | |
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. | |
Cloning into 'P-Brain.ai-RasPi'... | |
remote: Counting objects: 9916, done. | |
remote: Total 9916 (delta 0), reused 0 (delta 0), pack-reused 9916 | |
Receiving objects: 100% (9916/9916), 25.93 MiB | 941.00 KiB/s, done. |
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
#source [find interface/stlink-v2-1.cfg] | |
source [find interface/stlink-v2.cfg] | |
transport select hla_swd | |
source [find target/stm32f1x.cfg] | |
#reset_config srst_only | |
reset_config none separate |
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 <ESP8266WiFi.h> | |
#include <ArduinoJson.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
// SCL GPIO5 | |
// SDA GPIO4 | |
#define OLED_RESET 0 // GPIO0 | |
Adafruit_SSD1306 display(OLED_RESET); |