root/lang/cplusplus/gainer++/gainer-led.cc

Revision 8110, 229 bytes (checked in by mootoh, 9 months ago)

lang/cplusplus/gainer++: implementing ain/din.

Line 
1/**
2 * application example
3 *   from http://8-p.info/gainer-ruby/
4 */
5#include "gainer.h"
6
7int main(int argc, char **argv) {
8  Gainer gainer(argv[1]);
9
10  gainer.set_led(true);
11  sleep(1);
12  gainer.set_led(false);
13
14  return 0;
15}
16
Note: See TracBrowser for help on using the browser.