Search found 169 matches

by Christian Walther
Sat May 28, 2022 6:54 pm
Forum: Programs, Libraries and Tools
Topic: Confused about micropython's utf-8 encoding
Replies: 4
Views: 4309

Re: Confused about micropython's utf-8 encoding

I suspect your source file (the first code block – you don’t show any >>> prompts so I guess this is a source file, not REPL input) isn’t actually encoded in UTF-8. Can you open it in a hex editor and see what bytes are there in the '冯' string literal? With the amount of encoding-unaware tools aroun...
by Christian Walther
Sat Apr 16, 2022 9:16 am
Forum: General Discussion and Questions
Topic: Decoding strings
Replies: 2
Views: 956

Re: Decoding strings

You are getting the same thing from both: >>> '“45”' == '\u201c45\u201d' True They just format it differently: one prints the curly quote literally, the other as a Unicode escape sequence. So whatever it is that you want to do with the value, you should be able to do it on MicroPython in exactly the...
by Christian Walther
Sun Feb 06, 2022 5:42 pm
Forum: ESP32 boards
Topic: ULP I2C sensor readings.
Replies: 8
Views: 6326

Re: ULP I2C sensor readings.

In can’t help you with I2C, but at a quick glance it looks like you’re not initializing r1.
by Christian Walther
Sat Feb 05, 2022 1:44 pm
Forum: ESP32 boards
Topic: ULP I2C sensor readings.
Replies: 8
Views: 6326

Re: ULP I2C sensor readings.

I think RTC_IO_SAR_I2C_XXX_SEL_M values cause the error from header files, most of XXX_M has shift(<<) calcuration and some of them couldn't be converted. I manually put calcurated values, but there is "OverflowError: overflow converting long int to machine word" I found WRITE_RTC_REG(SENS_SAR_SLAV...
by Christian Walther
Fri Feb 04, 2022 10:19 pm
Forum: ESP32 boards
Topic: ULP I2C sensor readings.
Replies: 8
Views: 6326

Re: ULP I2C sensor readings.

I don’t think SENS_I2C_SLAVE_ADDR0 is the register’s address, that looks more like a mask. Correlating esp32_technical_reference_manual_en.pdf section 30.8.1 to the stuff in the headers, try # from soc/soc.h #define DR_REG_SENS_BASE 0x3ff48800 # from soc/sens_reg.h #define SENS_SAR_SLAVE_ADDR1_REG (...
by Christian Walther
Mon Aug 23, 2021 11:47 am
Forum: ESP8266 boards
Topic: Webrepl will not allow password entry
Replies: 3
Views: 2016

Re: Webrepl will not allow password entry

The password you enter is not displayed on the terminal, is that what’s throwing you off? You are expected to type the password blindly and press the return key.
by Christian Walther
Thu Aug 19, 2021 9:34 pm
Forum: ESP8266 boards
Topic: ESP8266/ESP32 Code-Änderung über WLAN möglich ?
Replies: 2
Views: 1770

Re: ESP8266/ESP32 Code-Änderung über WLAN möglich ?

Ja, WebREPL kann Dateien übertragen und gibt Zugriff auf die REPL. Es gibt auch FTP-Server, aber damit habe ich keine Erfahrung.
by Christian Walther
Mon Jul 26, 2021 9:03 pm
Forum: ESP8266 boards
Topic: Won't wake up from Deep Sleep
Replies: 31
Views: 10866

Re: Won't wake up from Deep Sleep

Another interesting thing is that the board does reset, but only once, because the LED on the board flashes after the amount of time I set for deep sleep. I've changed it from 3 seconds to 15 seconds and the LED flashes at the correct time. So why would the board reset but the program not run again...
by Christian Walther
Sun Jul 25, 2021 10:19 am
Forum: Development of MicroPython
Topic: Minor potential inconsistency in the documentation
Replies: 3
Views: 2618

Re: Minor potential inconsistency in the documentation

This refers to the following section: https://docs.micropython.org/en/latest/esp8266/tutorial/pins.html#external-interrupts The section stars with All pins except number 16 can be configured to trigger a hard interrupt if their input changes. You can set code (a callback function) to be executed on...
by Christian Walther
Fri Jul 23, 2021 2:55 pm
Forum: Development of MicroPython
Topic: Native emitter deep dive
Replies: 2
Views: 2652

Re: Native emitter deep dive

Very cool, thank you Jim and Scott! Apart from the technical insights, it’s also great to see the collaboration between the MicroPython and CircuitPython teams.