Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: spi.h
- Revision:
- 1:8ca4855400f0
- Child:
- 2:b1ba1e6b10be
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spi.h Thu Feb 06 19:13:17 2020 +0000 @@ -0,0 +1,14 @@ +#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); + } +} \ No newline at end of file