Libgpiod C++ 2.1.x ошибка чтения строки GPIOC++

Программы на C++. Форум разработчиков
Anonymous
 Libgpiod C++ 2.1.x ошибка чтения строки GPIO

Сообщение Anonymous »

На основе примера libgpiod на github я создал простой класс C++ для прослушивания нескольких строк, как показано ниже:

Код: Выделить всё

#include 
#include 
#include 
#include 
#include 

#include 
#include 
#include 
#include 
#include 

#include "gpiod.hpp"

#define GPIO_PORT_1_LINE 0
#define GPIO_PORT_2_LINE 1
#define GPIO_PORT_3_LINE 5
#define GPIO_PORT_4_LINE 6

#define GPIO_CHIP_NAME "/dev/gpiochip0"

IO::IO()
{
std::cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/79048588/libgpiod-c-2-1-x-error-reading-gpio-line[/url]

Вернуться в «C++»