Skip to content

Instantly share code, notes, and snippets.

View JeremySCook's full-sized avatar
🏠
Working from home

Jeremy Cook JeremySCook

🏠
Working from home
View GitHub Profile
@JeremySCook
JeremySCook / infrared-with-light.ino
Created May 12, 2020 19:13
infrared with light
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
* modified for light indicator JSCook 5/12/2020
*/
#include <IRremote.h>
@JeremySCook
JeremySCook / infrared-with-light-case.ino
Last active May 12, 2020 20:47
pick out different remotes example
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
* modified for light indicator and response to different buttons JSCook 5/12/2020
*/
#include <IRremote.h>
@JeremySCook
JeremySCook / simple-eink.py
Created June 23, 2020 18:34
Simplified image display routine for Waveshare 2.7 inch 3-color eInk display
##
# @filename : main.cpp
# @brief : 2.9inch e-paper display (B) demo
# @author : Yehui from Waveshare
#
# Copyright (C) Waveshare July 31 2017
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documnetation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
@JeremySCook
JeremySCook / simple-1306text-2.ino
Last active July 8, 2021 18:37
simple-1306text-2.ino
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
@JeremySCook
JeremySCook / CapacitiveSensorSketch-JC.ino
Created August 19, 2022 19:36
Arduino capacitive sensor modified to blink builtin LED
#include <CapacitiveSensor.h>
/*
* CapitiveSense Library Demo Sketch
* Paul Badger 2008
* Uses a high value resistor e.g. 10M between send pin and receive pin
* Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
* Receive pin is the sensor pin - try different amounts of foil/metal on this pin
*/
@JeremySCook
JeremySCook / CapacitiveSensorSketch-JC-85.ino
Created August 22, 2022 18:14
Arduino capacitive sensor modified to blink LED with ATtiny
#include <CapacitiveSensor.h>
/*
* CapitiveSense Library Demo Sketch
* Paul Badger 2008
* Uses a high value resistor e.g. 10M between send pin and receive pin
* Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
* Receive pin is the sensor pin - try different amounts of foil/metal on this pin
*/
#original code via: Neradoc https://github.com/Neradoc
import os
import socketpool
import wifi
import board
from digitalio import DigitalInOut, Direction, Pull
from adafruit_httpserver.server import HTTPServer
from adafruit_httpserver.response import HTTPResponse