I am new to RPi and python so please forgive my inexperience.
When writing scripts in python the typical format for a command is something like:
module.method(stuff)
So, for instance a GPIO command for for setting a pin would be something like
GPIO.setup(ledpin,GPIO.OUT)
So, my question is: where does one go to for definitions of modules and commands? By this I mean, how would I even know to type "setup" followed by (variable, command) when I am using Rpi.GPIO? This goes for other modules as well, not just Rpi.GPIO.
Thanks in advance.
When writing scripts in python the typical format for a command is something like:
module.method(stuff)
So, for instance a GPIO command for for setting a pin would be something like
GPIO.setup(ledpin,GPIO.OUT)
So, my question is: where does one go to for definitions of modules and commands? By this I mean, how would I even know to type "setup" followed by (variable, command) when I am using Rpi.GPIO? This goes for other modules as well, not just Rpi.GPIO.
Thanks in advance.
Statistics: Posted by billydanger — Sun Jan 07, 2024 6:32 pm