dotPack: you want to try some Snow Crash

you want to try some Snow Crash? -《Snow Crash》

在不懂环境里构建雪崩

Scratch

Python

模拟器

https://github.com/longan-link/dotpack_pyclient

pip install dotpack

在jupyterlab

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# todo animation
import time
import random
from dotpack import DotPack


pack = DotPack()

def snow_crash():
    '''
    you want to try some Snow Crash?
    
    generate a frame
    '''
    for x in range(16):
        for y in range(16):
            if random.randint(0,1) == 1:
                pack.set_pixel(x,y, 'white')
            else:
                pack.set_pixel(x,y, 'black')

while True:
    time.sleep(0.2)
    snow_crash()

MicroPython

thonny 配置解释器

https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/

https://learn.adafruit.com/easy-neopixel-graphics-with-the-circuitpython-pixel-framebuf-library/import-and-setup

https://github.com/micropython-Chinese-Community/mpy-lib/tree/master/neopixel/neo_16x16 应该有16 16 的字库

1
# 直接控制 neopiexl 256 颗

Microblocks

https://microblocksfun.cn/run/microblocks.html

Snow Crash

lisp

ulisp esp32 neopixel

Dynaverse

模拟器

smalltalk

通过 python

或者 mqtt