Search found 30 matches

by T-Wilko
Wed May 27, 2020 4:25 am
Forum: General Discussion and Questions
Topic: _thread module status/documentation?
Replies: 6
Views: 4084

Re: _thread module status/documentation?

The threads are supported but there's very little around them. I believe that almost everyone is focused on asyncio, which is a much better way to do most of the things threads are used for, IMHO. My experience with uasyncio is fairly limited, could you shed a light on why asyncio is better than th...
by T-Wilko
Tue May 26, 2020 4:17 pm
Forum: General Discussion and Questions
Topic: _thread module status/documentation?
Replies: 6
Views: 4084

_thread module status/documentation?

Hi all, I've been super happy using the Loboris esp32 uPy port in that so many of the extra built-in libraries work smoothly and without a hitch. Since development by Boris has stopped on the port, I'm hoping to retain alot of the functionalities of it, while reverting to the main uPy master branch....
by T-Wilko
Sat May 23, 2020 3:51 pm
Forum: Drivers for External Components
Topic: Waveshare 2.13in display v2 driver
Replies: 16
Views: 19673

Re: Waveshare 2.13in display v2 driver

I'm not entirely sure I've set the correct SPI pins, I've cobbled the pin numbers together from several sources, none of which official. The official Lilygo website (which btw is blocked by my employer's proxy!) isn't much help in that regard either. Have a read of their GitHub repo . That link is ...
by T-Wilko
Tue May 19, 2020 3:15 am
Forum: General Discussion and Questions
Topic: Lorawan TTGO board - 'no module named ttn'
Replies: 3
Views: 6470

Re: Lorawan TTGO board - 'no module named ttn'

No worries! Just out of curiosity, did you manage to get the TTGO board's LoRa functionality working?
I've been looking at getting my TTGO T-Beam's LoRa module functional sometime soon, and I also was eyeing off that repo that you first linked to.
by T-Wilko
Fri May 15, 2020 9:57 am
Forum: General Discussion and Questions
Topic: Lorawan TTGO board - 'no module named ttn'
Replies: 3
Views: 6470

Re: Lorawan TTGO board - 'no module named ttn'

matt42 wrote:
Fri May 08, 2020 3:02 pm

Code: Select all

from ttn.ttn_au import TTN_FREQS
ttn_config.py and ttn_au.py are both there
I don't know exactly how you've stored your on-board files, but shouldn't the code be this?

Code: Select all

from ttn_au import TTN_FREQS
by T-Wilko
Wed May 13, 2020 3:58 pm
Forum: Drivers for External Components
Topic: IL0389 ePaper Driver
Replies: 0
Views: 1715

IL0389 ePaper Driver

Hi everyone, On a bit of a roll recently with ePaper IC's so I've started writing up my own for ones that lack pre-existing micropython code. Recently obtained a 4.2inch ePaper display directly from the friendly folk at GooDisplay: http://www.e-paper-display.com/products_detail/productId=321.html an...
by T-Wilko
Mon May 04, 2020 4:50 pm
Forum: ESP32 boards
Topic: ADC settings bug
Replies: 5
Views: 3005

Re: ADC settings bug

In fact your code is not using two ADCs. If uses one ADC with two port pins multiplexed to it. Therefore you get the same ADC setting on both pins. So either you change the setting each time you change the pin, or you proceed with 12 bit and discard the lower bits if required. With the poor perform...
by T-Wilko
Thu Apr 30, 2020 1:19 pm
Forum: Programs, Libraries and Tools
Topic: How to import my driver(e.g private ".py" file)
Replies: 3
Views: 2265

Re: How to import my driver(e.g private ".py" file)

Hi there, You are correct in your observation that MicroPython reads main.py, but it actually reads a boot.py before that as well. To import a driver file (e.g. 'driver.py' that you have uploaded to the board's flash already) you do exactly what you do in Python and simply import driver and from the...
by T-Wilko
Thu Apr 30, 2020 8:07 am
Forum: ESP32 boards
Topic: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper
Replies: 12
Views: 8803

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Do you have an working example for framebuf on how to display in landscape mode, using your code version? Hi Mike, Not currently, but I'll make a second driver file for landscape usage (or perhaps add a user inputted parameter to indicate orientation) when I get the time soon. I'll post a link to i...
by T-Wilko
Tue Apr 28, 2020 6:47 am
Forum: ESP32 boards
Topic: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper
Replies: 12
Views: 8803

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Hi Werner, After many afternoons toiling at the datasheet, I've got it working. The following code should give you a non mirrored, well aligned image. The image may appear to be upside down, but I believe that's just the way that Lolin has mounted the EPD on to the PCB. from micropython import const...