Created
September 1, 2008 00:14
-
-
Save mwilliams/8241 to your computer and use it in GitHub Desktop.
This file contains 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
////////////////////////////////////////////////////////////////////////// | |
// Auto-generated by RAD | |
////////////////////////////////////////////////////////////////////////// | |
#include <WProgram.h> | |
#include <SoftwareSerial.h> | |
////////////////////////////////////////////////////////////////////////// | |
// plugin directives | |
////////////////////////////////////////////////////////////////////////// | |
////////////////////////////////////////////////////////////////////////// | |
// method signatures | |
////////////////////////////////////////////////////////////////////////// | |
void loop(); | |
void setup(); | |
// sketch signatures | |
int main(); | |
int led(); | |
// plugin signatures | |
////////////////////////////////////////////////////////////////////////// | |
// plugin structs | |
////////////////////////////////////////////////////////////////////////// | |
void loop(); | |
////////////////////////////////////////////////////////////////////////// | |
// plugin external variables | |
////////////////////////////////////////////////////////////////////////// | |
////////////////////////////////////////////////////////////////////////// | |
// sketch external variables | |
////////////////////////////////////////////////////////////////////////// | |
// servo_settings array | |
// debounce array | |
// hysteresis array | |
// spectrasymbol soft pot array | |
////////////////////////////////////////////////////////////////////////// | |
// variable and accessors | |
////////////////////////////////////////////////////////////////////////// | |
int _led = 13; | |
int led() { | |
return _led; | |
} | |
////////////////////////////////////////////////////////////////////////// | |
// assembler declarations | |
////////////////////////////////////////////////////////////////////////// | |
////////////////////////////////////////////////////////////////////////// | |
// setup | |
////////////////////////////////////////////////////////////////////////// | |
void setup() { | |
// pin modes | |
pinMode(13, OUTPUT); | |
} | |
////////////////////////////////////////////////////////////////////////// | |
// helper methods | |
////////////////////////////////////////////////////////////////////////// | |
// RAD built-in helpers | |
////////////////////////////////////////////////////////////////////////// | |
// plugin methods | |
////////////////////////////////////////////////////////////////////////// | |
void blink(int pin, int ms) { | |
digitalWrite( pin, HIGH ); | |
delay( ms ); | |
digitalWrite( pin, LOW ); | |
delay( ms ); | |
} | |
////////////////////////////////////////////////////////////////////////// | |
// main() function | |
////////////////////////////////////////////////////////////////////////// | |
int main() { | |
init(); | |
setup(); | |
for( ;; ) { loop(); } | |
return 0; | |
} | |
////////////////////////////////////////////////////////////////////////// | |
// loop! Autogenerated by RubyToC, sorry it's ugly. | |
////////////////////////////////////////////////////////////////////////// | |
void | |
loop() { | |
blink(led(), 500); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment