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
[tool.poetry] | |
name = "imager" | |
version = "0.0.0" | |
description = "" | |
authors = ["Neale Petrillo <neale@ecovative.com>"] | |
license = "Proprietary" | |
readme = "README.md" | |
packages = [{include = "imager"}] | |
[tool.poetry.dependencies] |
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 paho.mqtt.client as client | |
import paho.mqtt.properties as props | |
properties = props.Properties(props.PacketTypes.CONNECT) | |
properties.SessionExpiryInterval=3600 | |
mqtt_client = client.Client(client_id="test", userdata=None, protocol=mqtt.MQTTv5, transport="tcp") | |
mqtt_client.username_pw_set('mqtt_server_username', 'mqtt_server_password') | |
mqtt_client.connect('http://mqtt_server_address.com', 1234, clean_start=False, properties=properties) |
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 random | |
from paho.mqtt.client import * | |
class ClusterClient(Client): | |
"""A subclass of paho.mqtt.Client that supports connecting to a cluster of | |
mqtt brokers. connect() and connect_async() additionally accept a list | |
of hostnames or host/port tuples: | |
connect("host1") |
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 "driver/pcnt.h" | |
uint8_t pcnt_pin = 16; | |
unsigned long check_time = 0; | |
int16_t count = 0; | |
pcnt_config_t tac_config; | |
void setup() { | |
Serial.begin ( 115200 ); | |
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
{ | |
"\UF729" = moveToBeginningOfParagraph:; // home | |
"\UF72B" = moveToEndOfParagraph:; // end | |
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home | |
"^\UF72B" = moveToEndOfDocument:; // ctrl-end | |
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home | |
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end | |
”^\UF702” = (moveWordLeft:); // ctrl-left |