Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
451 B
0
Indexable
Never
 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;
Leave a Comment