|
Post by alexfish on Mar 18, 2017 18:37:31 GMT 1
Hi All wiringPi / controlling the GPIO PINS wiringpi.comSimple access to the LIB code example PRAGMA INCLUDE <wiringPi.h>
OPTION PARSE FALSE PRAGMA OPTIONS -I/usr/include PRAGMA LDFLAGS -L/usr/lib/ -lwiringPi
LOCAL t
wiringPiSetup() pinMode (0, OUTPUT) FOR t = 1 TO 100 digitalWrite (0, HIGH) delay (500) digitalWrite (0, LOW) delay (500) NEXT
if need to get examples and tests then GIT the sources Example from the terminal cd Downloads
git clone git://git.drogon.net/wiringPi
BR Alex
|
|
|
Post by alexfish on Mar 26, 2017 18:12:47 GMT 1
Hi Vovchik not on the pi3 on the pi2 tested with the how to with resistor connected , + tested the arduino for the rpi best advice for beginners Possible look HEREAnd HEREalso look at the Raspberry PI resources from the Internet menu can dry test by using the digtal read EG stat = digitalRead (PIN) where PIN = the gpio pin number Pin 0 stat = digitalRead (0)
PRINT "pin 0 1 : " , stat
also check the gpio is set in the configs + run the program as root BR Alex
|
|
|
Post by alexfish on Jan 20, 2019 4:13:28 GMT 1
Hi All and Microsoft(TM) users if this works on linux then try this youtube-dl Added RPI beats any system Per what Linux RPI stands for added this in view of latest posts by "BigBass"= Joe GPI pinsBR Alex
|
|
|
Post by alexfish on Feb 22, 2019 2:44:03 GMT 1
Hi all in a sort of final analogy:: The RPI and how the 'Linux kernel's sits', as of now and beyond possible 2 years plus Re: Proc device. ' "the possible if it happens" In first instance we still have in use SYSFS and in future IF the tree goes to 'Proc' device Tree, the same applies as regards the Device, that if you 'researched the bits' In short ' here is the statement DO NOT ABUSE SYSFS TO CONTROL HARDWARE THAT HAS PROPER KERNEL DRIVERS. PLEASE READ THE DOCUMENT AT Documentation/driver-api/gpio/drivers-on-gpio.rst TO AVOID REINVENTING KERNEL WHEELS IN USERSPACE. I MEAN IT. REALLY.
RPI has drivers that = 'Display & GPIO' + they are 'free' and 'Open Sourse' if in doubt read the bits in the '/opt/vc' and the actual bits as Regards Linux and the gpio HEREAny other definitions can be placed HEREor simply read www.raspberrypi.org/about/BR Alex
|
|