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.
Fork of Lab7-01_template by
main.cpp@9:942eb6e8c117, 2017-09-04 (annotated)
- Committer:
- HEPTA
- Date:
- Mon Sep 04 16:35:03 2017 +0000
- Revision:
- 9:942eb6e8c117
- Parent:
- 8:bba8a88ca7ea
- Child:
- 10:4d6870d0caa0
Template Source Program
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_official | 0:bdbd3d6fc5d5 | 1 | #include "mbed.h" |
| mbed_official | 0:bdbd3d6fc5d5 | 2 | #include "SDFileSystem.h" |
| umeume | 2:1c5cdb2c3e0f | 3 | #include "HeptaXbee.h" |
| umeume | 2:1c5cdb2c3e0f | 4 | #include "HeptaCamera_GPS.h" |
| umeume | 2:1c5cdb2c3e0f | 5 | #include "Hepta9axis.h" |
| umeume | 2:1c5cdb2c3e0f | 6 | #include "HeptaTemp.h" |
| umeume | 2:1c5cdb2c3e0f | 7 | #include "HeptaBattery.h" |
| umeume | 2:1c5cdb2c3e0f | 8 | |
| umeume | 2:1c5cdb2c3e0f | 9 | Serial pc(USBTX,USBRX); |
| HEPTA | 9:942eb6e8c117 | 10 | SDFileSystem sd(p5, p6, p7, p8, "sd"); |
| umeume | 2:1c5cdb2c3e0f | 11 | HeptaXbee xbee(p9,p10); |
| umeume | 2:1c5cdb2c3e0f | 12 | HeptaCamera_GPS cam_gps(p13, p14,p25,p24); |
| HEPTA | 8:bba8a88ca7ea | 13 | Hepta9axis n_axis(p28,p27,0xD0,0x18);//sda,scl,acc&gyro_address,mag_gyro |
| HEPTA | 7:fab080b8be64 | 14 | HeptaTemp temp(p17); |
| umeume | 2:1c5cdb2c3e0f | 15 | HeptaBattery bat(p16,p26); |
| umeume | 2:1c5cdb2c3e0f | 16 | |
| HEPTA | 6:a7d481b9d962 | 17 | DigitalOut myled(LED1); |
| umeume | 5:c5ccb1b07e8f | 18 | |
| umeume | 2:1c5cdb2c3e0f | 19 | int main() |
| umeume | 2:1c5cdb2c3e0f | 20 | { |
| HEPTA | 6:a7d481b9d962 | 21 | myled = 1; |
| umeume | 5:c5ccb1b07e8f | 22 | wait(0.5); |
| HEPTA | 6:a7d481b9d962 | 23 | myled = 0; |
| umeume | 5:c5ccb1b07e8f | 24 | wait(0.5); |
| umeume | 2:1c5cdb2c3e0f | 25 | } |
