Skip to content

Instantly share code, notes, and snippets.

View Staars's full-sized avatar

Christian Baars Staars

View GitHub Profile
@Staars
Staars / xdrv_81_esp32_webcam_task_motion.ino
Created November 16, 2025 20:07
Just fix compile, no idea if this works
/*
xdrv_99_esp32_webcamberry.ino - ESP32 webcam support for Tasmota
Copyright (C) 2021 Gerhard Mutz and Theo Arends
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@Staars
Staars / guition_es8311.be
Created October 28, 2025 13:10
Audio codec driver for GUITION JC1060P470
# ES8311 Audio Codec Driver for Berry
# HW: GUITION JC1060P470, may work with the ESP32P4-EV too
# pa_power pin GPIO 20
class ES8311
var i2c
def init()
import gpio
@Staars
Staars / DMA_test.txt
Created October 27, 2025 17:53
save for later
#ifndef _UDISPLAY_SPI_CONTROLLER_H_
#define _UDISPLAY_SPI_CONTROLLER_H_
#include <Arduino.h>
#include <SPI.h>
#ifdef ESP32
#include "soc/spi_reg.h"
#include "soc/spi_struct.h"
#include "esp32-hal-spi.h"
@Staars
Staars / lvgl_bench.be
Last active October 25, 2025 14:54
gather some ideas
class LVGLBenchmark
var scr, hres, vres
var test_running, current_test, frame_count, start_time, test_duration
var status_label, test_objects, results, anim_counter, anim_loop
var font_small, font_normal, font_large
var header_height, result_line_height
var is_small_screen, is_large_screen, scale_factor
def init()
lv.start()
@Staars
Staars / radio_lvgl.be
Created October 23, 2025 05:09
just a mockup
#- Web Radio Player UI for Tasmota LVGL -#
#- Beautiful interface for streaming internet radio -#
class WebRadioPlayer
var scr
var hres
var vres
var stations
var current_station_idx
var volume
#- Dashboard for Tasmota -#
#- Beautiful tile-based smart home control -#
class HomeDashboard
var scr
var hres
var vres
var tiles
var devices
var header_height
@Staars
Staars / 2dots.be
Last active October 30, 2025 10:10
little game
# Two Dots for LVGL
class TwoDotsGame
var scr, layer
var grid, grid_size
var dot_objects
var score, moves, target_score, level
var score_label, moves_label, target_label
var hres, vres, dot_size, grid_start_x, grid_start_y, padding
var current_path, path_lines
@Staars
Staars / 2048.be
Last active October 30, 2025 08:55
little game
#- 2048 Game for Tasmota LVGL -#
#- Swipe to play -#
class Game2048
var scr
var grid
var tiles
var score
var best_score
var score_label
@Staars
Staars / weather_dash2.be
Created October 7, 2025 19:55
Apple Style Weather App
class APPLE_WEATHER_APP : Driver
var data_buffers
var update_index
var pending_widget
var current_values
var last_update
var hourly_forecast
var daily_forecast
static BUFFER_SIZE = 24
@Staars
Staars / weather_dash.be
Created October 7, 2025 19:55
variant 1
class WEATHER_DASHBOARD : Driver
var weather_data
var forecast_data
var widget_rotation
var last_update
var widget_content # Global class var to hold widget string
def init()
self.weather_data = nil
self.forecast_data = nil