Search found 3212 matches

by dhylands
Fri Jul 05, 2019 6:06 pm
Forum: General Discussion and Questions
Topic: reconfigure UART on the ESP8266
Replies: 5
Views: 236

Re: reconfigure UART on the ESP8266

Not necessarily. The ESP8266's that have an onboard USB-to-serial adapter on them have the TX line from the USB-to-serial converter hard wired to the RX pin on UART0, so if you try to use that physical pin for a different purpose then you'll have 2 sources trying to drive the pin, and you won't get ...
by dhylands
Thu Jul 04, 2019 3:00 pm
Forum: General Discussion and Questions
Topic: REPL - disable echo
Replies: 1
Views: 133

Re: REPL - disable echo

The closest that you can get is to use the raw repl.
http://docs.micropython.org/en/latest/r ... l#raw-mode
by dhylands
Wed Jul 03, 2019 7:36 pm
Forum: ESP8266 boards
Topic: [solved]Run two functions together
Replies: 6
Views: 311

Re: Run two functions together

You should read the tutorial on uasyncio over here: https://github.com/peterhinch/micropython-async
by dhylands
Tue Jul 02, 2019 5:43 am
Forum: MicroPython pyboard
Topic: Can't see pyboard in DFU mode after firmware update
Replies: 4
Views: 170

Re: Can't see pyboard in DFU mode after firmware update

You need to connect the DFU pin (aka BOOT0) to 3.3v and press reset to get it in DFU mode, or from the REPL execute pyb.bootloader() On the pyboard BOOT0 is located right next to a 3.3v pin. If you refer to this photo http://docs.micropython.org/en/latest/pyboard/quickref.html BOOT0 is in the lower ...
by dhylands
Sat Jun 29, 2019 9:30 pm
Forum: ESP32 boards
Topic: PIR Sensor + LED || Is this code well implemented?
Replies: 2
Views: 198

Re: PIR Sensor + LED || Is this code well implemented?

You may want to use micropython.schedule, then you don't need to poll in your main code.

See: https://docs.micropython.org/en/latest/ ... n-schedule (and the rest of the page is all about writing ISRs)
by dhylands
Fri Jun 28, 2019 9:49 pm
Forum: MicroPython pyboard
Topic: minimal port dosent work on pyboardV1.1
Replies: 4
Views: 220

Re: minimal port dosent work on pyboardV1.1

The minimal port worked fine on my Pyboard 1.1. Things to note: - You need to connect the USB serial TX to UART1 RX (i.e. pin X10) - you need to cross TX and RX - don't connect TX to TX - You need to connect the USB serial RX to UART1 TX (i.e. pin X9) - You need to connect Ground from the USB serial...
by dhylands
Fri Jun 28, 2019 4:14 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

I know you could add a SPI RAM and use it to read/write from (like a disk). I don't know if the stm32 used in the SF2 will transparently make it behave like internal RAM. You'll need to read through the datasheet and see if it supports something like that.
by dhylands
Fri Jun 28, 2019 2:35 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

I'm not sure - you'd need to check the datasheet for the SF2 and find out what it supports for external RAM, and then see if the pins to support that are available on WBUS. And even then, I don't know what state micropython is in as far as supporting external RAM on the stm32. You'd probably need to...
by dhylands
Fri Jun 28, 2019 1:39 am
Forum: Pyboard D-series
Topic: SPI FLASH 2 in PYBD_SF2
Replies: 9
Views: 348

Re: SPI FLASH 2 in PYBD_SF2

RAM is voltaile and can be changed. Flash is non-volatile and can't be changed like RAM. In order to change flash, you need to erase a block first and then write the contents of the block with the new data. When you power off your MCU flash retains its contents and RAM doesn't. On the SF2, one of th...
by dhylands
Thu Jun 27, 2019 9:33 pm
Forum: Programs, Libraries and Tools
Topic: Became a good pyhton programmer
Replies: 4
Views: 339

Re: Became a good pyhton programmer

Normally, when you write to a register there is no reason to write it a second time. I would consider it very strange to have to write it a second time and read it back to verify, but probably not unheard of. These types of behaviours will very from device to device. The best way to determine the co...