Skip to content

Instantly share code, notes, and snippets.

View renoeno's full-sized avatar

Reno Almeida renoeno

View GitHub Profile
import processing.serial.*;
int facesNum = 0;
PFont f;
float liters = 0;
float facesTimer;
int lastFaces;
Serial myPort; // Create object from Serial class
int people;
int state;
#define trigPin 13
#define echoPin 12
#define trigPin2 8
#define echoPin2 7
int timer = 0;
int timer2 = 0;
// API to acess weather information
var apikey = "28167fb511851659e54ae51574586b15";
// defining current city and below data, sunrise time, sunset time, current time and quantity of clouds,
//information that is gonna be retrieved using Open Weather Map API.
var currentCity = "Toronto";
var data;
var sunrise;
var sunset;
var currentTime;
/*
* Do Park
* Reno Almeida
OCAD University
Created on March 30, 2016
*/
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "the 4th sensor changes the value of delay and feedback.",
"linecount" : 2,
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 415.5, 793.833435, 286.916748, 42.0 ],
"fontname" : "Avenir Next Medium Italic",
/*
Zen
* Do Park
* Reno Almeida
OCAD University
Created on March 1st, 2016
/*
Zen
* Do Park
* Reno Almeida
OCAD University
Created on March 1st, 2016
/*
By Reno Almeida. Based on the following sketch: http://openprocessing.org/sketch/223991
*/
//variable in which the 2 dimensional noise function is applied
float time = 0;
void setup() {
/*
By Reno Almeida.
*/
//creating an Array of Circles, a class created in this sketch
Circles[] circles;
//blue changes the color of shapes and distance, the value
/*
Sortilege v. 1
Displaying texts in LCD display.
*/
#include <SPI.h>
//Add the SdFat Libraries