Skip to content

Instantly share code, notes, and snippets.

@julznc
julznc / chess-clock.ino
Last active June 18, 2022 11:37
Arduino code for DIY mini-chess-clock (SAMD21 + OLED) https://projectproto.blogspot.com/2022/06/diy-mini-chess-clock.html
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define MAIN_BTN_PIN (2) // PA14
#define P1_BTN_PIN (3) // PA9
#define P2_BTN_PIN (5) // PA15
#define LED_PIN LED_BUILTIN // (13)
:020000040800F2
:20000000D03600200101000835190008351900083519000835190008351900080000000002
:2000200000000000000000000000000035190008351900080000000035190008312900085C
:200040001B0100081B0100081B0100081B0100081B0100081B0100081B0100081B01000880
:200060001B0100081B0100081B010008150F0008350F0008550F0008810F0008AD0F0008D4
:20008000D90F0008051000081B0100081B0100086D5800081B0100081B0100081B010008D2
:2000A0001B0100081B0100081B0100081B0100081B0100081B0100081B0100081B01000820
:2000C0001B0100081B0100081B0100081B0100081B010008E12B0008F12C00081B0100080F
:2000E0001B0100081B0100081B010008DFF80CD000F03CF800480047715A0008D036002035
:200100000648804706480047FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7B52A00085C
@julznc
julznc / main.c
Created October 4, 2020 06:42
Marius' Lab LEDs - using STM32 Blue Pill - https://youtu.be/rZa0OPlEVOE
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
* All rights reserved.</center></h2>
@julznc
julznc / adth-stb.conf
Created March 16, 2018 14:50
set-top-box remote configuration for LIRC and irplus-remote
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Thu Jan 1 11:36:41 1970
#
# contributed by
#
# brand: adth-stb.conf
@julznc
julznc / ATtiny2313-IR-sender.c
Created May 6, 2017 13:26
ATtiny2313 Infrared Sender (avr-gcc)
/*
* http://projectproto.blogspot.com/2017/05/attiny-ir-remote.html
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/delay.h>
@julznc
julznc / IRremote.ino
Last active May 6, 2017 09:40
ESP8266 IR Remote
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
IRsend irsend( 14 /*GPIO pin*/);
ESP8266WebServer server(80);
const char* ssid = "........";