Search found 2015 matches

by jimmo
Fri Nov 27, 2020 6:27 am
Forum: ESP32 boards
Topic: usb serial speed
Replies: 4
Views: 145

Re: usb serial speed

iconoclastica wrote:
Thu Nov 26, 2020 11:16 am
Anyway, there's nothing I can do now until I have figured out how to enter the safe mode. I screwed up the boot .py and can't contact it now, not even to reflash it.
I assume you've seen this already, but you need to hold GPIO0 low while resetting. Then esptool.py should be able to connect to it.
by jimmo
Fri Nov 27, 2020 1:19 am
Forum: Programs, Libraries and Tools
Topic: esp8266 UART error
Replies: 9
Views: 191

Re: esp8266 UART error

I fail to init the software UART: FWIW, this is not a "software" UART (there's no soft UARTs in MicroPython), and there's only one full hardware UART on the ESP8266 (which is also used for the REPL). ValueError: expecting a pin The tx and rx kwargs need to be machine.Pin instances, not integers. Bu...
by jimmo
Thu Nov 26, 2020 11:11 am
Forum: General Discussion and Questions
Topic: unable to logon to the forum using my old username
Replies: 1
Views: 38

Re: unable to logon to the forum using my old username

I've tried multiple times to reset my password for user safetyfactorman. Not sure why this is failing. Anyone know how to make this happen? Do you receive the "New password activation" email? I just tested this and I was able to receive the email. I haven't tried actually doing the reset though. Wh...
by jimmo
Thu Nov 26, 2020 11:08 am
Forum: MicroPython pyboard
Topic: Using UART4 in PC10 and PC11 pins
Replies: 7
Views: 110

Re: Using UART4 in PC10 and PC11 pins

But after the PCB was made we notice the USART3 in PC10 and PC11 besides the dedicated pins to uSD. And now I'm stucked with that problem. Can I use the pins PC10 and PC11 in UART mode? Sorry I'm not quite sure what you're asking. Yes, PC10 and PC11 can be set to alternate function for USART3 TX/RX...
by jimmo
Wed Nov 25, 2020 11:22 pm
Forum: ESP32 boards
Topic: usb serial speed
Replies: 4
Views: 145

Re: usb serial speed

So, what's the equivalent of CODE: SELECT ALL Serial.begin(57600); in microPython? On ESP32, I think this has to be done in firmware as UART(0) can't be accessed from Python. (Hopefully someone can correct me if I'm wrong). Unfortunately means you'll have to build the firmware from source. I haven'...
by jimmo
Wed Nov 25, 2020 11:14 pm
Forum: ESP32 boards
Topic: compiling for ESP32 UI like menuconfig
Replies: 1
Views: 74

Re: compiling for ESP32 UI like menuconfig

Hi all, I'm looking for a loboris like compiling environment/setup where we can select easily options for ESP32 firmware like we can do on old that not evolved for 2 years lobo one. I think Loboris did an excellent work making it easy for a user like me not very fluent on esp/idf toolchain and the ...
by jimmo
Tue Nov 24, 2020 10:19 pm
Forum: General Discussion and Questions
Topic: How to exec py-file as a main.py replacement?
Replies: 3
Views: 96

Re: How to exec py-file as a main.py replacement?

In Python, when you "import foo" it executes the contents of foo.py If you want to "re-import" it, you can "del" it from sys.modules first. So if I have foo.py: print("hello") then in main.py I can run for i in range(5): import foo del sys.modules['foo'] to run the contents of foo.py five times. Or ...
by jimmo
Mon Nov 23, 2020 11:42 pm
Forum: Programs, Libraries and Tools
Topic: BLE data - buffer.
Replies: 3
Views: 93

Re: BLE data - buffer.

Yes apeend is set to True, but there is one more thing. When I have the buffer set to len = 100, I will send a packet which has e.g. 80 bytes, then it will send another 80 bytes packet, I receive that 80 bytes will come, 20 from the next packet is added/append, and the rest of the second, i.e. 60, ...
by jimmo
Mon Nov 23, 2020 11:39 pm
Forum: Development of MicroPython
Topic: External C module in Pumbaa
Replies: 1
Views: 59

Re: External C module in Pumbaa

Has anybody experience with including external C code in Pumbaa? I don't know much about Pumbaa. Can you described more about how you added your C module. In upstream MicroPython, the process is described here https://docs.micropython.org/en/latest/develop/cmodules.html although I suspect in order ...
by jimmo
Mon Nov 23, 2020 11:08 am
Forum: Programs, Libraries and Tools
Topic: BLE data - buffer.
Replies: 3
Views: 93

Re: BLE data - buffer.

Should I use some sort of separator / delimiter? If so, what exactly? I'm assuming you're using the buffer mode on the characteristic. (i.e. append=True on https://docs.micropython.org/en/latest/library/ubluetooth.html#ubluetooth.BLE.gatts_set_buffer) What you're describing is a fundamental thing i...