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:8ca4855400f0, 2020-02-06 (annotated)
- Committer:
- bfotak
- Date:
- Thu Feb 06 19:13:17 2020 +0000
- Revision:
- 1:8ca4855400f0
- Child:
- 2:b1ba1e6b10be
Manje izmjene
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bfotak | 1:8ca4855400f0 | 1 | #include "mbed.h" |
bfotak | 1:8ca4855400f0 | 2 | |
bfotak | 1:8ca4855400f0 | 3 | DigitalOut myled1(LED1); |
bfotak | 1:8ca4855400f0 | 4 | AnalogIn in5(A5); |
bfotak | 1:8ca4855400f0 | 5 | |
bfotak | 1:8ca4855400f0 | 6 | void fotopanel() |
bfotak | 1:8ca4855400f0 | 7 | { |
bfotak | 1:8ca4855400f0 | 8 | while(1) { |
bfotak | 1:8ca4855400f0 | 9 | float fotopanel; |
bfotak | 1:8ca4855400f0 | 10 | fotopanel = in5.read(); |
bfotak | 1:8ca4855400f0 | 11 | pc.printf("izmjerena vrijednost: %f\n\r", fotopanel); |
bfotak | 1:8ca4855400f0 | 12 | wait(0.5); |
bfotak | 1:8ca4855400f0 | 13 | } |
bfotak | 1:8ca4855400f0 | 14 | } |