Search found 9 matches

by sloathog
Thu Aug 18, 2022 10:24 am
Forum: ESP8266 boards
Topic: uasyncio.task missing in 1M build
Replies: 2
Views: 19920

Re: uasyncio.task missing in 1M build

I think I found my own answer, will give it a try and let you know. diff GENERIC/mpconfigboard.h GENERIC_1M/mpconfigboard.h < #define MICROPY_PY_FSTRINGS (1) 19d17 < #define MICROPY_PY_UASYNCIO (1) Need to add #define MICROPY_PY_UASYNCIO (1) to GENERIC_1M/mpconfigboard.h
by sloathog
Thu Aug 18, 2022 10:20 am
Forum: ESP8266 boards
Topic: uasyncio.task missing in 1M build
Replies: 2
Views: 19920

uasyncio.task missing in 1M build

Hi, Issue I have is based on the two errors below: 1st Error: ImportError: no module named 'uasyncio' 2nd Error: ImportError: no module named 'uasyncio.task' I'm trying to make a custom build on 1.19.1 to freeze my modules for a 1M board. 1st error: I noticed the uasyncio is not included at all, whi...
by sloathog
Fri Sep 24, 2021 1:50 pm
Forum: ESP32 boards
Topic: NEC_IR/aremote conflict with asyncio.start_server
Replies: 7
Views: 2589

Re: NEC_IR/aremote conflict with asyncio.start_server

Just out of interest, I ran the following code: Purpose was to test how long await asyncio.sleep_ms(0) takes to run 1000 times. I performed this with asyncio.start_server running, then closed the server and ran again. ~950us for await asyncio.sleep_ms(0) per while loop iteration, each time without t...
by sloathog
Fri Sep 24, 2021 1:09 pm
Forum: ESP32 boards
Topic: NEC_IR/aremote conflict with asyncio.start_server
Replies: 7
Views: 2589

Re: NEC_IR/aremote conflict with asyncio.start_server

I'm using the asyncio.start_server(client_server, '0.0.0.0', 80) - which I assume is non-blocking; so I don't understand why it's blocking. I came up with a solution - i swapped from IRQ to hard polling: When the IRQ callback is called, I then clear the IRQ handler and process IR input synchronously...
by sloathog
Fri Sep 24, 2021 8:19 am
Forum: ESP32 boards
Topic: NEC_IR/aremote conflict with asyncio.start_server
Replies: 7
Views: 2589

Re: NEC_IR/aremote conflict with asyncio.start_server

Thanks for the quick reply, but no, not the same person and apparently not the same issue. Same version: MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32 If I understand the instruction, I connected Pin 23 direct to GND and check to see if I'm getting an irq callbacks while running wifi. Res...
by sloathog
Thu Sep 23, 2021 11:34 am
Forum: ESP32 boards
Topic: NEC_IR/aremote conflict with asyncio.start_server
Replies: 7
Views: 2589

NEC_IR/aremote conflict with asyncio.start_server

I'm have a Lolin D32 that I'm using to control some LEDS, I added a web server to allow for control over wifi - all is working fine. I've tried to add a TSOP4838 to allow for a NEC IR remote to turn the lights on/off as well, but got stuck. Remote is a standard NEC remote with 16 bit address, so I h...
by sloathog
Fri Jun 26, 2020 3:50 pm
Forum: ESP8266 boards
Topic: esp-open-sdk build error - python is missing or unusable (debian)
Replies: 6
Views: 10234

Re: esp-open-sdk build error - python is missing or unusable (debian)

Had the same issue, based on a fresh install of Ubuntu 20.04 Focal Focal comes with python3.8 only. I had already installed python3.7, which I use with buster on a RPI. make PYTHON=python3 did not work. I had to use apt-get to install python2, then add all python versions through update alternatives...
by sloathog
Wed Mar 11, 2020 8:14 am
Forum: ESP32 boards
Topic: Sparkfun ESP32 Thing with DS18b20 not working
Replies: 4
Views: 3044

Re: Sparkfun ESP32 Thing with DS18b20 not working

Thanks for the tip, but I fixed my issue. After 1.5 hours playing and replacing all parts, I noticed that the connection from 3.3v pin on the D32 to the power rail on the breadboard was at an angle - I'm must have knocked it at some point. Measuring with the multi-meter, the voltage was ~+2.5V, not ...
by sloathog
Tue Mar 10, 2020 10:49 pm
Forum: ESP32 boards
Topic: Sparkfun ESP32 Thing with DS18b20 not working
Replies: 4
Views: 3044

Re: Sparkfun ESP32 Thing with DS18b20 not working

kenglover, Any luck with a solution? I'm facing the same problem.... I have two boards, Lolin D32 and a Lolin D1. On the D1, I can get valid readings from the DS18B20; so I know the sensor is working. on the D32, I get 85 degrees - which I understand is bus read failure. I have tried multiple GPIO a...