Skip to content

Instantly share code, notes, and snippets.

View Grippy98's full-sized avatar
:shipit:

Andrei Aldea Grippy98

:shipit:
View GitHub Profile
@Grippy98
Grippy98 / ServoProject.ino
Last active July 3, 2016 13:13
An Arduino sketch to open a door for X seconds at 3 set time a day, 365 days a year.
/*
Door Opener by Andrei Aldea
Created July 3 2016
This sketch can be modified at will, but please credit the original author(s).
Based on example code (Sodaq library and Sweep by Scott Fitzgerald)
*/
//Before running this sketch make sure you run the Time Setting sketch provided with the RTC Library
#include <Wire.h>
//Other one is 13
#define LAMP 15
#define LIGHTS 13
String a;
void setup() {
pinMode(LAMP, OUTPUT); // Initialize the LED_BUILTIN pin as an output
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.10.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@Grippy98
Grippy98 / .config
Created May 25, 2017 17:21
Kernel 14.12 rc1 Minimal Kernel Config V1 for Asus E200ha
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.12.0-rc1 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@Grippy98
Grippy98 / agent.txt
Created July 26, 2018 21:20
Electric IMP Agent Code to Render simple pan-tilt Mechanism
local html = @"<!doctype html>
<html lang=""en"">
<head>
<meta charset=""utf-8"" />
<meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">
<title>Pan/Tilt Control</title>
<link rel=""stylesheet"" href=""https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"" />
<link rel=""stylesheet"" href=""//d2c5utp5fpfikz.cloudfront.net/2_3_1/css/bootstrap.min.css"" >
<link rel=""stylesheet"" href=""//d2c5utp5fpfikz.cloudfront.net/2_3_1/css/bootstrap-responsive.min.css"" >
<script src=""https://code.jquery.com/jquery-1.9.1.js""></script>
/*
Nixie Clock Code by Andrei Aldea
Adapted for use with HV5530 Nixie Driver boards by Johnny Izzard
And the Sodaq_DS3231 library by Sodaq Moja
*/
#include <SPI.h>
#include <Wire.h>
#include "Sodaq_DS3231.h"
@Grippy98
Grippy98 / clock.ino
Last active December 12, 2018 03:33
Updated Nixie Clock Code... Still needs A LOT of cleaning.
/*
Nixie Clock Code by Andrei Aldea
Adapted for use with HV5530 Nixie Driver boards by Johnny Izzard
And the Sodaq_DS3231 library by Sodaq Moja
*/
#include <SPI.h>
#include <Wire.h>
#include "Sodaq_DS3231.h"
char weekDay[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
#define LD 10
/***************************************************
EEV See N' Say++
Andrei Aldea
January 2019
Uses DFPlayer - A Mini MP3 Player For Arduino from <https://www.dfrobot.com/index.php?route=product/product&product_id=1121>
Uses Library by Angelo Qiao for said device.
Made to run on an Arduino Nano/Uno or other compatibles
***************************************************/
@Grippy98
Grippy98 / ArduinoUrDebug
Last active February 25, 2019 18:14
Preliminary Debug Code for Arduino Due based Royal Game of Ur
/*********************************************************
Arduino Due Royal Game of Ur.
This version is meant to interface with LabView (or other serial device)
Code Heavily modified to run with Arduino Due, might still be compatible with
other AVR micros though. Who knows. Too much weirdness going on here.
Command List:
?IDN: - Identify Device
!HCF: - Halt & Catch Fire
@Grippy98
Grippy98 / Low Level AVR Keyfob
Last active February 26, 2019 17:36
Arduino Code for Keyfob Decoder - Using Interrupts and Low Level AVR Bit Shifts
//ECET2700 Paralax Keyfob Decoder - Interrupt Driven
//Meant for Arduino Xplained Mini but portable to any Arduino or derivative
//Andrei Aldea 2/25/2019
#define buttonReadDelay 200 //200 milliseconds we give the fob between when we want to read and when VT interrupt goes high
void setup()
{
DDRC = 0x00; //SET Register C to INPUTS
DDRD = 0xFF; //Outputs, Bottom Two bits are Serial, 3rd bit is Interrupt