Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set defaults for easy project start

* Lower default resolution to work over low-bandwidth X11 connections
* Set LED defaults for Black
  • Loading branch information...
commit 7131053b32c1c7287dec1d64a364752e09c7320c 1 parent 1cf1a46
@jadonk authored
Showing with 4 additions and 2 deletions.
  1. +2 −0  stache.cpp
  2. +2 −2 tweetstache.js
View
2  stache.cpp
@@ -106,6 +106,8 @@ int main(int argc, const char** argv) {
capture = cvCaptureFromCAM(numCamera);
//if(camWidth) cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, camWidth);
//if(camHeight) cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT, camHeight);
+ cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 160);
+ cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT, 120);
//if(camFPS) cvSetCaptureProperty(capture, CV_CAP_PROP_FPS, camFPS);
if(capture) {
inputSetup(1);
View
4 tweetstache.js
@@ -12,8 +12,8 @@ try {
config = require('./config');
} catch(ex) {
winston.info("Not tweeting, no keys found: " + ex);
- config.trigger = "/sys/class/leds/lcd3\:\:usr0/trigger";
- config.brightness = "/sys/class/leds/lcd3\:\:usr0/brightness";
+ config.trigger = "/sys/class/leds/lcd3\:green\:usr0/trigger";
+ config.brightness = "/sys/class/leds/lcd3\:green\:usr0/brightness";
config.twitterKey = false;
config.message = "New #BeagleBone BeagleStache image captured! @BeagleBoardOrg";
}
Please sign in to comment.
Something went wrong with that request. Please try again.