Eugen Frštek / Uart
Committer:
efrstek
Date:
Sat Feb 08 16:14:23 2020 +0000
Revision:
1:c69f589b72b1
Parent:
0:cc0cf84c7541
uart

Who changed what in which revision?

UserRevisionLine numberNew contents of line
efrstek 0:cc0cf84c7541 1 #include "mbed.h"
efrstek 0:cc0cf84c7541 2
efrstek 0:cc0cf84c7541 3 void fotopanel()
efrstek 0:cc0cf84c7541 4 {
efrstek 0:cc0cf84c7541 5 while(1) {
efrstek 0:cc0cf84c7541 6 float fotopanel;
efrstek 0:cc0cf84c7541 7 fotopanel = in5.read();
efrstek 0:cc0cf84c7541 8 pc.printf("izmjerena vrijednost: %f\n\r", fotopanel);
efrstek 0:cc0cf84c7541 9 wait(0.5);
efrstek 0:cc0cf84c7541 10 }
efrstek 0:cc0cf84c7541 11 }