Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block slzatz

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
Based on Paul Sokolovsky's work on micropython mqtt client
Note MicroPython socket module supports file interface directly (read)
import socket
import ustruct as struct
import time
class MQTTClient:
slzatz /
Created Apr 16, 2016
This is an mqtt subscribe client for micropython
# Copyright (c) 2012-2014 Roger Light <>
# This is a stripped down version of paho.mqtt intended for micropython
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# and Eclipse Distribution License v1.0 which accompany this distribution.
# The Eclipse Public License is available at
# and the Eclipse Distribution License is available at
slzatz /
Last active Jan 2, 2017
I2C driver for micropython esp8266 ssd1306 OLED ( is paired down and works with the file to allowing generating text)
# Originally from
# Contains ASCII 32 (space) through ASCII 90 (Z)
cols = 5
rows = 8
bytes = [
0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x5F, 0x00, 0x00,
0x00, 0x07, 0x00, 0x07, 0x00,
0x14, 0x7F, 0x14, 0x7F, 0x14,
You can’t perform that action at this time.