adafruit_blinka
- Runtime utility objects for re-implementation of CircuitPython API¶
Author(s): cefn
An object that automatically deinitializes hardware with a context manager.
Free any hardware used by the object.
Object supporting CircuitPython-style of static symbols as seen with Direction.OUTPUT, Pull.UP
Inspects attributes of the class for instances of the class and returns as key,value pairs mirroring dict#iteritems
An object that must be locked to prevent collisions on a microcontroller resource.
Attempt to grab the lock. Return True on success, False if the lock is already taken.
Release the lock so others may use the resource.
Patch modules that may be different due to the platform.
Allows useful indirection to test Pin naming logic by switching platform in testing or provide bootstrapping logic for board identification where auto-detection is not feasible (e.g. multiple ESP8266 boards architecturally identical). Once runtime environment is established, can choose various routes to make available and re-export common modules and operations, depending on platform support
analogio
- Analog input and output control¶
See analogio
in CircuitPython for more details. Not supported by all boards.
Author(s): Carter Nelson, Melissa LeBlanc-Williams
bitbangio
- Bitbanged bus protocols¶
See bitbangio
in CircuitPython for more details.
Author(s): cefn
Bitbang/Software I2C implementation
Deinitialization
Initialization
Read from a device at specified address into a buffer
Scan for attached devices
Write to a device at specified address from a buffer
Bitbang/Software SPI implementation
Update the configuration
Read from the SPI device into a buffer
Write to the SPI device
Write to the SPI device and read from the SPI device into a buffer
board
- Define ids for available pins¶
See board
in CircuitPython for more details.
Author(s): cefn
busio
- Bus protocol support like I2C and SPI¶
See busio
in CircuitPython for more details.
Author(s): cefn
Busio I2C Class for CircuitPython Compatibility. Used for both MicroPython and Linux.
NOTE: Frequency has no effect on Linux systems. The argument is only there for compatibility.
Deinitialization
Initialization
Read from a device at specified address into a buffer
Scan for attached devices
Write to a device at specified address from a buffer
“Write to a device at specified address from a buffer then read from a device at specified address into a buffer
Busio SPI Class for CircuitPython Compatibility. Used for both MicroPython and Linux.
Update the configuration
Deinitialization
Return the baud rate if implemented
Read from the SPI device into a buffer
Write to the SPI device
Write to the SPI device and read from the SPI device into a buffer
Busio UART Class for CircuitPython Compatibility. Used for MicroPython and a few other non-Linux boards.
Parity Enumeration
Deinitialization
Read from the UART
Read from the UART into a buffer
Read a line of characters up to a newline character from the UART
Write to the UART from a buffer
digitalio
- Digital input and output control (GPIO)¶
See digitalio
in CircuitPython for more details.
Author(s): cefn
DigitalInOut CircuitPython compatibility implementation
Deinitialize the Digital Pin
Get or Set the Digital Pin Direction
The Digital Pin Drive Mode
The pin pull direction
Switch the Digital Pin Mode to Input
Switch the Digital Pin Mode to Output
The Digital Pin Value
Direction Enumeration
Drive Mode Enumeration
PullUp/PullDown Enumeration
keypad
- Support for scanning keys and key matrices¶
See keypad
in CircuitPython for more details.
Author(s): Melissa LeBlanc-Williams
A key transition event.
The key number.
True
if the event represents a key down (pressed) transition. The opposite of released
.
True
if the event represents a key up (released) transition. The opposite of pressed
.
A queue of Event
objects, filled by a keypad
scanner such as Keys
or KeyMatrix
.
You cannot create an instance of EventQueue
directly. Each scanner creates an instance when it is created.
Clear any queued key transition events. Also sets overflowed
to False
.
Return the next key transition event. Return None
if no events are pending.
Note that the queue size is limited; see max_events
in the constructor of a scanner such as Keys
or KeyMatrix
. If a new event arrives when the queue is full, the event is discarded, and overflowed
is set to True
.
Store the next key transition event in the supplied event, if available, and return True
. If there are no queued events, do not touch event
and return False
.
The advantage of this method over get()
is that it does not allocate storage. Instead you can reuse an existing Event
object.
Note that the queue size is limited; see max_events
in the constructor of a scanner such as Keys
or KeyMatrix
.
:return True
if an event was available and stored, False
if not. :rtype: bool
Record a new event
True
if an event could not be added to the event queue because it was full. (read-only) Set to False
by clear()
.
Manage a 2D matrix of keys with row and column pins.
Stop scanning and release the pins.
The number of keys that are being scanned. (read-only)
Reset the internal state of the scanner to assume that all keys are now released. Any key that is already pressed at the time of this call will therefore immediately cause a new key-pressed event to occur.
Manage a set of independent keys.
Stop scanning and release the pins.
The number of keys that are being scanned. (read-only)
Reset the internal state of the scanner to assume that all keys are now released. Any key that is already pressed at the time of this call will therefore immediately cause a new key-pressed event to occur.
Manage a set of keys attached to an incoming shift register.
Stop scanning and release the pins.
The EventQueue
associated with this Keys
object. (read-only)
The number of keys that are being scanned. (read-only)
Reset the internal state of the scanner to assume that all keys are now released. Any key that is already pressed at the time of this call will therefore immediately cause a new key-pressed event to occur.
microcontroller
- Pin references and cpu functionality¶
Author(s): Melissa LeBlanc-Williams
Sleep for delay usecs.
micropython
- MicroPython Specific Decorator Functions¶
Author(s): cefn
User is attempting to use an inline assembler
Emulate making a constant
Emulate making a native
User is attempting to use a viper code emitter
neopixel_write
- NeoPixel precision timed writing support¶
See neopixel_write
in CircuitPython for more details. Currently supported on Raspberry Pi only.
Author(s): ladyada
Write buf out on the given DigitalInOut.
onewireio
- 1-wire bus protocol¶
See onewireio
in CircuitPython for more details.
Author(s): cefn
Stub class for OneWire, which is currently not implemented
Deinitialize the OneWire bus and release any hardware resources for reuse.
Read in a bit
Reset the OneWire bus and read presence
Write out a bit based on value.
pulseio
- Pulse Width Modulation input and output control¶
See pulseio
in CircuitPython for more details. Not supported by all boards.
Author(s): Melissa LeBlanc-Williams
pwmio
- Support for PWM based protocols¶
See pwmio
in CircuitPython for more details. Not supported by all boards.
Author(s): Melissa LeBlanc-Williams
rainbowio
- Provides the colorwheel()
function¶
See rainbowio
in CircuitPython for more details. Not supported by all boards.
Author(s): Kattni Rembor, Carter Nelson
A colorwheel. 0
and 255
are red, 85
is green, and 170
is blue, with the values between being the rest of the rainbow.
color_value (int) – 0-255 of color value to return
tuple of RGB values
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4