From 0cb9db0cf80ee6011092160b323fa1a2112cafa7 Mon Sep 17 00:00:00 2001 From: MrYsLab Date: Mon, 30 Oct 2023 10:52:44 -0400 Subject: [PATCH] Updated API documentation --- docs/pin_modes.md | 18 ++++++++++++++++++ mkdocs.yml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/pin_modes.md b/docs/pin_modes.md index 02fe668..ca86581 100644 --- a/docs/pin_modes.md +++ b/docs/pin_modes.md @@ -6,6 +6,24 @@ In this section, the methods to set pin modes are presented. For each API method provided. The API parameters for both telemetrix and telemetrix-aio are identical for setting pin modes, except telemetrix-aio method definitions are prefixed with the Python _async_ keyword. +**NOTE:** If you setting the mode for multiple pins, you may wish to add a short delay +after setting each pin. + +```angular2html +import time +from telemetrix import telemetrix + + +class Main: + def __init__(self): + self.board = telemetrix.Telemetrix() + # init password buttons callback + for i in range(10, 23): + self.board.set_pin_mode_digital_input_pullup(i, callback=self.ringBack) + # add a short delay + time.sleep(.02) +``` + ## Setting Pin Modes ### set_pin_mode_analog_input diff --git a/mkdocs.yml b/mkdocs.yml index 02ef171..ccce04c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,7 +4,7 @@ site_name: Telemetrix and Telemetrix-AIO User's Guide repo_url: https://github.com/MrYsLab/telemetrix copyright: > # should remain a link to the original theme Copyright © 2020-2023 Alan Yorinks           Last - Modified: October 23, 2023 + Modified: October 30, 2023 nav: - Introduction: index.md