Library of useful C++ snippets and reusable classes I've created as I build out Arduino Uno and ESP32 projects.

Overview

Arduino Snippets

Library of useful C++ snippets and reusable classes I've created as I build out Arduino Uno and ESP32 projects.

Button

A simple button utility that debounces and is meant to be triggered on LOW from a pin set to INPUT_PULLUP.

// some data to send to action on press
int bData = ... 
 
void handleButton(void *data) {
  // Handle the button press
}
 
Button b(PIN, &bData, handleButton)
 
void loop() {
  b->test();
}

Seven Segment

A utility for 4-digit seven segment displays using the TM1637 Drive Chip like these

include "SevenSegment.h"

#define CLK 2
#define DIO 3

SevenSegment segment(CLK, DIO);

void onHalfSecond() {
  segment.clockPoint();
  
  // Set the hours and minutes from a clock source
  segment.setHours(clock.getHours());
  segment.setMinutes(clock.getMinutes());
  segment.update();
}

void setup() {
  segment.init();
  
  // Some kind of trigger on ever half-second
  // to flash the segment clock point
  // Timer1.initialize(500000); //timing for 500ms
  // Timer1.attachInterrupt(onHalfSecond);
}

void loop() {
  segment.loop();
}
Owner
Max Lynch
Co-founder @ Ionic
Max Lynch
A Fingerprint Door Lock using a microprocessor named Arduino UNO and programming through Arduino IDE

INSTRUCTIONS - The codes for the Fingerprint Door lock are present in the Code For Fingerprint Door Lock folder The instructions of how to operate the

Akhil Sahukaru 15 Mar 3, 2022
a pc heat verifier using arduino uno and oled screen(ssd1306)

pc-heat-check a pc heat verifier using arduino uno and oled screen(ssd1306) to this application works needs this other application running: https://gi

Helder Lourenço de Abreu Marques 1 Oct 30, 2021
USB serial TTY for the Arduino Uno with ILI9341 LCD screen shield

ILI9341TTY USB serial TTY for the Arduino Uno with ILI9341 LCD screen shield [video] Semigraphics, ANSI, unicode, and an Arduino LCD-screen terminal I

M Rule 71 Mar 12, 2022
Remote Arduino Uno-based TFT graphical display for VSR Mini Mega Alternator Regulator

VSMMAR_Remote_Display Remote Arduino Uno-based TFT graphical display for VSR Mini Mega Alternator Regulator This project is an optional accessory for

null 1 Nov 6, 2021
Библиотека программного USB клавиатуры и мыши для Arduino Nano/UNO/Mega и прочих

EasyHID Библиотека программного USB клавиатуры и мыши для Arduino Nano/UNO/Mega и прочих Программный USB Работает на любой AVR Arduino 16 МГц Поддержк

Alex 41 Jun 22, 2022
Play Nintendo Switch using an original N64 controller via an Arduino Uno!

N64 -> Arduino Uno -> Nintendo Switch Description By connecting an original N64 controller to an Arduino UNO R3 running this code, and plugging the US

null 17 Mar 15, 2022
This Repository is created to help fellow coders learn open source contributions. This Repository is created for Hacktoberfest 2021

Hacktoberfest 2021 Follow the README below to get started! This Repository is created to help fellow coders learn open source contributions This Repos

Somesh Debnath 7 Apr 26, 2022
ESP32-Skid-Steer - Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on the model.

ESP32-Skid-Steer Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on

null 5 Feb 4, 2022
Internet of things created using arduino IoT cloud, consisting of esp and arduino boards

Internet of things created using arduino IoT cloud, consisting of esp and arduino boards. Goal of the project is to create a 3D printed RFID protected (with PIN) lock, including surveillance.

null 2 May 11, 2022
Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

Paulo Rafael Ramalho 0 Apr 5, 2022
null 235 Jun 22, 2022
A collection of code snippets and examples showing syntax and capabilities of VEX language inside SideFX Houdini

VEX tutorial A collection of code snippets and examples showing syntax and capabilities of VEX language inside SideFX Houdini by Juraj Tomori How to u

Juraj Tomori 581 Jun 24, 2022
Write snippets of C code in your txt files for notes and skip the hassle of compiling and running

Write snippets of C code in your txt files for notes and skip the hassle of compiling and running. Greatly helps organization and note-taking to make sure you do not miss anything.

Seamus Walden 4 Jun 13, 2022
Not related to software bugs and exploits; this repo contains snippets of code that demonstrate some interesting functionality or a handy trick.

Proof-of-Concept Not related to software bugs and exploits; this repo contains snippets of code that demonstrate some interesting functionality or a h

Alisa Esage 31 May 29, 2022
CONTEST 7 : 🥳 #snipathon-21🥳 contribute your favour code snippets in different languages

Your Favorite Code Snippet Collection of code snippets that can be anything from hello world to Complex Algo & DS (In any programming language). How t

CodeMacrocosm 8 Oct 31, 2021
Collection of miscellaneous portable C snippets.

Portable Snippets This is a collection of public domain (CC0) code snippets written in C for performing various common tasks which are typically OS, a

Evan Nemerson 505 Jun 25, 2022
Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.

Sharpmake Introduction Sharpmake is a generator for Visual Studio projects and solutions. It is similar to CMake and Premake, but it is designed for s

Ubisoft 743 Jun 10, 2022
`lv_lib_100ask` is a reference for various out of the box schemes based on lvgl library or an enhanced interface for various components of lvgl library.

Introduction lv_lib_100ask is a reference for various out of the box schemes based on lvgl library or an enhanced interface for various components of

100askTeam 14 Jun 23, 2022
Itpp - IT++ library mirror/fork. C++ library of mathematical, signal processing and communication classes and functions.

Introduction ************ IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simula

null 18 Apr 9, 2022