Untitled
unknown
plain_text
a year ago
451 B
3
Indexable
std::cout << "GPIO line " << line_offset << " information:" << std::endl; std::cout << "Name: " << line_info.name() << std::endl; std::cout << "Consumer: " << line_info.consumer() << std::endl; std::cout << "Direction: " << (line_info.is_output() ? "Output" : "Input") << std::endl; std::cout << "Active state: " << (line_info.active_state() == gpiod::line_active_state::active_high ? "High" : "Low") << std::endl;
Editor is loading...
Leave a Comment