Skip to content

Instantly share code, notes, and snippets.

@Adirockzz95
Adirockzz95 / frequency_reuse.py
Created Aug 20, 2019
Cellular Frequency reuse visualization in python
View frequency_reuse.py
#!/usr/bin/python
from math import *
try:
from Tkinter import *
except:
from tkinter import *
class Hexagon(object):
@Adirockzz95
Adirockzz95 / manim_svg_example.py
Last active May 16, 2020
manim SVG object animation example
View manim_svg_example.py
#!/usr/bin/env python
#
# Usage: python extract_scene.py -p [filename] [classname]
# eg: python extract_scene.py -p examples.py DrawCircle
#
import math
import os
@Adirockzz95
Adirockzz95 / WirelessPollingTx.cpp
Created Feb 6, 2018
Wireless LED hearts project: Tx polling
View WirelessPollingTx.cpp
#include <avr/interrupt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "FastLED.h"
#define NUM_LEDS 12
@Adirockzz95
Adirockzz95 / WirelessIRQ.cpp
Last active Feb 6, 2018
Wireless LED hearts project: Rx using polling
View WirelessIRQ.cpp
#include <avr/interrupt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "FastLED.h"
@Adirockzz95
Adirockzz95 / WirelessLEDs.cpp
Created Feb 6, 2018
Wireless LED hearts project: receiver using Interrupts
View WirelessLEDs.cpp
#include <avr/interrupt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "FastLED.h"
#include "printf.h"
@Adirockzz95
Adirockzz95 / examples.py
Last active Mar 23, 2021
manim animation examples
View examples.py
#!/usr/bin/env python
#
# Usage: python extract_scene.py -p [filename] [classname]
# eg: python extract_scene.py -p examples.py DrawCircle
#
import math
import numpy as np
@Adirockzz95
Adirockzz95 / SlotMachine.cpp
Created Jul 26, 2017
LED Matrix Slot machine game
View SlotMachine.cpp
/*
* Program name: This program is part of the project Pen Stand: LED Enabled
* Author: Aditya K
*
* Discription: This program imitates Slot Machine game. This game has 3 rounds.
* A 'round' starts when the user removes the pen from pen stand causing an interrupt.
* For each round, the reel is spun 5 times displaying different symbols;
* this is done by generating random indexes and passing it to the default Font table displaying the spinning animation.
* The last index generated (5th spin) is stored in a list.
* After 3 rounds( 3 rounds because we have 3 LED matrix modules),indexes in the list are compared, if same, the user WINS else user LOSES.
@Adirockzz95
Adirockzz95 / DisplayCount.cpp
Created Jul 26, 2017
LED Matrix Count program
View DisplayCount.cpp
/**
* Program name: This program is part of the project Pen Stand: LED Enabled
* Author: Aditya K
* Date: 7/1/2017
* LICENSE: MIT
*
* Discription: This program counts how many times a Pen is removed from the
the stand and prints it on LED Matrix display.
*
* Copyright (c) 2017 Aditya K.
@Adirockzz95
Adirockzz95 / NeopixelRainbow.cpp
Created Jul 26, 2017
Neopixel rainbow effect
View NeopixelRainbow.cpp
/**
* Program name: This program is part of the project Pen Stand: LED Enabled
* Author: Aditya K
* Date: 7/1/2017
* LICENSE: MIT
*
* Discription: This program animates different color patterns every time user removes pen from stand.
*
*
* Copyright (c) 2017 Aditya K.
View NeopixelEase.cpp
/**
* Program name: This program is part of the project Pen Stand: LED Enabled
* Author: Aditya K
* Date: 7/1/2017
* LICENSE: MIT
*
* Discription: This program animates easing effect every time user removes pen from stand.
*
*
* Copyright (c) 2017 Aditya K.