Skip to content

Commit

Permalink
processing: made examples use new open/error semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Jul 31, 2013
1 parent c5af2b8 commit 5903377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions processing/Blink1ColorOrgan/Blink1ColorOrgan.pde
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ int octaveDivisions = 2;
void setup() {
size(300,300);

blink1 = new Blink1();
int rc = blink1.open();
if( rc != 0 ) {
blink1 = Blink1.open();
if( blink1.error() ) {
println("uh oh, no Blink1 device found");
}

Expand Down
5 changes: 2 additions & 3 deletions processing/Blink1ColorPicker/Blink1ColorPicker.pde
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ void setup()
smooth();
font = loadFont("LucidaSans-12.vlw");

blink1 = new Blink1();
blink1 = Blink1().open();

int rc = blink1.open();
if( rc!=0 ) {
if( blink1.error() ) {
println("oops no blink1");
statusText = "no Blink1 found";
}
Expand Down

0 comments on commit 5903377

Please sign in to comment.