Skip to content

Instantly share code, notes, and snippets.

View lazychino's full-sized avatar

Pedro A. Melendez lazychino

View GitHub Profile
@lazychino
lazychino / .vimrc
Created January 16, 2017 05:25
my vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
/*
* Run Bot! Run! by Pedro A. Melendez
*
* Test robot motor function and helps for calibration,
* so that our bot run in a straight line
*
*/
const int proximitySensor = A0; // Analog input pin that the potentiometer is attached to
const int ledPin = 13; // integrated LED on the Arduino Leonardo
/*
* Turn Left by Pedro A. Melendez
*
* every time the robot encounters a wall turn left if is to close reverses
*
*
* */
const int proximitySensor = A0; // Analog input pin that the potentiometer is attached to
const int ledPin = 13; // integrated LED on the Arduino Leonardo
/*
MeasureDistance by Pedro A. Melendez
based on Analog input, analog output, serial output by Tom Igoe
Reads Analog input from proximity sensor, flicker the pin 13 LED with period of the sensor value in ms,
and alsa maps the sensor value to the distance and sends the data via serial.
*/
// These constants won't change. They're used to give names
@lazychino
lazychino / evil_mouse.ino
Last active August 29, 2015 13:55
arduino mouse prank
/*
Evil Mouse by Pedro A. Melendez
inspired by Evil mouse prank http://youtu.be/ltK_evtTdyY
Hide an arduino behind some friend computer and watch xD
** this program works with arduino or any device(arduino derivative) that support keyboard and mouse library **