Skip to content

Instantly share code, notes, and snippets.

View georgelviv's full-sized avatar
🐳
Sink

Gregory Sk georgelviv

🐳
Sink
  • UA, Lviv
View GitHub Profile
@georgelviv
georgelviv / st7735.py
Last active July 17, 2025 12:32
Python lib for ST7735 display 128x160 driven by SPI for RPI5
# Based on https://github.com/pimoroni/st7735-python/blob/main/st7735/__init__.py
import numbers
import time
from gpiozero import OutputDevice
import numpy as np
import spidev
ST7735_NOP = 0x00
ST7735_SWRESET = 0x01
@georgelviv
georgelviv / sx1262.py
Created June 9, 2024 11:03
Python lib for Lora module, based on lora HAT, adapted for RPI5
from serial import Serial
from glob import glob
from gpiozero import DigitalOutputDevice
import time
import json
data_rate_bits = {
'300': 0,
'1200': 1,
'2400': 2,
@georgelviv
georgelviv / Dockerfile for Angular app
Last active February 24, 2024 16:51
Dockerfile for Angular app with dynamic env variables
FROM node:20-slim As builder
RUN apt-get update
RUN apt-get install -y python3
RUN mkdir /frontend
WORKDIR /frontend
RUN npm install -g @angular/cli@16
COPY package.json package-lock.json ./