Skip to content

Instantly share code, notes, and snippets.

Shawwwn shawwwn

Block or report user

Report or block shawwwn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shawwwn
shawwwn / uping.py
Last active Aug 31, 2019
µPing: Ping library for MicroPython
View uping.py
# µ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
You can’t perform that action at this time.