Matti Borchers / Mbed 2 deprecated mbed_amf_controlsystem_iO_copy

Dependencies:   mbed-rtos mbed

Fork of mbed_amf_controlsystem_iO_copy by Oliver Wenzel

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?

UserRevisionLine numberNew 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 }