This file contains hidden or 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
| #include "bluetooth.h" | |
| BluetoothHandler::BluetoothHandler(HardwareSerial *s, int baudRate):input(s), lSpd(0), rSpd(0), svoDeg(0), state(false){ | |
| input->begin(baudRate); | |
| } | |
| BluetoothHandler::BluetoothHandler(HardwareSerial *s){ | |
| BluetoothHandler(s, 9600); | |
| } | |
| void BluetoothHandler::receive(){ |
This file contains hidden or 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
| #include "rgbled.h" | |
| void rgbLed::off(){ | |
| emit(0,0,0); | |
| } | |
| void rgbLed::emit(int r, int g, int b){ | |
| r = safeAnalog(r); | |
| g = safeAnalog(g); | |
| b = safeAnalog(b); | |
| if(common){ | |
| r = 255 - r; |
This file contains hidden or 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 hidden or 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
| curl --data-binary "@$2" -X POST -H "Content-Type: text/plain" http://$1:8787 |
This file contains hidden or 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
| robbyrussell/oh-my-zsh | |
| robbyrussell/oh-my-zsh path:plugins/git | |
| robbyrussell/oh-my-zsh path:plugins/pip | |
| robbyrussell/oh-my-zsh path:plugins/bower | |
| robbyrussell/oh-my-zsh path:plugins/node | |
| robbyrussell/oh-my-zsh path:plugins/xcode | |
| robbyrussell/oh-my-zsh path:plugins/osx | |
| robbyrussell/oh-my-zsh path:plugins/colored-man-pages | |
| robbyrussell/oh-my-zsh path:plugins/copyfile | |
| robbyrussell/oh-my-zsh path:plugins/python |
This file contains hidden or 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
| import cv2 | |
| import numpy as np | |
| import os | |
| vidSrc = 0 | |
| # Capture Video | |
| cap = cv2.VideoCapture(vidSrc) | |
| os.system("./vidSetup.sh "+str(vidSrc)) | |
| # Color filter range | |
| lowG = np.array([40,100,100]) | |
| highG = np.array([75,255,255]) |
NewerOlder