Page 2 of 2
Re: GPIO on Raspberry Pi
Posted: Wednesday 23rd December 2020 2:29pm
by ocoquet
Sorry, don't understand what is this
Regards
Re: GPIO on Raspberry Pi
Posted: Friday 25th December 2020 9:51am
by Matthew-Collins
Hi,
This is a Gambas class, so create a new class file in your project called "GPIO_Pin" and copy and paste the code into it...
https://raw.githubusercontent.com/Matth ... _Pin.class
Then in your code:
Dim Pin As New GPIO_Pin(16)
Pin.SetDirection(False)
For i as Integer = 0 to 1000
Print str(i) & "-" & str(Pin.GetValue())
Next
Print "Done"
Let me know how you get on / if this is helpful ?
Happy Christmas
Re: GPIO on Raspberry Pi
Posted: Friday 25th December 2020 3:24pm
by ocoquet
Thank's but.....
Just, I've no question
I was just answering to the forum topic, personally i use wiringpi with a real success
Regards and Happy Christmas
Olivier
Re: GPIO on Raspberry Pi
Posted: Saturday 26th December 2020 7:35am
by Matthew-Collins
Hi, can you post a WiringPi example/demo project ?
Re: GPIO on Raspberry Pi
Posted: Saturday 26th December 2020 7:54am
by stevedee
Matthew-Collins wrote: ↑Saturday 26th December 2020 7:35am
...can you post a WiringPi example...
https://elinux.org/RPi_GPIO_Code_Samples#Gambas
Note: 1) I don't think you need root for latest wiringPi,
2) Gordon got the 'ump with abuse, so stopped updating wiringPi some time ago:
https://captainbodgit.blogspot.com/2019 ... mouth.html
Re: GPIO on Raspberry Pi
Posted: Thursday 24th June 2021 6:40am
by BabbRust
Hi...the RPI4 has precisely the same GPIO pinout as the RPI3.
However, on the off chance that you need them, there are various new equipment fringe drivers that can be alloted to GPIO's, relatively few individuals use them yet, so there isn't a lot of information about them, however
Notwithstanding the heritage peripherals we have:
4 new PL011 UARTs with fair measured FIFOs
4 new I2C regulators with fixed (or diversely broken) clock extending
4 duplicates of the old SPI regulator
https://www.7pcb.com/