mirror of
https://github.com/naruxde/revpimodio2.git
synced 2026-03-31 15:08:09 +02:00
docs: Update documentation for improved clarity and consistency
Revised various sections across multiple documentation files to reflect updated methods (`run_plc` replacing manual setup with `cycleloop`) and adjust for new default parameters (e.g., `autorefresh`). Enhanced descriptions for timers, Cycletools usage, and new method explanations. Removed outdated or redundant examples and updated system requirements. Signed-off-by: Sven Sager <akira@narux.de>
This commit is contained in:
@@ -24,13 +24,12 @@ Quick Example
|
||||
**Cyclic Programming**::
|
||||
|
||||
import revpimodio2
|
||||
rpi = revpimodio2.RevPiModIO(autorefresh=True)
|
||||
|
||||
def main(ct):
|
||||
if ct.io.button.value:
|
||||
ct.io.led.value = True
|
||||
|
||||
rpi.cycleloop(main)
|
||||
revpimodio2.run_plc(main)
|
||||
|
||||
**Event-Driven Programming**::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user