Category : gpio

I had some working GPIO routines which I used on many RPi boards (32bit). Recently I tried moving onto 64bit and I’m cross-compiling with this prefix: aarch64-linux-gnu- However, I can’t change any of the GPIO pins (neither mode, neither value) with this little C code: #include <fcntl.h> #include <sys/mman.h> #include <fstream> #include <unistd.h> #include <iostream> ..

Read more

Hi I need to control the GPIO’s with C++. I used the code from the original Documentation but it doesent work. Does anyone have any Ideas? Code: // WiringPi-Api embed #include <wiringPi.h> // C-Standardbibliothek embed #include <stdio.h> int main() { // Start the WiringPi-Api if (wiringPiSetup() == -1) return 1; pinMode(0, OUTPUT); while(1) { // ..

Read more

I’m am writing a project where the data are coming in from UART, A&B input from an encoder, and some output pins to output signals. I have checked and ensured both UART and Encoder input/output signal work fine separately. However, I have noticed the interrupt "void USART1_IRQHandler(void)" will trigger when the AB signal from the ..

Read more

Trying to create a class that has its GPIO pins and functions that use those GPIO pins, but I am having issues initializing the GPIO driver (when called the GPIO_init function is supposed to initialize them), but when I attempt to run the code I get unresolved symbol errors error #10234-D: unresolved symbols remain error ..

Read more