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 | |
#if a gpio group exists, doing this at startup allows any group member to control leds | |
#sudo chgrp gpio /sys/class/leds/{diy,work}-led/brightness | |
#sudo chmod g+w /sys/class/leds/{diy,work}-led/brightness | |
LED_GPIO="/sys/class/leds/power-led" | |
LED_ON=255 | |
LED_OFF=0 |
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
rock64@rockpro64:/mnt/seagate-green-1.5tb$ sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 | |
Iozone: Performance Test of File I/O | |
Version $Revision: 3.429 $ | |
Compiled for 64 bit mode. | |
Build: linux | |
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins | |
Al Slater, Scott Rhine, Mike Wisner, Ken Goss | |
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | |
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, |
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
rock64@rockpro64:/mnt/samsung-960-evo-250GB$ sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 | |
Iozone: Performance Test of File I/O | |
Version $Revision: 3.429 $ | |
Compiled for 64 bit mode. | |
Build: linux | |
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins | |
Al Slater, Scott Rhine, Mike Wisner, Ken Goss | |
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | |
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, |
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 <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#define WIFI_SSID "YOUR_SSID" | |
#define WIFI_PWD "YOUR_SSID_PASSWORD" | |
void setup() | |
{ |
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 <ESP8266WiFi.h> //https://github.com/esp8266/Arduino | |
#include <DNSServer.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266WebServer.h> | |
#include <ArduinoOTA.h> | |
#define SSID "fancy-ssid" | |
#define PASS "pass" |
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 <WiFi.h> | |
#include <WiFiClient.h> | |
#include <IPAddress.h> | |
String inputString=""; | |
String inputStringWiFi=""; | |
String hello="hello\r"; |
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 | |
# See https://github.com/pfeerick/pine64-scripts/blob/master/pine64-battery-colour.sh | |
# for updated versions of this script. | |
SWITCH="\033[" | |
NORMAL="${SWITCH}0m" | |
RED="${SWITCH}1;31m" | |
GREEN="${SWITCH}1;32m" | |
YELLOW="${SWITCH}1;33m" |
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 | |
# Simple (!!) script that displays battery info for various pine64 (and possibly other) devices | |
# (specifically, those that use an AXP20x series power management chip). | |
# Get device model | |
if [ -f /proc/device-tree/model ]; then | |
IFS= read -r -d '' DEVICE_MODEL </proc/device-tree/model || [[ $DEVICE_MODEL ]] | |
else | |
DEVICE_MODEL="Unknown model" |
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 "flashLOG.h" | |
flashLOG::flashLOG(char *filename) | |
{ | |
_logfilename = filename; | |
} | |
void flashLOG::start() { | |
if (!LittleFS.begin()) | |
{ |
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 "flashLOG.h" | |
flashLOG::flashLOG(char *filename) | |
{ | |
_logfilename = filename; | |
} | |
void flashLOG::start() { | |
if (!LittleFS.begin()) | |
{ |