Search found 3197 matches

by dhylands
Wed Jul 17, 2019 2:49 am
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 34
Views: 456

Re: main.py does not appear to working after boot

Just as a sanity test, I compiled the latest MicroPython for ESP32 and flashed my SparkFun ESP32 Thng. I edited the default boot.py to be: # This file is executed on every boot (including wake-boot from deepsleep) #import esp #esp.osdebug(None) #import webrepl #webrepl.start() print('Executing boot....
by dhylands
Wed Jul 17, 2019 1:04 am
Forum: ESP32 boards
Topic: main.py does not appear to working after boot
Replies: 34
Views: 456

Re: main.py does not appear to working after boot

I normally put prints in boot.py and main.py if I'm trying to verify what's getting executed.
by dhylands
Sat Jul 13, 2019 12:00 am
Forum: Other Boards
Topic: micropython on PPC target
Replies: 1
Views: 59

Re: micropython on PPC target

You should probably start with the minimal port, and modify it to get something simple working.

You'll need to implement the uart_core.c function for your MCU. You'll then be able to get a very basic Micropython REPL on the uart port.
by dhylands
Fri Jul 12, 2019 2:48 pm
Forum: ESP32 boards
Topic: date time system
Replies: 4
Views: 142

Re: date time system

If you happen to be using rshell, it sets the time of the board to match the time of the PC.
by dhylands
Mon Jul 08, 2019 10:01 pm
Forum: Other Boards
Topic: [TM4C123] REPL debugging info
Replies: 9
Views: 290

Re: [TM4C123] REPL debugging info

If repl_display_debugging_info is set to a non-zero value then I think it will do what you're seeing. repl_display_debugging_info is declared static, and winds up being in the .bss which means that its the responsibility of the runtime library code which calls main to clear the entire bss. So the fi...
by dhylands
Fri Jul 05, 2019 6:06 pm
Forum: General Discussion and Questions
Topic: reconfigure UART on the ESP8266
Replies: 5
Views: 142

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: 79

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: 216

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: 94

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: 112

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)