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 | |
#----make sure this is run as root | |
user=`id -u` | |
if [ $user -ne 0 ]; then | |
echo "This script requires root permissions. Please run this script with sudo." | |
exit | |
fi | |
#----ascii art! |
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: Service | |
metadata: | |
name: markdownrender | |
labels: | |
app: markdownrender | |
spec: | |
type: NodePort | |
ports: | |
- port: 8080 |
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
import RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
GPIO.setup(18,GPIO.OUT) | |
print "LED on" | |
GPIO.output(18,GPIO.HIGH) | |
time.sleep(1) | |
print "LED off" | |
GPIO.output(18,GPIO.LOW) |
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
import serial | |
ser = serial.Serial('/dev/ttyACM0') | |
with open('log.txt', 'w') as log_file: | |
while True: | |
msg = '' | |
c = ser.read(1).decode('utf-8') | |
while c != '\n': |
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 "disk91_LoRaE5.h" | |
#include "Seeed_Arduino_GroveAI.h" | |
#include <Wire.h> | |
#include "TFT_eSPI.h" | |
#define FF17 &FreeSans9pt7b | |
// keys | |
OlderNewer