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.
spi.h@1:c69f589b72b1, 2020-02-08 (annotated)
- Committer:
- efrstek
- Date:
- Sat Feb 08 16:14:23 2020 +0000
- Revision:
- 1:c69f589b72b1
- Parent:
- 0:cc0cf84c7541
uart
Who changed what in which revision?
User | Revision | Line number | New 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 | } |