Skip to content

Instantly share code, notes, and snippets.

View todocono's full-sized avatar
🤖
Flow?

Rodolfo todocono

🤖
Flow?
View GitHub Profile
//connect Ultrasound sensor HC-SR04 to GND and +5V, Echo and Trigger to the following pins:
#define trigPin 2
#define echoPin 3
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); // Sets the baud rate to 9600
SensorSetup();
}
/*
AnalogReadSerial with analogWrite
Reads an analog input on pin 0, prints the result to the Serial Monitor.
And then it turns the LED accordingly.
This example code is in the public domain.
*/
// the setup routine runs once when you press reset:
/*
MotorControl v1.0
This code example programs a sequence of movements into Arduino Romeo v2
This example code is in the public domain.
*/
int E1 = 5; //M1 Speed Control
'''
mouseddddddddd
v
date
This project ....
Team members
from microbit import *
import neopixel
from random import randint
import time
#Zoom in & out
np = neopixel.NeoPixel(pin0, 16)
pixel_id = 0
locked = False
//NYU Shanghai 2021 Spring
//Coded by Eric Parren for Interaction Lab IMA
float x;
float y;
float diameter = 100;
float speed = 2;
float xDirection = 1;
float yDirection = 1;
void setup() {
int[] h, s, x, y, spdX, spdY;
// String[] ixlab = new String[2]; one possible syntax
String[] ixlab = {"Celia", "Derek", "John", "Jordan", "Netania", "Saffronia", "Elena", "Millie", "Kaitlyn", "Novia", "Xiaorong", "Helen", "Lisa", "Rudi"};
void setup () {
size(800, 800);
rectMode(CENTER);
colorMode(HSB, 360, 100, 100);
h = new int[ixlab.length];
float x1, x2, x3, x4;
float y1, y2, y3, y4;
color c1, c2, c3, c4;
float angle;
void setup() {
size(600, 800);
//x = random(width);
//y = random(height);
/* Exoskeleton glove - UWC Hackathon
with two servos connected to pins 8 & 9
and two buttons on pins 2 & 3
Modified by RC - 2020/03/12
Created by Pranav - 2020/03/05
*/
#include <Servo.h>
/*
Audio signal test for "traffic light" team
Location: UWC
Date: Jan 9 - Nov - 2020
*/
int pushButtonGreen = 7; //green button
int pushButtonYellow = 6; //yellow