projects
/
contrib
/
mraa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Isr-pin6.cpp: Add example for c++ isr
[contrib/mraa.git]
/
examples
/
c++
/
Pwm3-cycle.cpp
diff --git
a/examples/c++/Pwm3-cycle.cpp
b/examples/c++/Pwm3-cycle.cpp
index
2625871
..
76f2328
100644
(file)
--- a/
examples/c++/Pwm3-cycle.cpp
+++ b/
examples/c++/Pwm3-cycle.cpp
@@
-38,10
+38,11
@@
sig_handler(int signo)
}
}
-int main ()
+int
+main()
{
signal(SIGINT, sig_handler);
-//! [Interesting]
+
//! [Interesting]
mraa::Pwm* pwm;
pwm = new mraa::Pwm(3);
@@
-61,7
+62,7
@@
int main ()
}
}
delete pwm;
-//! [Interesting]
+
//! [Interesting]
return MRAA_SUCCESS;
}