Download Print this page

AcSiP AI7688H Reference Manual page 50

Advertisement

10.3 Using MRAA in Python
To use libmraa in Python, you need to import it. In the below example,
libmraa is imported and the output is the build version of the mraa:
GPIO and Interrupts
To control GPIO pins, initialize the pin as GPIO pin and set its mode. The
simplest operation mode is OUTPUT - set the pin to HIGH or LOW to enable
and disable external switches or to form signal patterns.
Then, call pin.write(0) to set the pin state to LOW or call pin.write(1) to set
the pin state to HIGH. To make the Wi-Fi LED blink periodically, set pin
GPIO#44 (WLED_N) to GPIO mode and execute the following code
-46-
Document Name
AI7688H
Reference Manual
Version
V 2.0
Date
2019/08/08

Advertisement

loading

This manual is also suitable for:

Ek-ai7688h