MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / main

Function main

OpenHD/ohd_common/test/test_led.cpp:31–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "openhd_util.h"
30
31int main(int argc, char *argv[]) {
32 while (true) {
33 std::cout << "Set LEDs off" << std::endl;
34 openhd::LEDManager::instance().set_red_led_status(
35 openhd::LEDManager::STATUS_OFF);
36 openhd::LEDManager::instance().set_green_led_status(
37 openhd::LEDManager::STATUS_OFF);
38 std::this_thread::sleep_for(std::chrono::seconds(3));
39 std::cout << "Set LEDs ON" << std::endl;
40 openhd::LEDManager::instance().set_red_led_status(
41 openhd::LEDManager::STATUS_ON);
42 openhd::LEDManager::instance().set_green_led_status(
43 openhd::LEDManager::STATUS_ON);
44
45 std::this_thread::sleep_for(std::chrono::seconds(3));
46 }
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected