Skip to main content

Example

Input

from AW9523B import EX_GPIO,Port0,Port1
import time

inputPin = [Port1.PIN7, Port1.PIN6, Port1.PIN5, Port1.PIN4, Port0.PIN7,
                    Port1.PIN0, Port1.PIN1, Port1.PIN2, Port1.PIN3, Port0.PIN0]

def inputCallback(pin):
    print("inputCallback", pin)

if __name__ == "__main__":
    for pin in inputPin:
        EX_GPIO.setup(pin, EX_GPIO.INPUT)
    EX_GPIO.inputCB = inputCallback
    while 1:
        time.sleep(1)

OUTPUT

from AW9523B import EX_GPIO,Port0
import time

led1 = Port0.PIN5
led2 = Port0.PIN6

EX_GPIO.setup(led1, EX_GPIO.OUTPUT)
EX_GPIO.setup(led2, EX_GPIO.OUTPUT)



if __name__ == "__main__":
    while 1:
        time.sleep(5)
        EX_GPIO.output(led1,EX_GPIO.HIGH)
        EX_GPIO.output(led2,EX_GPIO.LOW)
        time.sleep(5)
        EX_GPIO.output(led1,EX_GPIO.LOW)
        EX_GPIO.output(led2,EX_GPIO.HIGH)

Metadata

Release files for aw9523b 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aw9523b 1.1.1
File Size Uploaded
aw9523b-1.1.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aw9523b 1.1.1
File Interpreter ABI Platform
aw9523b-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / aw9523b-1.1.1.tar.gz

Download URL aw9523b-1.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0ec9594c80df38ea787090c9ce05567a7638e051b10d284a265c8b6535b2f0b4
BLAKE2b-256 checksum
How to use checksums
5b287c1f5ce998ad85f9e7710c5505589d9552473b1c034bc9c734c949444153
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

Release files / aw9523b-1.1.1-py3-none-any.whl

Download URL aw9523b-1.1.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c4bd0921cac41f8072e24163c9021c6a37e156d86a42e2297fe600caf384193
BLAKE2b-256 checksum
How to use checksums
90718a7c63b8aa148ec25826aec9f8a3e42563a68151b65d172411866e04e00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page