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 mbed_amf_controlsystem_iO_copy by
main.cpp@18:0e8ad413a840, 2016-02-08 (annotated)
- Committer:
- mborchers
- Date:
- Mon Feb 08 15:37:06 2016 +0000
- Revision:
- 18:0e8ad413a840
- Parent:
- 17:76636aaf80de
Support System Test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mborchers | 0:8a6003b8bb5b | 1 | #include <mbed.h> |
mborchers | 0:8a6003b8bb5b | 2 | #include "rtos.h" |
mborchers | 0:8a6003b8bb5b | 3 | #include "Periphery/SupportSystem.h" |
mborchers | 0:8a6003b8bb5b | 4 | I2C i2c(p9, p10); |
mborchers | 0:8a6003b8bb5b | 5 | |
mborchers | 10:f92664a22d02 | 6 | void hearbeat_thread(void const *args); |
mborchers | 10:f92664a22d02 | 7 | |
mborchers | 18:0e8ad413a840 | 8 | |
mborchers | 15:141de2b5646d | 9 | |
mborchers | 18:0e8ad413a840 | 10 | int main() { |
mborchers | 0:8a6003b8bb5b | 11 | SupportSystem *supportSystem = new SupportSystem(0x80, &i2c); |
mborchers | 17:76636aaf80de | 12 | |
mborchers | 17:76636aaf80de | 13 | |
mborchers | 18:0e8ad413a840 | 14 | supportSystem->setLightManagerRemoteLight(true, false); |
mborchers | 18:0e8ad413a840 | 15 | supportSystem->setLightManagerBrakeLight(true, false); |
mborchers | 18:0e8ad413a840 | 16 | supportSystem->setLightManagerSignalBoth(true, true); |
mborchers | 0:8a6003b8bb5b | 17 | while(true) { |
mborchers | 17:76636aaf80de | 18 | |
mborchers | 0:8a6003b8bb5b | 19 | |
mborchers | 10:f92664a22d02 | 20 | } |
mborchers | 16:a387f2e275c8 | 21 | } |