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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# converts tasmota irsend commands to flipper ir files | |
# example usage: python tasmotairjson2flipperir.py <<< '{"Protocol":"NEC","Bits":32,"Data":"0x20DF10EF"}' | |
import sys | |
import json | |
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
#!/usr/bin/env python3 | |
# derived from https://gist.github.com/jinschoi/f39dbd82e4e3d99d32ab6a9b8dfc2f55 | |
from typing import Iterable, Union, Any | |
# freq: frequency in Hz | |
# zerolen: length of space bit in μs | |
# onelen: length of mark bit in μs |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# derived from https://github.com/cnorlander/USB2VFD-Deck/ | |
# for use with EVC20X02 VFD display controller https://it.aliexpress.com/item/1005006110081409.html | |
import serial | |
import time | |
import pytz |
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
// Example sketch which shows how to display some patterns | |
// on a 64x32 LED matrix | |
// | |
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h> | |
#define PANEL_RES_X 128 // Number of pixels wide of each INDIVIDUAL panel module. | |
#define PANEL_RES_Y 64 // Number of pixels tall of each INDIVIDUAL panel module. |
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
//Version 1.02 | |
#include <WiFi.h> | |
#include <Adafruit_MLX90640.h> | |
Adafruit_MLX90640 mlx; | |
//#include <U8g2lib.h> | |
/* | |
#define SDA_PIN 41 |
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 pyfirmata | |
import time | |
class SPI: | |
START_SYSEX = 0xF0 | |
END_SYSEX = 0xF7 | |
SPI_DATA = 0x68 | |
SPI_TRANSFER = 0x02 |
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
package main | |
import ( | |
"fmt" | |
"strings" | |
"unicode" | |
"bufio" | |
"os" | |
"github.com/gojp/kana" |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# derived from https://github.com/cnorlander/USB2VFD-Deck/ | |
import serial | |
import time | |
import pytz | |
from datetime import datetime, timezone |
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
/* usage examples: | |
* | |
#include <bits/stdc++.h> | |
using namespace std; | |
#include "pythonic.hpp" | |
auto x = 4; | |
auto y = 3.37; |
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
#!/usr/bin/env python | |
# code derived from https://gist.githubusercontent.com/flibbertigibbet/8165881/raw/7f580b6735ad1f03c6e6060cd1c8571048afad6a/recurse_ftp.py | |
from ftplib import FTP | |
from time import sleep | |
import os | |
import sys | |
my_dirs = [] # global |
NewerOlder