Questions tagged [wiringpi]

Question regarding Wiring Pi - a GPIO Interface library for the Raspberry Pi

Wiring Pi - a GPIO Interface library for the Raspberry Pi

WiringPi is a PIN based GPIO access library written in C for the BCM2835, BCM2836 and BCM2837 SoC devices used in all Raspberry Pi. versions. It’s released under the GNU LGPLv3 license

Site: http://wiringpi.com/

Reference: http://wiringpi.com/reference/

Download: http://wiringpi.com/download-and-install/

Github: https://github.com/WiringPi/WiringPi

145 questions
0
votes
1 answer

wiringPi installation issue

I am trying to stall wiringpi in the raspberry for using the GPIO in C but the message says that: "Package wiringpi is not available but is referred to by another package. This may mean that the package is missing, has been obsolited , or is only…
emmanuel
  • 5
  • 4
0
votes
1 answer

Move Linear Actuators using softPWM wiringpi

I am using softPWM from wiringpi library to control linear actuator speed and direction. I have raspberrypi 4b connected to BTN8982TA motor driver which is in-turn connected to linear actuator. I have created a python program to move forward and…
0
votes
0 answers

Question, is possible to add this The WiringPi and The StepperMotor library to Qt?

I want to make in QT, Gui for control stepper motor using the Raspberry Pi.(Adress from where i took library) https://crish4cks.net/a-simple-c-library-to-drive-a-stepper-motor-using-the-raspberry-pi/. Question, is possible to add this The WiringPi…
For3st
  • 9
  • 1
0
votes
0 answers

How to get intellisense for Linux headers on VS2019 (Windows)

I coding a C++ WiringPi (Linux) project using these libraries: #include #include #include #include #include #include #include #include I am on Windows…
0
votes
1 answer

C++ code apparently executing out of sequence

The code This is a project on Raspberry Pi using WiringPi. I have the following three member functions of a template class, along with pure virtuals for read() and write(). This base class is then subclassed by more specialized classes that…
S. Saad
  • 336
  • 2
  • 9
0
votes
0 answers

Raspberry Pi GPIO buttons as keyboard input C++

I need help figuring out how to use the raspberry pi gpio kit's buttons as regular keyboard inputs in C++. If you don't understand, what I mean is that my club wants to use the raspberry pi's gpio kit and buttons to make a game controller, so when…
user17124459
0
votes
1 answer

Linking wiringPi Shared Object Library for RPI4 in Ubuntu 20.04

I'm hoping someone can help me look into something that I think should be somewhat trivial. I'm simply trying to compile a cpp file that includes wiringPi.h: #include int main(){ return 0; } I've run tens of different commands with…
Dylan
  • 101
  • 9
0
votes
2 answers

Characters in row 3 & 4 are moved to the right in 16x4 LCD - Raspberry Pi 4

I'm trying to make a simple c++ code to display 4 text contents, each in 4 separate rows. I'm using the latest version of Raspberry Pi OS (Debian Buster), WiringPi 2.52 and 16x4 LCD Display(5v - 1604A LCD screen). Here is my code. #include…
0
votes
0 answers

Asus Tinker board S SPI master not recieving data from slave

I'm trying to program an Asus tinker board S as a SPI master, and the communication from the master to the slave microcontroller works as expected, and i am able to send data from the Asus tinker board S SPI master to the STM32f140 SPI slave. I want…
0
votes
1 answer

serialPutchar with char* variable

I need to send char* (command) with serial WiringPi. How do I do it if serialPutchar (int fd, unsigned char c) needs an unsigned char? int SendCommand(int serial, char *command, char *expectedResponse, char response []) { serialFlush(serial); …
Nuria
  • 15
  • 3
0
votes
1 answer

Segmentation violation wiringpi

I have a problem with the following code. I think it's a pointer issue but I don't know how to solve it. I want to call the SIM7070_Start function from main. This function calls SIM7070_SendCommand and then the error appears. It is related to the…
Nuria
  • 15
  • 3
0
votes
0 answers

Raspberry PI wiringPi c++ call an object as an interruption

I'm quite a beginner in C++, for a robotic project, I'm creating a program to control several motors, and also get their speed. For getting the speed, I have a "code wheel" installed on the motors which gives a 0/1 signal to a pin of the raspberry…
zepeu
  • 81
  • 2
  • 16
0
votes
1 answer

SPI raspberry pi (master) & arduino due (slave)

I'm trying to communicate raspi and due with SPI. Raspi is master and due is slave. I can send bytes from raspi to due via SPI with no problem. But what I need on DUE side is , when I received the data from Raspi I send a new data to Raspi from…
bladekel
  • 37
  • 7
0
votes
0 answers

Received some error data from DHT12 sensor

SCL pin->Raspberry SCL pin. SDA pin->Raspberry SDA pin. Vcc->5V. GND->0V #include #include #include int main(void) { int dht; wiringPiSetup(); dht=wiringPiI2CSetup(0x5c); while(1) { …
0
votes
0 answers

is there a function for "waiting for an edge" in c for gpio?

I need to detect an falling edge on a gpio pin and have my code wait until it does that. I also need a way to stop the code from waiting for the falling edge and end the program. If anyone knows of any solutions or libraries I could use?? I'm coding…