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's LCD Library - undefined reference to `lcdInit'

Trying to compile a very simple program for testing wiringpi's library for the hd44780 lcd controller: #include #include #include ... int main() { init_wiringpi; fd = lcdInit(2, 16, 4, 11,10 ,…
john_who_is_doe
  • 389
  • 3
  • 18
0
votes
2 answers

Unable to run method multiple times

I'm using the WiringPi gem. This block of code works as expected: pinNumber = 7 io = WiringPi::GPIO.new do |gpio| gpio.pin_mode(pinNumber, WiringPi::INPUT) end pin_state = io.digital_read(pinNumber) return pin_state However, when I enclose…
Aaron Thomas
  • 5,054
  • 8
  • 43
  • 89
0
votes
1 answer

RFID RC522 Reading card wiringPi

i am using raspberyy pi 3 , RFID RC522. I want to read a card using wiringPi. I am trying this codes; #include #include #include #include int main() { int chan = 1; int speed = 1000000; if…
SemraY
  • 1
  • 1
0
votes
1 answer

random number generator in Assembly language ARM Cortex-A53

so i have to build a dice game in assembly using raspberry pi 3 and gpio. i have build most of it but what i am stuck is the range part of the the random number part. i need the number to fall between 1-6 when the user pushes the button. i have…
Onsketch
  • 1
  • 6
0
votes
0 answers

How do I get my dot: function to loop back up properly?

first timer here. I am attempting to code an arm assembly morse code translator on my raspberry pi 3. The program should read the string literal (x), take the corresponding morse code string (h) and scan through the string (".... ") and output a…
0
votes
0 answers

Linking installed library WiringPi to Adafruit's scons script build

I recently used Neopixel's library provided by Adafruit's (here) on a Raspberry Pi 3 with Raspbian Jessie with Pixel. Adafruit used a Scons script file to manage build: SConscript File: Import(['clean_envs']) tools_env =…
Balette
  • 1
  • 1
0
votes
1 answer

WiringPi and Flask Sudo Conflict

I am running my application in a virtualenv using Python3.4. WiringPi requires sudo privilege to access the hardware pins. Flask, on the other hand, resides in my virtualEnv folder, so I can't access it using sudo flask. I've tried making it run on…
Toni_Entranced
  • 969
  • 2
  • 12
  • 29
0
votes
1 answer

C# Wrapper Class for C library

I want to create a C# wrapper class with the functions in mcp23017.c within the WiringPi C library. I took this existing C# WiringPi WrapperClass for the other functions. I want to extend this wrapper class to use the functions for mcp23017. I tried…
Alex Krish
  • 93
  • 1
  • 13
0
votes
1 answer

Raspberry Pi - how to use I2C and GPIO at the same time?

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open(...,...) and ioctl(...,...,...).…
Davido
  • 2,913
  • 24
  • 38
0
votes
1 answer

wiringPiISR: No such file or directory

I'm trying to use interrupts on my Orange Pi Plus H3. I've dowloaded WiringOP from here and installed it. But when I'm running program, I got the message: gpio: Unable to open GPIO export interface: No such file or directory wiringPiISR: unable to…
askrav
  • 195
  • 12
0
votes
1 answer

Interrupt based communication between arduino and raspberry pi

I have 6 Arduinos and 1 raspberry pi B+. I need Arduino to communicate with pi based on interrupts. For example, if 1 Arduino has to communicate with pi, it sends interrupt and then pi asks the Arduino to send data. On the other hand, Pi can…
Bajwa
  • 1
0
votes
1 answer

How not to run Pi specific code in other machines (x86_64 Linux)?

While coding a Raspberry Pi application I do use my PC most of the time since it is a little faster then the Pi. Today I got the following message when a WiringPi specific code (wiringPiSetup();) got called: piBoardRev: Unable to determine board…
KcFnMi
  • 5,516
  • 10
  • 62
  • 136
0
votes
0 answers

Eclipse asking for sudo (wiringPi)

I have written a c code employing wiringpi. I have used eclipse platform for it. I could able to build and binary file is being generated. Once I run the project, it is showing : wiringPiSetup: Must be root. (Did you forget sudo?) It will usually…
0
votes
1 answer

Running wiringPi-python hardware PWM withoot root

I am attempting to run wiringpi to control the hardware PWM on GPIO 18 on the pi. If I use wiringPiSetupGpio() as below and I run as root everything works. Using wiringPiSetupSys() as documentation suggests does not work, even when ran as…
SpaceCase
  • 148
  • 2
  • 10
0
votes
1 answer

MCP3004 -spi analogread wiringPi- only three good reads

I am tring to make a simple C++ loop program to read analog values from MCP3004 via SPI. I am using wiringPi libs to make code super clear. Functions works fine, I get proper numbers but not in a loop. I get only 3 first reads and after that only 0.…
Janusz020
  • 11
  • 2
1 2 3
9
10