Skip to content

Instantly share code, notes, and snippets.

View jptrsn's full-sized avatar

Edu_Coder jptrsn

View GitHub Profile
@jptrsn
jptrsn / dupli_jeu.ino
Created February 23, 2020 19:35
Code for Arduino Nano based toy duplicator prop
#include <FastLED.h>
#include <Servo.h>
// Pin assignments
#define BUTTON_PIN 2
#define BUTTON_ENABLE 3
#define LED_PIN 4
#define SERVO_PIN 9
#define BELT_PIN 8
@jptrsn
jptrsn / Dog Boot Dryer ESPHome
Last active November 29, 2021 22:39
ESP Home firmware code to power a 3D printed, Home Assistant-connected dog and/or glove dryer.
esphome:
name: boot_dryer
platform: ESP8266
board: d1_mini
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret ssid
password: !secret wifi_password
@jptrsn
jptrsn / docker-compose.yml
Created November 10, 2023 16:21
Piped video on raspberry pi 3
version: "3"
services:
pipedfrontend:
image: 1337kavin/piped-frontend:latest
restart: unless-stopped
depends_on:
- piped
container_name: piped-frontend
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/api.fartyparts.work/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
@jptrsn
jptrsn / sw_button_bt_home.js
Last active January 19, 2024 22:42
espruino swbutton
// Add the following module URL to the "communications" section of your IDE settings
// https://raw.githubusercontent.com/muet/EspruinoDocs/master/modules
const SWBtn = require("SWButton");
const advertisingInterval = 60000;
const eventTimeout = 2500;
let buttonState = "none";
let led = 2;