Skip to content

Instantly share code, notes, and snippets.

View ce-dric's full-sized avatar
🎯
Focusing

Changwoo Song ce-dric

🎯
Focusing
View GitHub Profile
@ce-dric
ce-dric / esp32_c3_btc_oled.py
Created June 9, 2026 11:50
MicroPython ESP32-C3 Bitcoin Price Display on SSD1306 OLED
# main.py
import network
import urequests
import time
import ssd1306
import gc
from machine import Pin, I2C
# 1. OLED Display Initialization
OLED_SDA = 5
@ce-dric
ce-dric / codex_oled_anim.py
Created June 8, 2026 13:43
Codex icon animation on ESP32-C3 SSD1306 OLED with MicroPython
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
@ce-dric
ce-dric / read_grayscale_image.ipynb
Created March 4, 2024 04:23
extract line and plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ce-dric
ce-dric / QImageViewSync.py
Created October 7, 2020 03:37 — forked from acbetter/QImageViewSync.py
Two Image Synchronous Scrolling in the window by PyQt5 and Python 3
#!/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
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)