Eugen Frštek / Uart

spi.h

Committer:
efrstek
Date:
2020-02-08
Revision:
1:c69f589b72b1
Parent:
0:cc0cf84c7541

File content as of revision 1:c69f589b72b1:

#include "mbed.h"

void fotopanel()
{
    while(1) {
        float fotopanel;
        fotopanel = in5.read();
        pc.printf("izmjerena vrijednost: %f\n\r", fotopanel);
        wait(0.5);
    }
}