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
| jacobs-air-2:chromebots jacobrosenthal$ npm run serve | |
| > [email protected] serve /Users/jacobrosenthal/Desktop/chromebots | |
| > webpack-dev-server | |
| http://localhost:8080/webpack-dev-server/ | |
| webpack result is served from / | |
| content is served from /Users/jacobrosenthal/Desktop/chromebots | |
| /Users/jacobrosenthal/Desktop/chromebots/node_modules/webpack-dev-server/node_modules/webpack-dev-middleware/middleware.js:85 |
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
| Jacobs-MacBook-Air-2:ChromeIDE jacobrosenthal$ npm run build | |
| > [email protected] build /Users/jacobrosenthal/Desktop/ChromeIDE | |
| > gulp | |
| [00:50:05] Requiring external module babel/register | |
| [00:50:06] Using gulpfile ~/Desktop/ChromeIDE/gulpfile.babel.js | |
| [00:50:06] Starting 'default'... | |
| [00:50:06] Starting 'js'... | |
| Note: The code generator has deoptimised the styling of "/Users/jacobrosenthal/Desktop/bs2-serial/lib/a.out.js" as it exceeds the max of "100KB". |
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
| function convertArrayBufferToString(buf){ | |
| var bufView = new Uint8Array(buf); | |
| var encodedString = String.fromCharCode.apply(null, bufView); | |
| return decodeURIComponent(encodedString); | |
| } | |
| var onReceiveCallback = function(info) { | |
| console.log('received', convertArrayBufferToString(info.data)); | |
| }; |
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 <CombineStreams.h> | |
| #include <TapStream.h> | |
| #include <TCPSerial.h> | |
| #include <SPI.h> | |
| #include <Ethernet.h> | |
| // network configuration. gateway and subnet are optional. | |
| // the media access control (ethernet hardware) address for the shield: | |
| byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; |
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
| /* | |
| * Firmata is a generic protocol for communicating with microcontrollers | |
| * from software on a host computer. It is intended to work with | |
| * any host computer software package. | |
| * | |
| * To download a host software package, please clink on the following link | |
| * to open the download page in your default browser. | |
| * | |
| * http://firmata.org/wiki/Download | |
| */ |
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
| /* | |
| Firmata.cpp - Firmata library | |
| Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 2.1 of the License, or (at your option) any later version. | |
| See file LICENSE.txt for further informations on licensing terms. |
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
| /* Standard Firmata altered for Bean. | |
| * biggest change so far was just adding Bean sleep at the end of loop to | |
| * allow bean to sleep for power saves. Adjust to taste | |
| * | |
| * The big gotcha is that theyve actually moved pins around. Until we find | |
| * a way around this, dont use the pins marked on the Bean, but rather: | |
| * a0 -> a4 | |
| * a1 -> a5 | |
| * d0 -> d6 | |
| * d1 -> d9 |
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
| #define LEFT 0 | |
| #define RIGHT 2 | |
| int leftServoPin = 0; | |
| int rightServoPin = 1; | |
| void setup(){ | |
| pinMode(leftServoPin, OUTPUT); | |
| pinMode(rightServoPin, OUTPUT); |
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
| #define CONTROL 0 | |
| int servoPin = 0; | |
| void setup(){ | |
| pinMode(servoPin, OUTPUT); | |
| } | |
| void loop(){ |
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
| jacob-2:openocd jacobrosenthal$ git reset HEAD --hard | |
| HEAD is now at c0b8e60 command: Fix confusing syntax error message | |
| jacob-2:openocd jacobrosenthal$ git clean -f -d | |
| Removing src/target/adi_v5_swd.c.orig | |
| jacob-2:openocd jacobrosenthal$ git status | |
| On branch master | |
| Your branch is up-to-date with 'origin/master'. | |
| nothing to commit, working directory clean | |
| jacob-2:openocd jacobrosenthal$ patch -p1 < ~/Downloads/2e596cb0.diff |