Search found 28 matches
- Wed Nov 17, 2021 5:50 am
- Forum: General Discussion and Questions
- Topic: How to include driver into micropython compilation
- Replies: 21
- Views: 68280
Re: How to include driver into micropython compilation
For the `AssertionError: Expected 0x08.`, it seems is that the problem is in writing register on the chip. Are you sure your connected pin configuration is right. I had the same error when I had choose too high frequency for SPI. `htonl` and `htons` are function defined in `wiznet5k_socket`, so, if...
- Tue Nov 16, 2021 9:10 am
- Forum: General Discussion and Questions
- Topic: How to include driver into micropython compilation
- Replies: 21
- Views: 68280
Re: How to include driver into micropython compilation
Hi, I tried with raspberry pi pico.It gives some error.When I run wiznet5k.py, it gives this: Traceback (most recent call last): File "<stdin>", line 32, in <module> File "wiznet5k_dhcp.py", line 19, in <module> File "wiznet5k_socket.py", line 19, in <module> File "wiznet5k.py", line 33, in <module>...
- Mon Nov 15, 2021 1:49 pm
- Forum: General Discussion and Questions
- Topic: How to include driver into micropython compilation
- Replies: 21
- Views: 68280
Re: How to include driver into micropython compilation
Can I use it with raspberry pi pico? Will it work?
- Mon Oct 25, 2021 9:38 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Writing an SPI driver for SH1107 Oled display
- Replies: 4
- Views: 6113
Re: Writing a driver for SH1107 Oled display
Hello everyone, I'm new here and to MicroPython. I'm finding many insightful comments here, this forum is great! I decided to make a first build around a Raspberry Pi Pico, bought some components... and didn't realise that MicroPython drivers were missing for most of them! I've found workarounds fo...
- Mon Oct 25, 2021 5:07 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Simple program crash
- Replies: 8
- Views: 3126
Re: Simple program crash
Is there another solutioun? Because when I add code , When I extend the code line , I need to add gs.collect() or I need to delete gs.collect(). It is so annoying. When code gives memory allocation error, I am trying to add gs.collect() every line because one gs.collect() isn't enough. I am trying w...
- Tue Oct 19, 2021 5:34 am
- Forum: General Discussion and Questions
- Topic: HX711 Raspberry pi pico
- Replies: 9
- Views: 8863
Re: HX711 Raspberry pi pico
Hi neveregret. Were you able to correctly execute the code and get the correct measurement?. :cry: :?: :?: :?: :?: :?: :?: In advance thanks for your help. Hi, I am using hx711 now and I am getting correct values. https://github.com/SergeyPiskunov/micropython-hx711 you can use this. It is easy. Ins...
- Fri Oct 15, 2021 6:27 am
- Forum: General Discussion and Questions
- Topic: time.monotonic() Using Micropython and Circuitpython at the same time
- Replies: 4
- Views: 4343
Re: time.monotonic() Using Micropython and Circuitpython at the same time
https://forums.raspberrypi.com/viewtopic.php?f=144&t=320989 I asked on this forum too. @hippy wrote some codes. STATIC mp_obj_t time_monotonic(void) { uint32_t ms = mp_hal_ticks_ms() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1); return mp_obj_new_float((float)ms / 1000); } STATIC MP_DEFINE_CONST_FUN_OBJ_0(...
- Mon Oct 11, 2021 5:10 am
- Forum: General Discussion and Questions
- Topic: How can I get the source code of a Python module?
- Replies: 2
- Views: 1263
Re: How can I get the source code of a Python module?
Hello, is it possible on ESP32 to get or print the source of code of python module e.g (code of module hello.py) ? hello.py print("Hello") I found this on google https://stackoverflow.com/questions/427453/how-can-i-get-the-source-code-of-a-python-function but on ESP32 the inspect library is simplif...
- Fri Oct 08, 2021 6:51 am
- Forum: General Discussion and Questions
- Topic: ESP8266-01 serial Port error
- Replies: 3
- Views: 1594
Re: ESP8266-01 serial Port error
But as I said I am doing it with Arduino. In your case, I looked the link he is using Arduino IDE for programming too. You can do it with MicroPython too but I didn't try it with MicroPython.
- Thu Oct 07, 2021 7:32 pm
- Forum: General Discussion and Questions
- Topic: ESP8266-01 serial Port error
- Replies: 3
- Views: 1594
Re: ESP8266-01 serial Port error
i think the mistake him made is connect tx with tx and rx with rx. This isn't the problem. Because you are only coding ESP. My connection is (when I want to upload code to esp01) rx-rx ,tx-tx , chpd -3.3V to Arduino's 3.3 , gnd and gpıo pin to gnd. ( Arduino's reset pin to Arduino's gnd because I w...