Branimir Fotak / fotopanel_1_5

spi.h

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

File content as of revision 1:8ca4855400f0:

#include "mbed.h"

DigitalOut myled1(LED1);
AnalogIn in5(A5);

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