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 / PCA9685.py
Created May 5, 2024 01:50
PCA9685 Driver
#!/usr/bin/python
import time
import math
import smbus
# ============================================================================
# PCA9685 16-Channel PWM Servo Driver
# ============================================================================
#!/bin/bash
# Add the Google Coral Edge TPU repository to the system's source list
# This repository contains packages specifically for the Coral Edge TPU
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
# Download and add the Google GPG key to the system
# This key is used to ensure the integrity and authenticity of the packages
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
@Grippy98
Grippy98 / connectPlayWifi.sh
Last active October 25, 2023 16:38
Beagle Play Connect Wifi
#ONLY RUN ONCE
#RUN WITH SUDO
SSID=YOUR_NETWORK_NAME
PASS=YOUR_PASSWORD
wpa_cli add_network
sudo wpa_cli set_network 1 ssid '"$SSID"'
wpa_cli set_network 1 psk '"$PASS"'
@Grippy98
Grippy98 / cc1352-bsl.py
Created April 22, 2023 01:48
BeagleConnectFreedom Flasher Script
#!/usr/bin/env python3
# Copyright (c) 2014, Jelmer Tiete <jelmer@tiete.be>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@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
@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
/***************************************************
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 / 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
/*
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 / 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>