Skip to content

Instantly share code, notes, and snippets.

View markjay4k's full-sized avatar

mark markjay4k

View GitHub Profile
@markjay4k
markjay4k / tc358743-overlay.dts
Created November 9, 2024 18:29 — forked from chronopoulos/tc358743-overlay.dts
tc358743-overlay.dts
/dts-v1/;
/plugin/;
/{
compatible = "rockchip,rockpi","rockchip,rk3399";
fragment@0 {
target = <&i2c4>;
__overlay__ {
@markjay4k
markjay4k / animated3Dplot.py
Last active July 31, 2024 12:27
animated 3D example using PyQtGraph and OpenGL
# -*- coding: utf-8 -*-
"""
Animated 3D sinc function
"""
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph.opengl as gl
import pyqtgraph as pg
import numpy as np
import sys
@markjay4k
markjay4k / drawlines_kmeans.py
Last active July 18, 2022 12:26
a more compact way of drawing 2 lines on the screen (built on Sentdex's GTA 5 series)
import cv2
from directkeys import PressKey, ReleaseKey
from grabscreen import grab_screen
import numpy as np
import pyautogui
from sklearn.cluster import KMeans
import threading
import time
uhd_x = 1520