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
| // SMBCON pinout: | |
| // 1 - CLK | |
| // 2 - x | |
| // 3 - GND | |
| // 4 - DATA | |
| // 5 - +5v | |
| // gcc ssd1306_hello.c -o ssd1306_hello -li2c | |
| // run as root: ./ssd1306_hello |
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
| #!/usr/bin/env python3 | |
| import zipfile, urllib.request, shutil | |
| import os | |
| import sys | |
| import platform | |
| vi = sys.version_info | |
| if platform.system() == 'Darwin': | |
| if vi.major < 3 or (vi.major == 3 and vi.minor < 7): | |
| print("Please run this script with Python 3.7 or newer") |