Search found 18 matches
- Thu Nov 22, 2018 8:28 am
- Forum: General Discussion and Questions
- Topic: Strange GPIO behaviour
- Replies: 6
- Views: 4030
Re: Strange GPIO behaviour
So if that part is missing I can't do anything to solve the problem? If the pin is not used for wake-up, no deinit is needed. If you remove esp32.wake_on_ext0(d1) then you cannot wake-up with a pin. It works in my MicroPython port ( Forum ). >>> import machine >>> rtc = machine.RTC() >>> d1 = machi...
- Wed Nov 21, 2018 10:52 am
- Forum: General Discussion and Questions
- Topic: Strange GPIO behaviour
- Replies: 6
- Views: 4030
Re: Strange GPIO behaviour
If I am wrong someone here will correct me. It is my understanding that the ESP32 has 3 cores (2 main cores and 1 ultra low power core). When you put the ESP32 into deep sleep it turns off the 2 main cores and powers down there RAM to save power consumption. The ULP core continues to run but it has...
- Wed Nov 21, 2018 10:51 am
- Forum: General Discussion and Questions
- Topic: Strange GPIO behaviour
- Replies: 6
- Views: 4030
Re: Strange GPIO behaviour
GPIO used for wakeup must be deinit after wake up to be used as digital input/output again, something like this: if (rtc_gpio_is_valid_gpio(self->id)) rtc_gpio_deinit(self->id); I think that part is missing in the official MicroPython ESP32 port and that is the reason for the "Strange GPIO behaviou...
- Tue Nov 20, 2018 8:43 am
- Forum: General Discussion and Questions
- Topic: Strange GPIO behaviour
- Replies: 6
- Views: 4030
Strange GPIO behaviour
Dear Community; I am making a low consumption system with an ESP32. I use deepsleep mode to save power. I need to wake up my ESP32 every x seconds and when a button is pressed. To achieve that I use the following code: import machine import time import esp32 time.sleep(2) d1 = machine.Pin(14, machin...
- Thu Nov 08, 2018 8:49 am
- Forum: General Discussion and Questions
- Topic: ffi module Micropython ESP32
- Replies: 4
- Views: 4884
Re: ffi module Micropython ESP32
Thank you Loboris;loboris wrote: ↑Wed Nov 07, 2018 4:16 pmI'm finishing the usqlite3 module implementation for my MicroPython port, based on this library.
It works great, I expect to commit it next week.
When you launch it, please post in this topic. Fantastic job
- Wed Nov 07, 2018 2:42 pm
- Forum: General Discussion and Questions
- Topic: ffi module Micropython ESP32
- Replies: 4
- Views: 4884
Re: ffi module Micropython ESP32
Thanks for your answer.
Assuming that ffi is not available for ESP32, is there any way to use databases in Micropython? I am really interested.
Thanks.
- Tue Nov 06, 2018 10:39 am
- Forum: General Discussion and Questions
- Topic: ffi module Micropython ESP32
- Replies: 4
- Views: 4884
ffi module Micropython ESP32
DearCommunity, I am trying to use ffi module, but I get an import error: import ffi Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: no module named 'ffi' I have searched in MicroPyhton-lib for the ffi library but I didn't find anything. I need ffi because I want t...
- Tue Nov 06, 2018 9:16 am
- Forum: General Discussion and Questions
- Topic: Post method Micropython.
- Replies: 4
- Views: 13197
Re: Post method Micropython.
I get the same error under CPython 3.4.3. Perhaps this might be relevant ? Hi: Thanks for your answer. I asked for help in a Portuguese MicroPyhton speaking Telegram group and we found a solution: import urequests as requests url = "https://io.adafruit.com/api/v2/username/feeds/battery/data.json" h...
- Mon Nov 05, 2018 2:28 pm
- Forum: General Discussion and Questions
- Topic: Post method Micropython.
- Replies: 4
- Views: 13197
Re: Post method Micropython.
I have tried a new method that I have seen searching the Web, but it does not work. r = requests.post(URL, json =dict(value = '“88“)) I get again this error message from Adafruit : {'error': 'request failed - failed to save data to feed battery. param is missing or the value is empty: datum'} Please...
- Mon Nov 05, 2018 2:26 pm
- Forum: ESP32 boards
- Topic: Post method ESP32
- Replies: 2
- Views: 2828
Re: Post method ESP32
Hi, I have tried a new method that I have seen searching the Web, but it does not work. r = requests.post(URL, json =dict(value = “88“)) I get again this error message from Adafruit : {'error': 'request failed - failed to save data to feed battery. param is missing or the value is empty: datum'} Ple...