Search found 55 matches
- Wed Mar 20, 2019 4:57 pm
- Forum: ESP32 boards
- Topic: How to read from a i2c sensor and print on a i2c display when both use different init pins
- Replies: 14
- Views: 8787
Re: How to read from a i2c sensor and print on a i2c display when both use different init pins
What addresses do you see? The bno055 chip should answer 0x28 or 0x29, and the SSD1306 0x3c or 0x3d
- Mon Mar 18, 2019 3:22 pm
- Forum: General Discussion and Questions
- Topic: How to get CPU load approximate value on Micropython ?
- Replies: 3
- Views: 2626
Re: How to get CPU load approximate value on Micropython ?
Excluding the UNIX port, I am not quite sure that one can get such a figure. In many cases micropython is running on bare metal without any os, so the "load" would be 100%...
- Fri Mar 15, 2019 12:24 pm
- Forum: General Discussion and Questions
- Topic: Simple web interface for my ESP?
- Replies: 1
- Views: 2611
Re: Simple web interface for my ESP?
You could use picoweb to implement a very simple web server on your microcontroller.
- Tue Mar 12, 2019 3:36 pm
- Forum: General Discussion and Questions
- Topic: Can I run specify .py file on board via REPL prompt after boot done ?
- Replies: 3
- Views: 2489
Re: Can I run specify .py file on board via REPL prompt after boot done ?
Code: Select all
import aaa
- Tue Mar 12, 2019 8:34 am
- Forum: General Discussion and Questions
- Topic: Something like Threading/Queue in MicroPython?
- Replies: 8
- Views: 10871
Re: Something like Threading/Queue in MicroPython?
Not as such. However there are alternatives on the ESP32: uasyncio , but that might cause you to completely rewrite your scripts use lightweight threads with the _thread module. It is documented for the lobo port . However, I cannot find documentation for the mainline (apart form the fact that it is...
- Mon Mar 11, 2019 10:47 am
- Forum: ESP32 boards
- Topic: SoftwareSerial or SoftUART for ESP32 [Solved using Machine.UART]
- Replies: 9
- Views: 18153
Re: SoftwareSerial or SoftUART for ESP32
A question: why do you need a SoftUART class? The esp32 already has 3 UARTS. Usually one (id 0) is used for micropytohn's REPL. The other two can be used and freely assigned to pins that are not in use...
- Sun Mar 10, 2019 8:53 am
- Forum: General Discussion and Questions
- Topic: esp8266 not booting
- Replies: 18
- Views: 9844
Re: esp8266 not booting
If I understand well: Small text file : OK Large file(s) : not OK I gather you are using a wemos mini with 4M flash, so space should not be a problem. Try this: Create a text (no funny characters, plain ascii 32->126) file of about 25-50k ( this lorem ipsum generator could do the trick) Send it, and...
- Sat Mar 09, 2019 4:42 pm
- Forum: General Discussion and Questions
- Topic: code works on desktop python v3.7.0 but not on micropython v1.9.4
- Replies: 4
- Views: 2565
Re: code works on desktop python v3.7.0 but not on micropython v1.9.4
It is documented there. I gather it is one of the compromises one has to live with when using micropython.
- Sat Mar 09, 2019 3:27 pm
- Forum: General Discussion and Questions
- Topic: esp8266 not booting
- Replies: 18
- Views: 9844
Re: esp8266 not booting
Just to be on the safe side, try uploading files to your esp8266 using one of:
- Sat Mar 09, 2019 3:18 pm
- Forum: General Discussion and Questions
- Topic: code works on desktop python v3.7.0 but not on micropython v1.9.4
- Replies: 4
- Views: 2565
Re: code works on desktop python v3.7.0 but not on micropython v1.9.4
The problem lies with eval: it only works in the global scope. Due to micropython's implementation, the only names it can see are the global ones. See post 4 in this thread