mirror of
https://github.com/naruxde/revpimodio2.git
synced 2026-05-16 08:27:24 +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:
+1
-3
@@ -65,8 +65,6 @@ For continuous operation, use a cyclic loop:
|
||||
|
||||
import revpimodio2
|
||||
|
||||
rpi = revpimodio2.RevPiModIO(autorefresh=True)
|
||||
|
||||
def main_cycle(ct: revpimodio2.Cycletools):
|
||||
"""Called every cycle (default: 20-50ms)."""
|
||||
|
||||
@@ -91,7 +89,7 @@ For continuous operation, use a cyclic loop:
|
||||
print("Program stopped")
|
||||
|
||||
# Run cyclic loop
|
||||
rpi.cycleloop(main_cycle)
|
||||
revpimodio2.run_plc(main_cycle)
|
||||
|
||||
Event-Driven Program
|
||||
--------------------
|
||||
|
||||
Reference in New Issue
Block a user