Skip to content

Instantly share code, notes, and snippets.

@mwilliams
Created September 1, 2008 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwilliams/8241 to your computer and use it in GitHub Desktop.
Save mwilliams/8241 to your computer and use it in GitHub Desktop.
//////////////////////////////////////////////////////////////////////////
// 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