Brightness controlled by a potmeter. this is a test program which uses the biorobotics shield

Dependencies:   mbed

main.cpp

Committer:
Jankoekenpan
Date:
2016-09-26
Revision:
0:e20f587cb263

File content as of revision 0:e20f587cb263:

#include "mbed.h"

PwmOut led(D3);
AnalogIn pot(A1);

int main()
{
    while (true) {
        led = pot;
        wait(0.1f);
    }
}