This file contains hidden or 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 re | |
| tpp = """ | |
| ┌────┐ | |
| ╭───┤ ├───╮ | |
| │ │ │ │ | |
| [MO] [23] │ ⌾ └────┘ ⌾ │ [BAT] | |
| [MI] [19] │ ⌾ ▣ │ ⏚ | |
| [SCK] [18] │ ⌾ ⌾ │ [5V] | |
| [SS] [ 5] │ ⌾ ⌾ │ [3V3] | |
| [SCL] [22] │ ⌾ ⌾ │ [ 4] [TCH0] [ADC2-0] [RTC10] |
This file contains hidden or 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
| # Example of using uasyncio to run a web server. | |
| # The server does nothing but echo back what was sent to it. | |
| # But the point here is to demonstrate the use of uasyncio, callbacks, | |
| # and the mixing of async and regular (synchronous) functions. | |
| import uasyncio | |
| # This is a synchronous function that gets called from inside the async function. | |
| def create_http_response(body): | |
| res_lines = [] |
This file contains hidden or 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
| # µPing (MicroPing) for MicroPython | |
| # copyright (c) 2018 Shawwwn <shawwwn1@gmail.com> | |
| # License: MIT | |
| # Internet Checksum Algorithm | |
| # Author: Olav Morken | |
| # https://github.com/olavmrk/python-ping/blob/master/ping.py | |
| # @data: bytes | |
| def checksum(data): | |
| if len(data) & 0x1: # Odd number of bytes |
This file contains hidden or 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
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |