Search found 16 matches
- Sun Feb 13, 2022 5:11 pm
- Forum: ESP32 boards
- Topic: unstable ESP32
- Replies: 7
- Views: 2510
Re: unstable ESP32
I don't know what the problem is here but perhaps it's a poor USB connection? Does the operating system on your PC report any errors related to USB? For example, if you are using Linux on your PC, does running the dmesg command from a terminal window display error messages related to USB?
- Sun Feb 13, 2022 4:58 pm
- Forum: General Discussion and Questions
- Topic: uasyncio run in background
- Replies: 2
- Views: 1108
Re: uasyncio run in background
Calling uasyncio.run(main(Pin(1), Pin(2))) from main.py/boot.py is blocking I would say that main spends most of it's time waiting for a 10_000 millisecond delay to expire rather than saying it is blocking. main doesn't block other coroutines from running while waiting for the 10_000 millisecond de...
- Sun Feb 13, 2022 4:29 pm
- Forum: Programs, Libraries and Tools
- Topic: Problem with I2C?
- Replies: 2
- Views: 1899
- Sun Feb 13, 2022 7:18 am
- Forum: ESP32 boards
- Topic: Bejazzled ESP32 AKA C3FH4 RGB
- Replies: 10
- Views: 5592
Re: Bejazzled ESP32 AKA C3FH4 RGB
A post which links to blog posts about the board linked to above can be found at viewtopic.php?f=5&t=11953. The MicroPython port for "ESP32-C3 with USB" was used.
- Fri Feb 11, 2022 11:01 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Callback fuzziness???
- Replies: 1
- Views: 955
Re: Callback fuzziness???
Did the hint mean to say something other than return'? I guess the word return is overloaded. In the context of an ISR the returned data doesn't mean the value sent back to the ISR caller with a return statement. It means the data that the ISR knows about that it needs to share with (or return to) ...
- Fri Feb 11, 2022 10:35 pm
- Forum: General Discussion and Questions
- Topic: subclassing io.StringIO gives me an unhandled exception
- Replies: 3
- Views: 1158
Re: subclassing io.StringIO gives me an unhandled exception
Deriving from IOBase may be an alternative. Something along the lines of this:
Code: Select all
import io
class A(io.IOBase):
sio = io.StringIO()
def write(self, buf):
return self.sio.write(buf)
a = A()
print('hello', file=a)
print(a.sio.getvalue())
- Fri Feb 11, 2022 1:21 pm
- Forum: General Discussion and Questions
- Topic: Setup for Compiling MicroPython firmware - stuck
- Replies: 3
- Views: 1687
Re: Setup for Compiling MicroPython firmware - stuck
It looks like the environment isn't set up correctly for ESP-IDF development. In other words, I think esp-idf hasn't been installed correctly yet. For example, on my system, the command "idf.py --version" shows me that I have ESP-IDF v4.4 installed. $ idf.py --version ESP-IDF v4.4 Then, by running t...
- Tue Feb 08, 2022 10:57 pm
- Forum: General Discussion and Questions
- Topic: newbie bytes byte-arrays and uarts
- Replies: 2
- Views: 1097
Re: newbie bytes byte-arrays and uarts
When UART.write(buf) is called, the buf passed can be any object that implements the buffer protocol such as bytes, bytearray, memoryview and str. See also buffer protocol.
- Tue Feb 08, 2022 10:35 pm
- Forum: Programs, Libraries and Tools
- Topic: ESP32: 'ADC' object has no attribute 'read_uv'
- Replies: 2
- Views: 2950
Re: ESP32: 'ADC' object has no attribute 'read_uv'
read_uv (at least for the ESP32) was added after MicroPython 1.18 was released and as such isn't available in 1.18. The documentation link posted above is https://docs.micropython.org/en/latest/esp32/quickref.html#adc-analog-to-digital-conversion. This is a link to the latest documentation rather th...
- Mon Feb 07, 2022 8:17 pm
- Forum: General Discussion and Questions
- Topic: bit banging code example
- Replies: 2
- Views: 2955
Re: bit banging code example
I found that the hardware SPI pins MISO and MOSI are 12 and 13, which seems to be a method of utilising the raw (potential) speed. Is it possible to provided bytes to a buffer directly and let the hardware deal with sending the bits? Yes, it's possible to let hardware deal with sending the bits. Ta...