Search found 104 matches

by tve
Sat Apr 04, 2020 7:19 am
Forum: ESP32 boards
Topic: Neopixel compatible pins
Replies: 6
Views: 70

Re: Neopixel compatible pins

The issue is that the GPIO register used only covers gpio 0 thru 31. A different register would have to be used. Would be a pretty small code change, but has to be done carefully to keep the timing right. As-is the only two gpios that are capable of output and that don't work are 32 and 33. Thank y...
by tve
Sat Apr 04, 2020 7:18 am
Forum: ESP32 boards
Topic: Neopixel compatible pins
Replies: 6
Views: 70

Re: Neopixel compatible pins

OutoftheBOTS_ wrote:
Sat Apr 04, 2020 6:39 am
Some of the pins on ESP32 are only input pins. Off memory it is all the pin from 32 up that are like that
Nope, 32 and 33 are I/O.
by tve
Sat Apr 04, 2020 6:08 am
Forum: ESP32 boards
Topic: Neopixel compatible pins
Replies: 6
Views: 70

Re: Neopixel compatible pins

2. If there is a way it might be possible to get it working on GPIO33 (e.g. by disabling a device) The issue is that the GPIO register used only covers gpio 0 thru 31. A different register would have to be used. Would be a pretty small code change, but has to be done carefully to keep the timing ri...
by tve
Sat Apr 04, 2020 4:15 am
Forum: ESP32 boards
Topic: uart.write() outputs only byte
Replies: 1
Views: 32

Re: uart.write() outputs only byte

Either use b'AT' or something like "ATfoo;".encode(). If you're sending binary data it's best to do everything using bytes and bytearray.
by tve
Fri Apr 03, 2020 10:25 pm
Forum: General Discussion and Questions
Topic: STM32 machine.I2C.readfrom_into does not match documentation
Replies: 4
Views: 75

Re: STM32 machine.I2C.readfrom_into does not match documentation

Ah, if you want to file a bug report then github is the best place...
by tve
Fri Apr 03, 2020 5:53 pm
Forum: General Discussion and Questions
Topic: STM32 machine.I2C.readfrom_into does not match documentation
Replies: 4
Views: 75

Re: STM32 machine.I2C.readfrom_into does not match documentation

Sure there is: `bool stop = (n_args == 3) ? true : mp_obj_is_true(args[3]);`.
I'm not sure how KW args are handled, I wonder whether the problem is that to specify a stop arg you need to use `self._i2c.readfrom_into(self._addr, mvarray[start:end], stop)`, i.e., no KW for stop.
by tve
Fri Apr 03, 2020 4:06 am
Forum: ESP8266 boards
Topic: Calling an API in a loop is crashing urequests
Replies: 4
Views: 81

Re: Calling an API in a loop is crashing urequests

I would put my money on a memory allocation failure... See also https://github.com/micropython/micropython/issues/5783 which sounds very similar to me. I try not to say this too often, but the money saved on an esp8266 vs. an esp32 is money you'll spend on aspirin to cure the headaches it causes you...
by tve
Thu Apr 02, 2020 1:10 am
Forum: ESP32 boards
Topic: MPU9250 Readings Erratic When Device is Not Moving
Replies: 3
Views: 71

Re: MPU9250 Readings Erratic When Device is Not Moving

What are the vertical axis units? Looks to me like there's a bit of noise, that's all, probably within the expected spec of the device. You have accel Z at -1 gravity, so that's good, accel Y has <0.01g of noise, is that out of spec? accel X is hard to tell 'cause you have that spike, probably bumpe...
by tve
Wed Apr 01, 2020 8:20 pm
Forum: ESP32 boards
Topic: ESP32 using OTA updates
Replies: 3
Views: 1307

Re: ESP32 using OTA updates

I believe the OP wants to update the python files in the filesystem, not update the MicroPython firmware itself? In that case the project linked by the OP seems appropriate. @straga: you may want to update your OTA code to use the esp32.Partition class in order to select the next partition and to wr...
by tve
Wed Apr 01, 2020 5:19 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamReader not found ?
Replies: 17
Views: 358

Re: uasyncio - StreamReader not found ?

...Maybe it'll get some more attention when Peter Hinch opens an issue/PR about it. I thought I'd let initial bug fixing get done before making feature requests. These are what I'd like to see done: Provide a means of prioritising I/O on a per-interface basis. (Rather than the all-or-nothing approa...