Skip to content

Instantly share code, notes, and snippets.

View godot11's full-sized avatar

godot11

  • ELI-ALPS
  • Szeged, Hungary
View GitHub Profile
@godot11
godot11 / Nokia_LCD_GUI
Last active September 27, 2018 16:27
A basic GUI for the popular Nokia 5110 LCD display in Python. Needs the Adafruit libary for it to work.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# untitled.py
#
# ############################## NOTE #############################
# Though the code below does work, be warned.
# At the time I wrote this code, I was pretty new to Python (and programming
# as such), and I only put it up there for a Stackexchange Code Review question:
# https://codereview.stackexchange.com/questions/132682/pillow-based-basic-gui-library-for-an-lcd
# IMPORTANT!
#
# THIS CODE IS UNFINISHED AND SOME FUNCTIONS (I.E. fit_to_screen()) ARE BROKEN!
# I made this code for myself, not for others, never meant to be released, just shared it related to another problem.
# Of course I do not ban you from it's usage, but I warned you.
#
# Distributed (or not) under the Creative Commons 2.0 license... nah, nobody cares.
#
# :author: Nagy Gergely
#!/usr/bin/env python
# movement_equation_2.0.py
#
# Copyright 2016 Nagy Gergely
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.