Search found 36 matches
- Mon Nov 28, 2016 5:58 pm
- Forum: ESP8266 boards
- Topic: Learning Interrupts handling
- Replies: 2
- Views: 3134
Re: Learning Interrupts handling
This might be a good place to start: http://docs.micropython.org/en/latest/esp8266/reference/isr_rules.html?highlight=interrupt Please do keep in mind, that some of it might be slightly outdated or doesn't reflect the Hardware API changes. For example, the "pyb" module doesn't exist on ESP8266 port...
- Mon Nov 28, 2016 5:57 pm
- Forum: ESP8266 boards
- Topic: Building the firmware broke I2C
- Replies: 8
- Views: 5358
Building the firmware broke I2C
Hello there! I built my first Micropython firmware because I need to freeze some bytecode in order to reduce memory usage. I don't have any problem building or flashing the firmware. Everything seems to work fine until I try to create an I2C object. This is the error I got: >>> a = machine.I2C(machi...
- Fri Nov 25, 2016 11:48 am
- Forum: ESP8266 boards
- Topic: howto: Build MicroPython on Debian Linux or a Raspberry Pi for the ESP8266
- Replies: 3
- Views: 7413
Re: howto: Build MicroPython on Debian Linux or a Raspberry Pi for the ESP8266
Thank you Gojimmypi, great tutorial.
One question: how do I update the source code in the VM when a new version of Micropython is out?
Thanks!
One question: how do I update the source code in the VM when a new version of Micropython is out?
Thanks!
- Thu Nov 24, 2016 10:14 am
- Forum: ESP8266 boards
- Topic: Setting RTC From Internet?
- Replies: 27
- Views: 39379
Re: Setting RTC From Internet?
Can I ask you how do you do the hourly polling? Do you have a variable holding the elapsed time or do you use a less resource intensive method (if it exist at all). In Python (i.e. with hardware unlimited resources) I would use that approach, but I'm curious to know if there is a better solution. H...
- Thu Nov 24, 2016 10:13 am
- Forum: ESP8266 boards
- Topic: Setting RTC From Internet?
- Replies: 27
- Views: 39379
Re: Setting RTC From Internet?
The key is identifying how much latency is tolerable in responding to an alarm. If (say) a second is acceptable then I'd poll it at one second intervals. The amount of processor power required to read it and check the result, compared to that available in a one second period, is small. At a guess p...
- Wed Nov 23, 2016 9:18 pm
- Forum: ESP8266 boards
- Topic: Setting RTC From Internet?
- Replies: 27
- Views: 39379
Re: Setting RTC From Internet?
Another approach is to use a DS3231. These are amazingly cheap and precise (a minute or so per year) battery backed RTC's. They are so precise that I've used them for calibrating the RTC on the Pyboard. On a loosely related note: I almost finished a driver for the DS3231, because I need a standalon...
- Wed Nov 23, 2016 8:48 pm
- Forum: ESP8266 boards
- Topic: Setting RTC From Internet?
- Replies: 27
- Views: 39379
Re: Setting RTC From Internet?
I am running a timer program on the ESP8266. Because the rtc is losing about 20 minutes/day I am calling setttime() every hour. I can't make it a day before I get the error shown below, which then stops the program from continuing to run. Is there a way to ignore an error like this so the program c...
- Wed Nov 23, 2016 12:18 pm
- Forum: ESP8266 boards
- Topic: Learning Interrupts handling
- Replies: 2
- Views: 3134
Learning Interrupts handling
Hello! I'd like to learn how to use interrupts in Micropython. Please note that I have never used interrupts at all, neither in Arduino or in other frameworks. My theoretical knowledge is based only on what I have found in the documentation online. However, in order to understand what I'm doing I ne...
- Sun Oct 30, 2016 4:53 pm
- Forum: ESP8266 boards
- Topic: How to use main.py to deploy my code
- Replies: 17
- Views: 22631
Re: How to use main.py to deploy my code
I have used "ampy" extensively with Micropython and ESP8266... both from MacOsX, Windows and Ubuntu Mate.ernitron wrote:I am afraid that will not work with microython and ESP8266 firmware.NTL2009 wrote:..
I found the app 'ampy', and it includes a "put" command....
I don't know why it didn't worked for you.
- Sun Oct 30, 2016 9:33 am
- Forum: ESP8266 boards
- Topic: Working on a simple ADXL345 driver (i.e. two's complement)
- Replies: 3
- Views: 2743