This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 ** |