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 <SdFat.h> | |
// SD card pins | |
#define SD_CS_PIN GPIO_NUM_13 | |
#define SD_CLK_PIN GPIO_NUM_14 | |
#define SD_MOSI_PIN GPIO_NUM_15 | |
#define SD_MISO_PIN GPIO_NUM_2 | |
#define SD_CONFIG SdSpiConfig(SD_CS_PIN, USER_SPI_BEGIN, SD_SCK_MHZ(16)) |
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
{ | |
"updates": { | |
"esp32": "", | |
"host": "res-us-east-1.living.ai", | |
"hosts": { | |
"0": "res-us-east-1.living.ai", | |
"1": "res-eu-central-1.living.ai", | |
"2": "res-ap-southeast-1.living.ai", | |
"3": "res-cn-shenzhen.livingai.cn" | |
}, |
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
{ | |
"updates": { | |
"esp32": "sdcard/esp32/alexa.bin", | |
"esp_sha256": "", | |
"esp_sum": 0, | |
"host": "res-us-east-1.living.ai", | |
"hosts": { | |
"0": "res-us-east-1.living.ai", | |
"1": "res-eu-central-1.living.ai", | |
"2": "res-ap-southeast-1.living.ai", |
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
with Image.open(filename).convert('RGB') as image: | |
width, height = image.size | |
img_x = int((240 - width) / 2) | |
img_y = int((320 - height) / 2) | |
start_color = 0 | |
start_x = 0 | |
for y in range(0, height): | |
start_color = 0 | |
start_x = 0 |
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> | |
#define TJC Serial0 | |
#define TX_Pin 6 | |
#define RX_Pin 7 | |
#define FRAME_LENGTH 7 | |
int a; | |
unsigned long nowtime; | |
void setup() | |
{ |
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 argparse | |
import os | |
from pathlib import Path | |
import struct | |
if __name__ == "__main__": | |
desc = """TFT RLE to RGB5656 image converter | |
Developped by Clark Scheff, licensed under GPLv3""" | |
parser = argparse.ArgumentParser(description=desc) |
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
0000:0000 | 01 00 00 00 14 05 00 00 00 00 00 00 00 00 00 00 | ................ | |
0000:0010 | 00 00 00 00 FE F3 2F 00 00 F8 00 F8 00 F8 E0 07 | ....þó/..ø.ø.øà. | |
0000:0020 | E0 07 E0 07 80 AB 38 01 FE F3 2F 00 00 F8 00 F8 | à.à..«8.þó/..ø.ø | |
0000:0030 | 00 F8 E0 07 E0 07 E0 07 80 AB 38 01 FE F3 2F 00 | .øà.à.à..«8.þó/. | |
0000:0040 | 00 F8 00 F8 00 F8 E0 07 E0 07 E0 07 80 AB 38 01 | .ø.ø.øà.à.à..«8. | |
0000:0050 | FE F3 2F 00 00 F8 00 F8 00 F8 E0 07 E0 07 E0 07 | þó/..ø.ø.øà.à.à. | |
0000:0060 | 80 AB 38 01 FE F3 2F 00 00 F8 00 F8 00 F8 E0 07 | .«8.þó/..ø.ø.øà. | |
0000:0070 | E0 07 E0 07 80 AB 38 01 FE F3 2F 00 00 F8 00 F8 | à.à..«8.þó/..ø.ø | |
0000:0080 | 00 F8 E0 07 E0 07 E0 07 80 AB 38 01 FE F3 2F 00 | .øà.à.à..«8.þó/. | |
0000:0090 | 00 F8 00 F8 00 F8 E0 07 E0 07 E0 07 80 AB 38 01 | .ø.ø.øà.à.à..«8. |
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 argparse | |
from pathlib import Path | |
import struct | |
NONCE = struct.pack("III", 0x92930f5e, 0x924f6584, 0xfbad3bbf) | |
KEY = struct.pack("II", 0x582659b6, 0xbd829c9c) | |
if __name__ == "__main__": | |
desc = """TFT header2 decoder | |
Developped by Clark Scheff, licensed under GPLv3""" |
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
init extras.prtouch_v2_wrapper | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_SELF_CHECK_PRTOUCH | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_TRIG_TEST | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_ACCURATE_HOME_Z | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_SAFE_MOVE_Z | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_PRTOUCH_READY | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_START_STEP_PRTOUCH | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_CHECK_BED_MESH | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_NOZZLE_CLEAR | |
extras.prtouch_v2_wrapper.PRTouchEndstopWrapper.cmd_DEAL_AVGS |
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
[gcode_macro PRINT_START] | |
variable_parameter_EXTRUDER_TEMP: 200 | |
variable_parameter_BED_TEMP: 60 | |
gcode: | |
G28 ; home all axes | |
BED_MESH_CLEAR | |
PRTOUCH_PROBE_ZOFFSET APPLY_Z_ADJUST=1 CLEAR_NOZZLE=1 | |
M106 S255 | |
M104 S{params.EXTRUDER_TEMP} ; set extruder temp | |
M190 S{params.BED_TEMP} ; set bed temp and wait |
NewerOlder