Skip to content

Instantly share code, notes, and snippets.

@invisiblek
invisiblek / README.md
Last active February 6, 2025 21:11
LVGL Micropython on the Waveshare ESP32-C6-LCD-1.47

LVGL Micropython on the Waveshare ESP32-C6-LCD-1.47

This is some notes/scripts/etc that I've put together with the hopes of saving someone else a bunch of time if they ever want to get this thing running. I'm sure there's a better way to do this with custom board files and stuff but for the time being, this will at least serve as a starting point.

With the esp32c6 only somewhat recently getting official micropython support and the forked lv_micropython seemingly not rebasing anytime soon, kdschlosser has created a spinoff project to get things working with mainline micropython. It works great for this!

Helpful Links

  • Waveshare Wiki for ESP32-C6-LCD-1.74 - a useful reference. I was able to utilize the demos and documentation to determine which pins to fiddle with to get the screen working
  • [kdschlo
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.1.74 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24893+1-b34e6de7da) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP PREEMPT Fri Jan 26 00:27:49 2024
[ 0.000000] Machine model: FriendlyElec NanoPi R2S Plus
[ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff130000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000003fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
#!/usr/bin/env python3
import json
import os
import smtplib
import subprocess
import sys
import time
import xmpp
#!/usr/bin/python3
import json
import os
import requests
import sys
import yfinance
s = sys.argv[1]
threshold = float(sys.argv[2])
#!/usr/bin/python3
import json
import os
import requests
import sys
import yfinance
s = sys.argv[1]
threshold = float(sys.argv[2])
@invisiblek
invisiblek / NOK
Last active April 28, 2021 00:59
20180801 - 9257681 vol - 2144410 shorted - 23.1636 % - xxxxxxxxxxxxxxxxxxxxxxx
20180802 - 6994840 vol - 4015548 shorted - 57.4073 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180803 - 2573313 vol - 1650000 shorted - 64.1197 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180806 - 3873116 vol - 2662773 shorted - 68.7501 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180807 - 4920197 vol - 2988243 shorted - 60.7342 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180808 - 2926780 vol - 1571509 shorted - 53.6941 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180809 - 2791380 vol - 1954642 shorted - 70.0242 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180810 - 4235145 vol - 2780932 shorted - 65.6632 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180813 - 2083391 vol - 1281780 shorted - 61.5237 % - xxxxxxx
@invisiblek
invisiblek / AMC
Last active April 28, 2021 00:59
20180801 - 1773041 vol - 1157945 shorted - 65.3084 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180802 - 1183567 vol - 779912 shorted - 65.8950 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180803 - 1200516 vol - 617646 shorted - 51.4484 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180806 - 732065 vol - 534456 shorted - 73.0066 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180807 - 810285 vol - 567587 shorted - 70.0478 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180808 - 966876 vol - 453079 shorted - 46.8601 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180809 - 1663298 vol - 669710 shorted - 40.2640 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180810 - 780358 vol - 400247 shorted - 51.2902 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180813 - 579643 vol - 216156 shorted - 37.2912 % - xxxxxx
@invisiblek
invisiblek / GME
Last active April 28, 2021 00:59
20180801 - 467132 vol - 237675 shorted - 50.8796 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180802 - 402459 vol - 241347 shorted - 59.9681 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180803 - 1040830 vol - 725987 shorted - 69.7508 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180806 - 776460 vol - 508260 shorted - 65.4586 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180807 - 601481 vol - 285931 shorted - 47.5378 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180808 - 770788 vol - 530675 shorted - 68.8484 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180809 - 960008 vol - 613750 shorted - 63.9318 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180810 - 712716 vol - 459583 shorted - 64.4833 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180813 - 622044 vol - 370474 shor
compiled Sonoff-Tasmota from https://github.com/arendst/Sonoff-Tasmota.git (read directions there) and save the .bin somewhere easy to get to
rip the chip off your arduino, you're going to use that bish as an ftdi adapter
wire it up like this:
arduino sonoff pins
3.3v pin 1
RX pin 2
TX pin 3
This file has been truncated, but you can view the full file.
--------- beginning of main
01-01 00:04:07.969 219 219 W auditd : type=2000 audit(0.0:1): initialized
01-01 00:04:09.550 219 219 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
01-01 00:04:09.550 219 219 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
01-01 00:04:11.083 1 1 W init : type=1400 audit(0.0:4): avc: denied { write } for uid=0 name="tracing_on" dev="debugfs" ino=3401 scontext=u:r:init:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=0
01-01 00:04:11.365 228 228 I : debuggerd: starting
--------- beginning of system
01-01 00:04:11.406 229 229 I vold : Vold 3.0 (the awakening) firing up
01-01 00:04:11.406 229 229 V vold : Detected support for: exfat ext4 f2fs ntfs vfat