Search found 32 matches
- Thu Dec 16, 2021 9:49 pm
- Forum: General Discussion and Questions
- Topic: Import error in File but not REPL
- Replies: 0
- Views: 8087
Import error in File but not REPL
Hi, I am trying to set up a docker environment for running a micropython script, but am running into a strange issue, I have built micropython and can enter the interactive repl and so i know micropython is working. The issue I am facing is around importing modules, if I run a file using "micropytho...
- Thu Dec 09, 2021 7:29 pm
- Forum: General Discussion and Questions
- Topic: Help with I2C
- Replies: 0
- Views: 4554
Help with I2C
Hi everyone, I am having some strange errors trying to use I2C and couold use some advice. I am trying use an esp32 to read from a pressure sensor: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+Sheet%7FMS5837-30BA%7FB1%7Fpdf%7FEnglish%7FENG_DS_MS5837-30BA_B1.pd...
- Thu Nov 11, 2021 3:44 pm
- Forum: General Discussion and Questions
- Topic: Building an IoT device: minizing module import time to conserve battery
- Replies: 15
- Views: 4785
Re: Building an IoT device: minizing module import time to conserve battery
I you are running standard python on your pc then the emmitters will through errors as they are specifically for micropython. If you run the unix or windows port of micropython you should be able to both complile and run the code correctly, although I cant comment of the relevancy of speed differenc...
- Thu Nov 11, 2021 8:33 am
- Forum: General Discussion and Questions
- Topic: Building an IoT device: minizing module import time to conserve battery
- Replies: 15
- Views: 4785
Re: Building an IoT device: minizing module import time to conserve battery
Are you running on the linux port?
A while ago I ran some quick tests using the @micropython.native emmitter on the linux port. I didn't get any errors but I did get some very wierd results so something wasnt correct somewhere.
A while ago I ran some quick tests using the @micropython.native emmitter on the linux port. I didn't get any errors but I did get some very wierd results so something wasnt correct somewhere.
- Wed Nov 10, 2021 10:21 am
- Forum: General Discussion and Questions
- Topic: Running a long task alongside a user interface
- Replies: 0
- Views: 853
Running a long task alongside a user interface
I am working on a device based on the ESP32 that will involve a running calculations that will take up to 2 seconds to complete, and at times will need to run every 5-10 seconds. Alongside this there will be a GUI (LVGL based) controlled by buttons that should be both responsive, and will also need ...
- Fri Oct 22, 2021 7:44 pm
- Forum: Programs, Libraries and Tools
- Topic: Using thonny with the Unix port
- Replies: 1
- Views: 1364
Using thonny with the Unix port
Hi all, I am planning to be able to do some code development away from hardware and trying so have installed both thonny and the unix port of micrypython installed on WSL, and both work independently. I am able to open up and run thonny, and I am able to use micrpython on the command line. The issue...
- Wed Feb 10, 2021 7:49 am
- Forum: General Discussion and Questions
- Topic: Bitbanging DVI only possible on RP2040?
- Replies: 1
- Views: 1869
Bitbanging DVI only possible on RP2040?
Hi everyone, I have recently seen this post ( https://github.com/Wren6991/picodvi ) about bitbanging a DVI signal using the new RP2040 chip and had some questions about it. Firstly, is this something that would be possible on any device (I'm particularly interested in the esp32) or does it appear to...
- Tue Feb 09, 2021 10:08 am
- Forum: Drivers for External Components
- Topic: Driver for MS5803 Pressure sensor
- Replies: 0
- Views: 1920
Driver for MS5803 Pressure sensor
Hi all, I have tried my hand at writing a driver for this board and made it available on github: https://github.com/minyiky/ms5803-micropython Hopefully it is of use to someone and I would definitely appreciate any feedback on it, especially on structure as this is my first attempt at writing a driv...
- Sun Feb 07, 2021 3:08 pm
- Forum: General Discussion and Questions
- Topic: Clearing RAM
- Replies: 10
- Views: 4159
Re: Clearing RAM
Now comming across another memory issue, I seem to be having fragmentation issues, when swithing between screens I am checking mem_free and it is remaining pretty consistant with over 45kb free but after a few switches it will throw a memory error saying it is unable to allocate 2048bytes. 1) Am I c...
- Sun Feb 07, 2021 9:53 am
- Forum: General Discussion and Questions
- Topic: Clearing RAM
- Replies: 10
- Views: 4159
Re: Clearing RAM
Hmm firstly I want to say thank you, this seems to have fixed the problem, although I am a bit confused as that is what I was doing when I first encountered the problem. I believe what has happened is a combination of the problem mentioned by stijn where the collect call was not freeing the deleted ...