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
echo "$1" | |
if test $# -gt 0; then | |
export ID=$1 | |
else | |
echo "no output dir specified" | |
exit 1 | |
fi | |
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
pip install git+https://github.com/NAzT/ma1.git |
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, sys, time, re, os | |
import threading | |
import logging | |
import time, struct | |
# import paho.mqtt.client as mqtt | |
import paho.mqtt.client as paho | |
import paho.mqtt.publish as _publish | |
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
from Maix import GPIO | |
from machine import UART | |
from fpioa_manager import fm, board_info | |
import lcd, image | |
import usocket, network, time | |
import urequests as request | |
fm.register(8, fm.fpioa.GPIOHS0) | |
wifi_en=GPIO(GPIO.GPIOHS0,GPIO.OUT) |
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 network, time | |
import time | |
from Maix import GPIO | |
from machine import UART | |
from fpioa_manager import fm, board_info | |
import lcd, image | |
from umqtt import MQTTClient | |
WIFI_SSID = "LiLy_2.4G" |
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 | |
set -e | |
usage() { | |
echo "USAGE: `basename $0` [Options]" | |
echo " ssm target selection using peco" | |
echo "" | |
echo "Optinal Arguments:" | |
echo " All arguments excluded options pass to initial queries of peco" | |
echo "" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 network, time | |
import time | |
from Maix import GPIO | |
from machine import UART | |
from fpioa_manager import fm, board_info | |
import lcd, image | |
import usocket, network, time | |
import urequests as request |
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 usocket as socket | |
import ustruct as struct | |
from ubinascii import hexlify | |
class MQTTException(Exception): | |
pass | |
class MQTTClient: | |
def __init__(self, client_id, server, port=0, user=None, password=None, keepalive=0, |