Giter VIP home page Giter VIP logo

wiringop's People

Contributors

blecher-at avatar evolutionclip avatar hunanchenxingyu avatar motom001 avatar nopnop2002 avatar savageautomate avatar sercxjo avatar tony-hit avatar werecatf avatar zhaolei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wiringop's Issues

I2C Throws Communication Error After Install

Before installing Wiring Pi I tested a I2C device and it was working well.

After install I am getting a communication error on send error.

Does something need to be reconfigured on the I2C channel to restore usability?

Orangepi 5B

I tried it for orangepi 5B and I am getting the following error .

[sudo] password for orangepi:
piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> No "Hardware" line
-> You may want to check:
-> http://www.lemaker.org/

OrangePi One can't surport hardware PWM?

I want to switch PIN1 to PWM mode but it failed.

This is the output:

root@DietPi:~# gpio mode 1 pwm
the pin you choose is not surport hardware PWM
you can select PI3 for PWM pin
or you can use it in softPwm mode

How to Set Default Pull for Pins on Boot

When booting an Orange Pi the default pin state appears to be HIGH.

On a Raspberry Pi there is a /boot/config.txt file to change the initial boot state.

Is there a way set the boot state to LOW on the Orange Pi?

Issue with IRQ

I've tried the following code (after echo'ing 3 > /sys/class/gpio/export)

#include <stdio.h>
#include <wiringPi.h>
#include <stdint.h>
#define TRIGGER 2
#define ECHO 3

int IRQcount = 0;

void irq(void) {
	//printf("Falling edge\n");
	IRQcount++;
}

int main() {
	wiringPiSetup();
	pinMode(TRIGGER, OUTPUT);
	pinMode(ECHO, INPUT);
	//Next line fails miserably
	wiringPiISR(ECHO, INT_EDGE_RISING, &irq);	
	for (;;) {
		printf("On [%i]\n", IRQcount);
		digitalWrite(TRIGGER, HIGH);
		delayMicroseconds(4000000);
		printf("Off [%i]\n", IRQcount);
		digitalWrite(TRIGGER, LOW);
		delayMicroseconds(4000000);
	}
	return (0);
}```

The interrpt is invoked, but then it won't ever stop forever, hitting the callback until I don't stop the program.
It's not bouncing or anything it really keeps beeing called forever.

Is there a way to disarm the irq?

Use WiringOp on Android

hi
how should I use WiringOp on Officially android for orange pi
I added this library to my android project and built that with NDK and run on my orange pi Pc
but when I use wiringPiSetup I get an exception (maybe because cannot access to /dev/mem)
and when I call wiringPiSetupSys instead, no exception but that is not working
how should I do that?
not that my android is rooted

Doesn't work for Orange Pi 3

I'm getting

piBoardRev: Unable to determine board revision from /proc/cpuinfo -> No "Revision" line -> You may want to check: -> http://www.lemaker.org/

WiringOP does not work on OrangePi i96

After installed Ubuntu image and downloaded & installed WiringOP, the "gpio readall"
command does not work properly. After printed part of table header, there is an error
message:
Orange Pi+-[ 490.969604] Unhandled fault: external abort on non-linefetch
(0x008) at 0xb6fcc000. The table is short (just header + single line) and is followed
by "Bus error" message, And by the way -- header pins 1 and 2 on i96 are connected to GND, so the printed line is wrong (shows 3.3V and 5V in V columns) ....

Running gpio under root identity gives the same result. Rest of the Ubuntu system
seems to work as expected.

orangepi@orangepii96:~/WiringOP$ gpio readall
+-----+-----+--[ 474.795227] Unhandled fault: external abort on non-linefetch (0x008) at 0xb6fd7000

--------+------+---+-Orange Pi+---+---+------+---------+-----+--+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
Bus error
orangepi@orangepii96:~/WiringOP$

Here is full listing: WiringOP install.log

swig3.x

Sorry it's my miss take.
Please close this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.