Toggle Navigation
Hatchery
Eggs
35C3
howto.txt
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
howto.txt
raw
Content
""" open a serial console, e.g. $ screen /dev/ttyUSB0 115200 press in the console enter and choose "Python shell" kill the terminal (CTRL+A k, y) install ampy $ pip3 install --user adafruit-ampy using ampy to create the directory of the programm $ ampy -p /dev/ttyUSB0 -b 115200 mkdir /lib/35c3 put the programm and the image file to that directory $ ampy -p /dev/ttyUSB0 -b 115200 put __init__.py /lib/35c3/__init__.py $ ampy -p /dev/ttyUSB0 -b 115200 put 35c3.png /lib/35c3/35c3.png use the program after reset the badge as the png file can not be downloaded via the website, here is the image base64 encoded iVBORw0KGgoAAAANSUhEUgAAASgAAACAAQMAAACC8WZtAAAWvXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZpXdmS5lUX/MYoeAvwFhgO7Vs9Aw+99EGRmGakqWxKZyQg+PgNccwwQ7vzjf6/7H75K8dXlYq32Wj1fueceB2+a/3yN 9zP4/H6+r9i+3oXfH3ff1/jIocRr+vza6tfxw/HI+fHr+Pq8hsHx8psb9fP1h/n7P4z6mxGkn8e/H5TC5wH+68ZufN0oxa8n58/v8zMtX3uz305hfZ1/v/7+wsB/px85WaylBsv8zNGb1c77Fn024rY10Lti13Vlft3oD7+771MjY4onheT5 2TTCxPBTS4OfkZ8p6ZyQyuf9+2mfkZKt6Dy/hP4d17/++quRu++hf6X8dyn98e4Pqa7nz5l27w/fp6Q/ZKj+eP2nx0P5edz9NqUvb799cv16F39/PJTv3P7MnPtO37273Xs+sxu5MuX6NanvKb53nDcVrXdV5dv4X3xTsPXd+W60xOJZmyKb fK/QQySNN+Swwwg3nPe6wmKIOZ5ovMa4YgrLcbCRjB7XS3fWd7jRUk+b5Me0KIfE0fhjLOE9tr/HrdB48A7NUT2Bm6lW/qNv9ysn3auGCkGxrOfFinFFdRqjUOZCcD5wGjkI9yuo5QX4+/uPX8prIoPlhbkxweGn7kD6Zwk/iyu9RC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