Search found 5 matches

by Damianvv
Mon May 04, 2020 11:38 am
Forum: ESP32 boards
Topic: ADC settings bug
Replies: 5
Views: 4056

Re: ADC settings bug

Thank you for the information, glad to know it's intended behaviour.
by Damianvv
Fri May 01, 2020 11:03 am
Forum: ESP32 boards
Topic: ADC settings bug
Replies: 5
Views: 4056

ADC settings bug

from machine import ADC, Pin import time BATTERY_CHARGE_STATUS = 34 BATTERY_READOUT_PIN = 35 adc1 = ADC(Pin(BATTERY_CHARGE_STATUS)) adc1.width(ADC.WIDTH_10BIT) adc2 = ADC(Pin(BATTERY_READOUT_PIN)) adc2.width(ADC.WIDTH_12BIT) while True: value1 = adc1.read() value2 = adc2.read() print("Value1: {}, v...
by Damianvv
Fri Mar 06, 2020 12:54 pm
Forum: General Discussion and Questions
Topic: ESP32 Calling MicroPython from C module
Replies: 4
Views: 3118

Re: ESP32 Calling MicroPython from C module

Thanks for the feedback, i got it to work! This is what i did: module.py: def hello(): print('Hello') module.c: qstr qst = qstr_from_str("hello"); mp_obj_t found = mp_load_global(qst); mp_call_function_n_kw(found, 0, 0, NULL); Once executed: Hello MicroPython v1.11-611-g7f24c2977-dirty on 2020-03-06...
by Damianvv
Thu Mar 05, 2020 12:43 pm
Forum: General Discussion and Questions
Topic: ESP32 Calling MicroPython from C module
Replies: 4
Views: 3118

ESP32 Calling MicroPython from C module

Hello, From MicroPython i can call C functions off of a C module, with the help of this tutorial: https://docs.micropython.org/en/latest/develop/cmodules.html Now, i'm trying to call a MicroPython function from this C module. With regular Python and C this can be done by importing Python.h on the C ...
by Damianvv
Mon Feb 17, 2020 12:58 pm
Forum: General Discussion and Questions
Topic: ESP32 multiprocessing
Replies: 4
Views: 6519

ESP32 multiprocessing

Hello, I want to know if it possible to implement multiprocessing in MicroPython on the ESP32? I did some research and found the loboris implementation (https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo), however this is not true multiprocessing and more like multithreading, because it still u...