rgb+lcd+pot

Dependencies:   C12832

main.cpp

Committer:
robindeleu
Date:
2020-02-10
Revision:
6:869b37ae3497
Parent:
4:f0eb984c583d

File content as of revision 6:869b37ae3497:

#include "mbed.h"
#include "C12832.h"

C12832 lcd(D11, D13, D12, D7, D10);

AnalogIn pot1 (A0);
AnalogIn pot2 (A1);


PwmOut r (D5);
PwmOut g (D8);
PwmOut b (D9);

int main()
{
    lcd.cls();
    lcd.locate(0,3);
    lcd.printf("P1 : P2");
    
    while(true) {
        r = pot1-pot2;
        g = pot1;
        b = pot2;
       
       
       
        
        wait(0.1);
    }
}