openmv4 firmware version3.6 support deque

Discussion related to "under the hood" OpenMV topics.
skylin008
Posts: 65
Joined: Mon Mar 13, 2017 10:18 pm

openmv4 firmware version3.6 support deque

Postby skylin008 » Sat Feb 29, 2020 10:55 pm

hi iabdalkader, I had update the openmv4 firmware,the version is 3.6, the detail is : MicroPython v1.12-omv OpenMV v3.6.0 2020-02-07; OPENMV4-STM32H743. But when I used the uasyncio,the error as show: AttributeError: 'module' object has no attribute 'deque'.Does version 3.6 had include the deque? Thanks !
The code as follow:
Code: Select all

import uasyncio as asyncio
from pyb import UART
uart = UART(3, 9600)


async def sender():
swriter = asyncio.StreamWriter(uart, {})
while True:
await swriter.awrite('Hello uart\n')
await asyncio.sleep(2)

async def receiver():
sreader = asyncio.StreamReader(uart)
while True:
res = await sreader.readline()
print('Recieved', res)

loop = asyncio.get_event_loop()
loop.create_task(sender())
loop.create_task(receiver())
loop.run_forever()
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: openmv4 firmware version3.6 support deque

Postby iabdalkader » Sun Mar 01, 2020 5:36 am

No it will be available in the next release.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests