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
socat $(tty),raw,echo=0,escape=0x1D /dev/ttyUSB0,b115200,raw; stty sane |
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
# | |
# https://gist.github.com/spicycode/1229612 | |
# | |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on |
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
#!/opt/bin/lv_micropython -i | |
import sys | |
sys.path.append('') # See: https://github.com/micropython/micropython/issues/6419 | |
import time | |
import lvgl as lv | |
import display_driver_utils | |
lv.init() |
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 sys | |
# See: https://pymotw.com/2/sys/tracing.html | |
def mp_trace(frame, event, arg): | |
co = frame.f_code | |
func_name = co.co_name | |
func_line_no = frame.f_lineno | |
func_filename = co.co_filename | |
print('[%s] [%s] %s:%s' % (event, func_name, func_filename, func_line_no)) |
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
# Initialize | |
import imp, usys as sys | |
sys.path.append('https://raw.githubusercontent.com/littlevgl/lv_binding_micropython/dev-8.0/lib') | |
import display_driver | |
import lvgl as lv | |
import ustruct as struct |
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
==================================== SECTIONS: 12 ==================================== | |
Symbol Size % | |
====================================================================================== | |
/ 230.1 KiB 78.34 | |
home 230.0 KiB 78.33 | |
amirgon/esp 228.1 KiB 77.68 | |
projects/lv_mpy 206.6 KiB 70.37 | |
ports 121.5 KiB 41.39 | |
esp32 120.8 KiB 41.13 | |
build-GENERIC_SPIRAM 114.1 KiB 38.84 |
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
==================================== SECTIONS: 13 ==================================== | |
Symbol Size % | |
====================================================================================== | |
/ 1.0 MiB 76.63 | |
home 1.0 MiB 76.20 | |
amirgon/esp 957.4 KiB 68.37 | |
projects/lv_mpy 530.1 KiB 37.85 | |
lib 266.4 KiB 19.02 | |
lv_bindings 227.7 KiB 16.26 | |
lvgl/src 225.5 KiB 16.10 |
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
lvgl | |
| list | |
| | remove | |
| | PART | |
| | | ALL | |
| | | MAIN | |
| | add_btn | |
| | add_protect | |
| | add_state | |
| | add_style |
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
from types import ModuleType | |
def inspect(t, name=None, nesting=0): | |
if not (name or hasattr(t, "__name__")): return | |
print("| "*nesting + (name if name else t.__name__)) | |
if isinstance(t, int) or isinstance(t, str): return | |
if t is type or isinstance(lv, ModuleType): | |
for x in dir(t): | |
if not x.startswith("__"): | |
inspect(getattr(t,x), name=x, nesting = nesting + 1) |
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 imp, sys | |
sys.path.append('https://raw.githubusercontent.com/littlevgl/lv_binding_micropython/master/lib') | |
import display_driver | |
import lvgl as lv |
NewerOlder