UART inverted

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: UART inverted

Post by Roberthh » Mon Feb 03, 2020 8:49 pm

That is the Generic device. I have built both versions. You'll find the binaries here: https://github.com/robert-hh/Shared-Stuff

use: firmware_ESP32_GENERIC_FLOW_CONTROL.bin and load it the usual way.

Note:
The frozen bytecode has some of my favorite stuff, which I did not remove, like upysh ("from upysh import *") with some ix-like commands (ls, cat, pwd..) and the on-board editor pye ( "from pye import pye" and then "pye(filename)").

MaFr
Posts: 12
Joined: Sun Feb 02, 2020 3:52 pm

Re: UART inverted

Post by MaFr » Mon Feb 03, 2020 9:09 pm

Yep, it works like a charm :-) So, I have tested in non-inverted mode only and its working correctly.
Thank you so much again for your fantastic help. Keep your project up. Its a really great fun.

uxhamby
Posts: 34
Joined: Thu Nov 14, 2019 9:47 pm

Re: UART inverted

Post by uxhamby » Thu Aug 13, 2020 9:08 pm

Did this fix ever get added to the production version of uPython ?

FWIW, I am currently using version='v1.12-87-g96716b46e on 2020-01-26'.

Thanks,

Brian H.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: UART inverted

Post by Roberthh » Fri Aug 14, 2020 5:36 am

Inverted mode is supported at least by a recent daily build. User the option invert=<modes>, where modes are:
INV_TX, INV_RX, INV_RTS or INV_CTS, which are or'ed. Example:

from machine import UART
uart=UART(1, 9600, invert=INV_RX | INV_TX)

Post Reply