j
Dependencies: AX12_v2 mbed-src
main.cpp@1:946c65496383, 2016-04-26 (annotated)
- Committer:
- ilaria
- Date:
- Tue Apr 26 16:46:51 2016 +0000
- Revision:
- 1:946c65496383
- Parent:
- 0:23acabab7c11
aggiunti controlli
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
clynamen | 0:23acabab7c11 | 1 | #include "mbed.h" |
ilaria | 1:946c65496383 | 2 | #include "AX12.h" |
clynamen | 0:23acabab7c11 | 3 | |
clynamen | 0:23acabab7c11 | 4 | int main() { |
ilaria | 1:946c65496383 | 5 | Serial pc(USBTX, USBRX); |
ilaria | 1:946c65496383 | 6 | AX12 MX106(PA_0, PA_1, 1); |
ilaria | 1:946c65496383 | 7 | pc.printf("Start run!"); |
ilaria | 1:946c65496383 | 8 | |
ilaria | 1:946c65496383 | 9 | |
ilaria | 1:946c65496383 | 10 | while (1) { |
ilaria | 1:946c65496383 | 11 | |
ilaria | 1:946c65496383 | 12 | pc.printf("%f",MX106.GetTemp()); |
ilaria | 1:946c65496383 | 13 | |
ilaria | 1:946c65496383 | 14 | |
ilaria | 1:946c65496383 | 15 | } |
ilaria | 1:946c65496383 | 16 | } |