FTrevorGowen wrote: ↑Tue Sep 19, 2017 7:38 pm
What programming language are you looking for the (library) docs. you need? Have you looked for any "README" files within (library) source code (if provided)?
Dear Mr FTrevorGowan,
I have to admit starting out with this RPI world is not so easy as it is a Huge topic with millions of SW packages and things as beginner you do not even see the leaves from the trees,a person does not know what to use !
The sample code a person find mostly on the web is code snippets and there is no information about it such as you are describing ,I would not say it does not exist however I do not even know where to start to search .
I am trying to learn Paython and I bought the books from Prof Dogan Ibrahim and Bert van Dam as learning resources however besides that they use Raspbian ,Bash and Nano and a bunch of sample projects with code it does not give the information on what Libraries they are using and where to find the information for the libraries they are using.
I did the sample project to blink an LED from GPIO18 with the Import
RRi.GPIO as GPIO as you will see from the code snippet attached
and it also uses the
time library so where do I get or find more information about these things also ,I would like to control some sensors and IC's over SPI in future but if I understand the replies correctly that there are a number of SPI Libraries so how does a person decide what to use.
It is clear to me that somewhere there must be a description for these function call the code does .
What I would like to do is to use Libraries that is recommended by RPI foundation and not using some stuff found on the internet .
I really hope I could explain my problem .
Again thank you all for your replies it just made me realize this is a pot of worms I opened up starting to work with Rpi at the moment it seems there are millions of different Linux packages millions of Libraries and nobody know what to use or is the safest way to go

or even where to find the documentation for the packages you use besides that a beginner does not even know what he is using.
Code: Select all
import Rpi.GPIO as GPIO #import GPIO module
import time #import time module
LED = 18
ON = 1
OFF = 0
GPIO.setmode(GPIO,BCM) #set BCM pin numbering
GPIO.setup(LED,GPIO.OUT) #configure CH 18 as output
for i in range (0,10):
GPIO.output(LED,ON)
time.sleep(1)
GPIO.output(LED,OFF)
time.sleep(1)
GPIO.cleanup() # cleanup