Код: Выделить всё
char pathString[256];
sprintf(pathString, "%s/export", "/sys/class/gpio");
ofstream exporterFile(pathString);
exporterFile
Подробнее здесь: [url]https://stackoverflow.com/questions/35392295/gpio-pins-raspberrypi-using-c[/url]Код: Выделить всё
char pathString[256];
sprintf(pathString, "%s/export", "/sys/class/gpio");
ofstream exporterFile(pathString);
exporterFile
Подробнее здесь: [url]https://stackoverflow.com/questions/35392295/gpio-pins-raspberrypi-using-c[/url]