root/lang/cplusplus/gainer++/gainer-led.cc
| Revision 8110, 229 bytes (checked in by mootoh, 9 months ago) |
|---|
| Line | |
|---|---|
| 1 | /** |
| 2 | * application example |
| 3 | * from http://8-p.info/gainer-ruby/ |
| 4 | */ |
| 5 | #include "gainer.h" |
| 6 | |
| 7 | int 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.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)