Skip to content

Instantly share code, notes, and snippets.

BEGIN MESSAGE.
GmcSE63i9lDppCr IK2zYksXmlyqtfu dMf7npewaqPWrou lex11gWxozaeMQz
lhSbDzGLYUB1wWJ 9fJNOmkwJXoTCKq 6Xr2MZHgg6oSfRF VdmW0VFV7c0CXVN
E0UlBnt7RQeqlqd QM1aXohhevoEFzk oQEm9P0RyGdiT5y wGIEUmkRNJYvOyD
XsGgKNXBLxJ0rlH N8PMgik8xEWBe2I n5VdC21.
END MESSAGE.
@kd8bxp
kd8bxp / mastodon.radio.txt.asc
Created November 7, 2022 21:05
Keyoxide proof I'm @kd8bxp on mastodon.radio
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hey There Here's a signature profile with proof I am @kd8bxp@mastodon.radio
verify this profile at https://keyoxide.org/sig
proof=https://mastodon.radio/@kd8bxp
-----BEGIN PGP SIGNATURE-----
BEGIN MESSAGE.
byCnH4LNiX8xy4x GwKRyrhuaKL3h5F YsDlMwErXpgrQV6 krLjPDXx7Pz1dMs
q8r4327tgx7uOYz CFN2zCQ4WU1TCKq 6Xr2MZHgg6QFxtR FDR9bTvNvpEACrN
nrlFf9RsDCupaaa Wgt39K6PTuSE9a0 gg0i7Q7zAl2RzLR pYJ8WnTDcrllkTf
uCBJvkHvdGURbmJ 7vvlr91z2ToBiDd coGmI21.
END MESSAGE.
@kd8bxp
kd8bxp / M5StickV_AprilTag.py
Created August 6, 2022 17:10
HELP ME!!! I want to send what gets printed to the console out to the uart....I'm getting various errors.
#
# AprilTagを検出.
# https://docs.openmv.io/library/omv.image.html#image.image.find_apriltags
#
##################################################
# import
##################################################
import lcd
import sensor
IO_LOC "input_a" 14;
IO_LOC "input_b" 15;
IO_LOC "and_result" 16;
@kd8bxp
kd8bxp / notes.txt
Created March 11, 2021 06:10
Original example found here: https://github.com/martinberlin/cale-idf/wiki/Parallel-epapers-driven-by-Epdiy-with-I2S-Data-bus These are the small changes I made to get it to compile with esp-idf v4.3-beta1
added line 6
changed line 39 - from display.setFont(&Ubuntu_M36pt7b); to display.setFont(&Ubuntu_M24pt8b);
added line 41 display.update();
@kd8bxp
kd8bxp / ed047tc1 lilygo t5 epd experiment to rotate
Created March 8, 2021 23:22
ED047TC1 Lilygo T5 EPD Experiment to rotate display using Arduino IDE
Clearly I don't know what I'm doing! (This is not a joke)
Thanks to the work of @martinberlin and all hard work found here:
https://github.com/martinberlin/cale-idf/wiki/Model-parallel-ED047TC1.h
I thought it might be easy to get this to work with the Arduino IDE
and ended up with a lot of compile errors.
Most were easy to fix, a few were not. I finally ended up doing a mix of Martin's code with the Adafruit GFX library written
for the Arduino IDE and the the LilyGo-EPD47 library (also writtend for the IDE) https://github.com/Xinyuan-LilyGO/LilyGo-EPD47
Still a lot of errors, so I decided that I really just needed to scale everything back.
//Written for the M5StackC but should work for other micro-controller
//For the LCTECH 8 digit - 7 segment display module
//Finally found a picture of how it is wired, from
//https://libstock.mikroe.com/projects/view/3860/lctech-74hc164-dual-seven-segments-display-demo-max-min-thermometer
//and found a little more information on the 74c164 shift register from here
//http://www.bristolwatch.com/arduino/arduino3.htm
//with a little trial and error I was finally able to get this to work
//thou it is not perfect, and still needs some work it's a start
//Nov 15, 2020 - LeRoy Miller, KD8BXP (c)
#include <M5StickC.h>
#include <Arduino.h>
#include <SPI.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <ArduinoHttpClient.h>
/*____Wifi _____________________*/
#define WIFI_SSID "homeinternet" // Enter your SSID here
#define WIFI_PASS "trixie4me" // Enter your WiFi password here
const int NetworkTimeout = 30*1000;
@kd8bxp
kd8bxp / trs80sdcarddrive.ino
Created May 24, 2019 21:16
save is not working
// **************************************************************************
// **** MyTeSed: T100 SD Card Reader for Arduino Nano and SD Card Reader ****
// **************************************************************************
// ** David Stephenson 2017-08-23 **
// ** Version 0.01 **
// **********************************
#include <SPI.h>
#include <SD.h>
//#include <SoftwareSerial.h>