Supported features¶
The PSoC6 port is currently configured to configuration level MICROPY_CONFIG_ROM_LEVEL_FULL_FEATURES
with a few additional settings applied, thus enabling most standard modules as listed in the following.
Enabled modules¶
- Python standard modules and libraries
cmath
gc
math
array
asyncio
binascii
collections
errno
hashlib
heapq
io
json
os
random
re
select
socket
ssl
struct
sys
time
zlib
- Micropython specific modules and libraries
framebuf
- machine
Pin
I2C
RTC
SoftI2C
SPI
SoftSPI
PWM
Timer
ADC
ADCBlock
micropython
cryptolib
uctypes
network
- Port specific modules and micro-libraries
psoc6 (flash support)
Not yet enabled¶
- Python standard modules and libraries
_thread
- Micropython specific modules and libraries
btree
bluetooth
Table configuration details below lists specific settings deviating from the configuration as per config level as well as functionality not yet implemented:
Module |
Details |
---|---|
gc |
Option |
hashlib |
Options |
os |
Support for LFS2 and FAT, LFS2 enabled by default. FS mounted on external flash at “/flash”. Options Function urandom() not yet implemented. Requires implementing mp_uos_urandom() and setting option
|
random |
Function seed() not yet implemented. |
re |
Options |
socket |
Options |
ssl |
Options |
sys |
Options |
time |
Enabled through HAL functions based on machine.RTC module. Option |
cryptolib |
Options |
machine |
Functions not yet implemented: lightsleep(), deepsleep(), wake_reason(), time_pulse_us(), rng(). Constants not yet implemented : WLAN_WAKE, PIN_WAKE, RTC_WAKE, IDLE, SLEEP, DEEPSLEEP. Submodules/classes not yet implemented: mem, Signal, SD, SDCard, SoftSPI, SPI, Timer, UART, WDT. |
machine.Pin |
Functions not yet implemented: drive(), mode(), pull(). Constants not yet implemented: ALT, ALT_OPEN_DRAIN, PULL_UP, PULL_DOWN, PULL_HOLD, LOW_POWER, MED_POWER, HIGH_POWER, IRQ_LOW_LEVEL, IRQ_HIGH_LEVEL. |
machine.I2C |
Option |
machine.RTC |
Functions not yet implemented: alarm(), alarm_left(), cancel(), irq(). Constants not yet implemented: ALARM0. |
machine.SoftI2C |
Option |
machine.PWM |
option option |
machine.SoftSPI |
Option |
machine.ADC |
ADC.init() not implemented. |
machine.ADCBlock |
All functions implemented. |
machine.Timer |
All functions implemented. |
machine.SPI |
Option |
machine.I2S |
Non Blocking Mode & asyncio mode is not supported |
psoc6 |
Option to enable the external instead of the internal flash: Option to enable the port specific debug logger: |
network |
Option Functions not yet implemented: phy_mode(). Classes not yet implemented: LAN. |
network.WLAN |
Mode not yet implemented: STA_AP. Functions not yet implemented: config. |