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
| # main.py | |
| import network | |
| import urequests | |
| import time | |
| import ssd1306 | |
| import gc | |
| from machine import Pin, I2C | |
| # 1. OLED Display Initialization | |
| OLED_SDA = 5 |
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
| from machine import Pin, I2C | |
| import ssd1306 | |
| import time | |
| OLED_SDA = 5 | |
| OLED_SCL = 6 | |
| OLED_WIDTH = 128 | |
| OLED_HEIGHT = 64 | |
| ICON_SIZE = 48 | |
| BYTES_PER_FRAME = 288 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/python3 | |
| # -*- coding: utf-8 -*- | |
| from PyQt5.QtCore import Qt | |
| from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter | |
| from PyQt5.QtPrintSupport import QPrintDialog, QPrinter | |
| from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \ | |
| qApp, QFileDialog, QWidget, QHBoxLayout |
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
| api_key_ = 'type_api_key' | |
| api_key_secret_ = 'type_api_key_secret' | |
| token_ = 'type_token' | |
| token_secret_ = 'type_token_secret' | |
| # set tweepy(twitter api) | |
| auth = tweepy.OAuthHandler(api_key_, api_key_secret_) | |
| auth.set_access_token(token_, token_secret_) | |
| api = tweepy.API(auth) |