Skip to content

Instantly share code, notes, and snippets.

@SimedruF
SimedruF / ESP32_C6_ST7789_SolidStateRelay.ino
Created March 22, 2025 13:14
ESP32 C6 connected to ST7789 and a Solid state relay
#include <Arduino.h>
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <SPI.h>
#define RELAY1_PIN 20 // Pin relay 1
#define RELAY2_PIN 21 // Pin relay 2
#define BUTTON_PIN 9 // Buton de control manual
#define LED_PIN LED_BUILTIN
#define BUTTON_PIN 9 // ESP32-C6/H2 Boot button
@SimedruF
SimedruF / ESP32_C3_supermini_VL6180.ino
Created January 18, 2025 10:51
ESP32 C3 supermini connected to VL6180
#include <Wire.h>
#include <Adafruit_VL6180X.h>
// Object for the sensor
Adafruit_VL6180X vl6180;
// Pin configuration
#define SDA_PIN 8 // Pin for SDA
#define SCL_PIN 9 // Pin for SCL
#define SHDN_PIN 10 // Pin for SHDN
@SimedruF
SimedruF / ESP32_AudioKit_2.2_AC101.ino
Created January 11, 2025 16:23
ESP32_AudioKit_2.2_AC101
/**
* @file player-sd-audiokit.ino
* @brief see https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-audiokit/player-sdfat-audiokit/README.md
* Make sure that the pins are set to off, on, on, off, off
* @author Phil Schatzmann
* Adapted by Florin Simedru - https://blog.automatic-house.ro
* @copyright GPLv3
*/
@SimedruF
SimedruF / ESP32_hlkld2410b.ino
Created November 17, 2024 08:07
ESP32_hlkld2410b
/*
Florin Simedru
Complete project details at https://blog.automatic-house.ro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
@SimedruF
SimedruF / ESP32_LilyGo_T5_weather.ino
Last active March 12, 2024 16:10
ESP32_LilyGo_T5_weather.ino
// According to the board, cancel the corresponding macro definition
#define LILYGO_T5_V213
// #define LILYGO_T5_V22
// #define LILYGO_T5_V24
// #define LILYGO_T5_V28
// #define LILYGO_T5_V102
// #define LILYGO_T5_V266
// #define LILYGO_EPD_DISPLAY_102
// #define LILYGO_EPD_DISPLAY_154
@SimedruF
SimedruF / ESP32_LCD20x4_with_inductive_sensor.ino
Last active March 4, 2024 05:54
ESP32_LCD20x4_with_inductive_sensor.ino
/*
Florin Simedru
Project details at https://blog.automatic-house.ro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
@SimedruF
SimedruF / ESP32_C6_LCD16x2_test.ino
Last active February 9, 2024 18:59
ESP32-C6 with LCD16x2 test
/*
Florin Simedru
Project details at https://blog.automatic-house.ro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
@SimedruF
SimedruF / ESP32_Stepper_control.ino
Last active January 17, 2024 18:10
ESP32_Stepper_control.ino
/*
Florin Simedru
Complete project details at https://blog.automatic-house.ro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/
@SimedruF
SimedruF / ESP32_SPI_slave_to_RPi4.ino
Created November 26, 2023 11:55
ESP32 SPI data send to RaspberryPi4
/*; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
@SimedruF
SimedruF / RPI4_SPI_app.cpp
Last active November 26, 2023 11:37
Raspberry Pi 4 SPI data read
/*
Florin Simedru
Complete project details at https://blog.automatic-house.ro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*/