/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/propeller-clock.ino

  • Committer: Dan
  • Date: 2012-02-10 14:39:20 UTC
  • Revision ID: dan@waxworlds.org-20120210143920-7fwczt1h6pd9iee2
added up-to-date arduino.mk and symlinked to it from everywhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c++; compile-command: "BOARD=pro5v make"; -*- */
1
2
/*
2
3
 * propeller-clock.ino
3
4
 *
169
170
        num += 4;
170
171
 
171
172
        // pin 4 needs to be inverted (it's driving a PNP)
172
 
        if( num == 4 ) on = !on;
 
173
        // NOTE: PIN 4 TEMPORARILY DISABLED
 
174
        if( num == 4 ) on = true; //!on
173
175
 
174
176
        digitalWrite( num, on? HIGH : LOW );
175
177
}