Skip to content

Instantly share code, notes, and snippets.

@lyneca
lyneca / instructions.md
Last active September 1, 2019 13:06
Warframe Shawzin build instructions

Shawzin Build Instructions

Electronics

  • 1x Makey Makey. You can get the original product for much cheaper here.
  • 7x Alligator Leads (like these)

Makey Makey Programming

Once you have your Makey Makey, go to my fork of the Makey Makey source and clone it.

@lyneca
lyneca / moons.java
Created March 12, 2019 11:22
Orbit Sketch
// Four variables, each one for the progress of their
// particular planet around their center of orbit
int mercury = 0;
int venus = 0;
int earth = 0;
int moon = 0;
void setup() {
// 400x400 canvas
@lyneca
lyneca / led_toggle.ino
Created September 3, 2018 06:20
LED IMU Toggle
// LED Toggle
// Luke Tuthill for the University of Sydney
#include "CurieIMU.h"
// Green LED on pin 3
#define GREEN 3
void setup() {
// Setup the IMU
@lyneca
lyneca / sound_sensor.ino
Last active August 28, 2018 06:16
LED Sound Sensor (with smoothing, averaging, and calibration)
// LED Pin
int LED_PIN = 3;
// Sound Sensor pin
int SOUND_PIN = A0;
// Number of readings
int NUM_READINGS = 10;
int READING_DELAY = 1;
@lyneca
lyneca / ble_led.ino
Last active August 28, 2018 06:15
Arduino 101 BLE code
#include <CurieBLE.h>
/* IMPORTANT:
* REPLACE "UNIKEY" BELOW WITH YOUR UNIKEY
*/
// The pin our LED is going to be on
int LED_PIN = 3;
// Create a Service
@lyneca
lyneca / dfrobot_sound_led.ino
Last active August 20, 2018 11:54
LED Sound Sensor Example
/*
* Adapted from the [completely broken] DFRobot example sketches
* by Luke Tuthill:
* https://www.dfrobot.com/blog-663.html
*
* This sketch flashes an LED based on the surrounding volume.
*/
// The threshold at which the LED will turn on. Try playing with this,
@lyneca
lyneca / dfrobot_sensor_light.ino
Created August 20, 2018 11:29
Sensor Light Example
/*
* Adapted from the [completely broken] DFRobot example sketches
* by Luke Tuthill:
* https://www.dfrobot.com/blog-661.html
*
* This sketch lights up an LED when the motion detector detects something.
*/
// The Motion Sensor should be on digital pin 2
@lyneca
lyneca / dfrobot_debounce.ino
Last active August 20, 2018 11:52
Debounce Example
/*
* Adapted from the [completely broken] DFRobot example sketches
* by Luke Tuthill:
* https://www.dfrobot.com/blog-662.html
*
*
* This sketch shows how to debounce a button. Sometimes, when you press
* a button, it's not perfect - sometimes it 'bounces' up and down slightly,
* and registers multiple presses.
*
@lyneca
lyneca / fortuna.md
Last active July 8, 2018 03:46
Warframe Fortuna Stuff

Kitguns

Chambers

Chambers seem to determine the base damage type, accuracy, and fire rate.

  • Catchmoon Chamber
  • Chillfinger Chamber: Reach out and Blast someone. Precision with every pull of the trigger.
  • Gaze Chamber
  • Rattleguts Chamber: Let 'er rip, rapid fire.
@lyneca
lyneca / Tree.java
Created August 27, 2017 13:32
Recursive Tree Implementation
public class Tree<E> {
Tree left;
Tree right;
E val;
public Tree(E e) {
this.val = e;
}
public Tree<E> getLeft() {return this.left;}
public Tree<E> getRight() {return this.right;}