Branimir Fotak / fotopanel_1_5

spi.h

Committer:
bfotak
Date:
2020-02-06
Revision:
2:b1ba1e6b10be
Parent:
1:8ca4855400f0

File content as of revision 2:b1ba1e6b10be:

#include "mbed.h"

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