Djargo Naeyaert
/
Pots_RGB
test
Revision 0:d29662a56c04, committed 2020-02-10
- Comitter:
- djargo
- Date:
- Mon Feb 10 10:56:09 2020 +0000
- Commit message:
- it works.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 10 10:56:09 2020 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + + +PwmOut r (D5); +PwmOut g (D8); +PwmOut b (D9); + + +AnalogIn pot1 (A0); +AnalogIn pot2 (A1); + +int main() +{ + while(true) { + r = pot1; + g = pot2; + wait(0.1); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Feb 10 10:56:09 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file