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.
- 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)
- Python standard modules and libraries
- _thread
- Micropython specific modules and libraries
- btree
- bluetooth
Table configuration details <table_mpy_configuration>
below lists specific settings deviating from the configuration as per config level as well as functionality not yet implemented:
Module | Details |
---|---|
gc | Option MICROPY_ENABLE_GC enabled. |
hashlib | Options MICROPY_PY_UHASHLIB_MD5 , MICROPY_PY_UHASHLIB_SHA1 , MICROPY_PY_UHASHLIB_SHA256 enabled. |
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 MICROPY_PY_URE_DEBUG , MICROPY_PY_URE_MATCH_GROUPS , MICROPY_PY_URE_MATCH_SPAN_START_END enabled. |
socket | Options MICROPY_PY_USOCKET enabled. |
ssl | Options MICROPY_PY_USSL enabled. Has 2 failing tests. |
sys | Options MICROPY_PY_SYS_EXC_INFO enabled. |
time | Enabled through HAL functions based on machine.RTC module. Option MICROPY_PY_UTIME_MP_HAL enabled. |
cryptolib | Options MICROPY_PY_UCRYPTOLIB , MICROPY_PY_UCRYPTOLIB_CTR , MICROPY_PY_UCRYPTOLIB_CONSTS enabled. |
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 MICROPY_PY_MACHINE_I2C enabled. |
machine.RTC | Functions not yet implemented: alarm(), alarm_left(), cancel(), irq(). Constants not yet implemented: ALARM0. |
machine.SoftI2C | Option MICROPY_PY_MACHINE_SOFTI2C enabled. |
machine.PWM | option option |
machine.SoftSPI | Option MICROPY_PY_MACHINE_SOFTSPI enabled. |
machine.ADC | ADC.init() not implemented. |
machine.ADCBlock | All functions implemented. |
machine.Timer | All functions implemented. |
machine.SPI | Option MICROPY_PY_MACHINE_SPI , MICROPY_PY_MACHINE_SPI_MSB , MICROPY_PY_MACHINE_SPI_MSB enabled. |
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 |
|
network.WLAN |
|