Notifications
Clear all

Raspberry Pi pin usage???

85 Posts
4 Users
8 Likes
2,764 Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@byron @inq Interesting but I didn't see any mention of the kernel-level library.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @byron

@inq @zander

The following may be of interest as it seems to have been updated this very day 

https://raspberrypi.stackexchange.com/questions/117591/controlling-raspberry-pi-gpio-with-c-and-python/117592#117592

The Pi5 uses an external chip for GPIO which appears to break most of the existing GPIO libraries.

 

Yeap!  That's what I'm running into... even on the Pi4.  And is my point... RasPi.org should be responsible for the low level API and others should use it.  That allows them to change chips, change the API and no 3rd party libraries break.  Having 3rd party going to the chip level (BCM2835) means a brittle architecture.  As illustrated, it's good  (ahead of time) to know that Pi5 doesn't use that chip.  Will that nice developer re-write his library for the new chip?  😘 or kiss the headaches away.

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

@inq

vscode is also available on the rpi, and easily installed from the options > recommended software menu option.  No doubt from my previous post (your last post crossed) you will see more C options to explore.

Yes rpi does keep providing more options, or shall we say, as more people contribute their 3rd party options.  However, back in them days it was a lack of C or C++ stuff for the rpi that drove me to python, and now I'm mightily pleased it did so 😀 

This post was modified 5 months ago by byron

   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq @byron libgpiod is now in the kernel. I doubt that will get broken easily. HOWEVER, the Pi5 has a totally different GPIO setup, it would be really interesting to see what of the possible solutions already work/will work. I will be surprised if the Pi5 GPIO support is not in the new kernel. I will test it when I get my Pi5 in a few weeks.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @byron

vscode is also available on the rpi

Do you use it?  I loaded.  It was still slow even on a RasPi 4 (64bit OS)-8GB... at least compared to Geany.  It didn't compile out of the box.  Probably needs a plug-in.  Does it do real debugging?

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq What developer? The gpio library was moved into the kernel some time ago. I will test it when I get my Pi5. AFAIK, the kernel is maintained by the RaspberryPi folks.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

Posted by: @zander

I will test it when I get my Pi5 in a few weeks.

I've had my two sitting on my desk for a couple of weeks, so the colonies are a bit behind the times 😎.  

As I know you use a mac the one thing that I found missing from Debian Bookworm was that netatalk was AWOL to install via apt.   This was due to the fact that Netatalk did not have any maintainers for a while.  However it does have one now and it should be incorporated again but probably not for a year or two!!  But I found a way to install the latest version via apt as an unsupported version and if you want so info on how to do this then let me know.

@inq - it goes to show that its a fragile world with these here today and possibly gone tomorrow libraries and not just related to rpi stuff, but what to do?


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @byron

Debian Bookworm

They also broke VNC Server on it.  I use the RasPi headless.  I had to back up to Bullseye.

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@byron No idea what netatalk is. Not surprising that the UK would get preferential shipping, I am sure we do the same with Maple Syrup and Maple Syrup beats a Pi5 every day.

I have far more things to do so I don't miss the Pi5 besides, I don't really have a use for my Pi4 let alone Pi5.

In addition a new puppy and ongoing health issues means I will probably not be able to do even as much next year as this which was maybe 10% of what I had planned.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

Posted by: @inq

vscode Do you use it? 

I have used it, but rarely on the rpi as I tend to use it on my mac for coding python and then transfer the code to my rpi.  I dont use the GPIO much on the rpi, but use the rpi pico and esp32's for that sort of stuff.   As one can now use vscode to program micropython on the rpi pico I have tried vscode out on the new rpi 5 where it runs very fast. 😀 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq Me too (headless that is), glad I didn't upgrade yet.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

Posted by: @zander

No idea what netatalk is

Oh, well its how you can use your mac finder to look at the folders and files on your rpi and easily transfer files to and fro.

Enjoy you new pup,  the dog walks should give you some nice exercise, but maybe strap a rpi with gps tracker to the hound. 😎 

This post was modified 5 months ago by byron

   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

Posted by: @inq

They also broke VNC Server on it.  I use the RasPi headless.  I had to back up to Bullseye.

Microsoft Remote Desktop works OK with Bookworm, also TigerVNC viewer works well, on my mac anyway.


   
Inq reacted
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

@inq - In case you were thinking of using ms Remote desktop there is some small setting up to the config file needed on the rpi

XRDP ms Remote Desktop:

sudo apt install xrdp

To enable user pi to work with XRDP:

Edit: 

sudo nano /etc/X11/xrdp/xorg.conf

In xorg.conf find :

Option "DRMDevice" "/dev/dri/renderD128"

Change to:

Option "DRMDevice" ""

Save the file and then reboot

 


   
Inq reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@byron Ok, that's probably Apple talk for SMB or CIFS. I don't have much need to network the Pis into my home network, but if I ever do I will remember that. Thanks.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Page 2 / 6