test

Dependencies:   mbed

main.cpp

Committer:
djargo
Date:
2020-02-10
Revision:
0:d29662a56c04

File content as of revision 0:d29662a56c04:

#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);
    }
}