Connect the DUP class to dupterm.

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
forester3
Posts: 19
Joined: Sat Oct 21, 2017 5:01 am

Connect the DUP class to dupterm.

Post by forester3 » Wed Jul 04, 2018 2:47 am

Hi,

DUP class is in this topic.
viewtopic.php?f=2&t=3298&p=23087&hilit=dupterm#p23087

With the latest uos_dupterm, I can not connect the DUP class to dupterm.
Is this normal?

Error message is below:
OSError: stream operation not supported

In v1.9.4 stm32F4 micropython, I can connect the DUP class to dupterm.

Damien
Site Admin
Posts: 581
Joined: Mon Dec 09, 2013 5:02 pm

Re: Connect the DUP class to dupterm.

Post by Damien » Wed Jul 04, 2018 10:36 am

There was a recent change to how this stuff works behind the scenes and you now need to derive the DUP class from io.IOBase: class DUP(io.IOBase) ...

forester3
Posts: 19
Joined: Sat Oct 21, 2017 5:01 am

Re: Connect the DUP class to dupterm.

Post by forester3 » Wed Jul 04, 2018 2:28 pm

Hello,

Thank you for your answer.
I am preparing the LcdConsole class which works on F7-disco LCD now.
So, I wanted to know how to connect to the new dupterm.

Post Reply