well, i'm not sure why it didn't work. I'm not a python expert so i thought it might be because there a just functions in the file and no class ? So i should import the function from the file ? Anyway this works fine from ConnectWifi import connect connect() Is the usual import refere to a class nam...
Oh... I was trying to import the file and not the functions within. So it works in repl but in a .py file you should import a class or a function not the file directly...
Hello again, I'm trying to import a module to connect to my wifi. i'm using a module because i don't want the ssid or password to be tracked on github :mrgreen: But it don't work in my main.py. In repl it works fine, I import ConnectWifi in both main.py and in the repl prompt and : connect to wifi T...
Ok, thanks.
That means that less power is drawn out of the board. I was confused on the final result using so many resistors. Seems quite logic now that i think of it
Thank you so much. I'll stay with a softwre based soltuion for now, but if my prototype (and skills evolve) i'll try a hardware based debouncing. I don't know why i assumed a reed switch wouldn't be so prone to debouncing. But again the fact that the rising edge has better behavior seems to confirm ...
Hy all, The title may seem weird, So simple put, i am controlling 16 led's with to shift registers who are on 3.3 v. I added 16 resistors for the led's. But they are super bright and they are used as user interface and are really unpleasant to watch directly. So i tested a few resistor values and fi...
I modified the code to print the pin in the callback and added a 0.1 second sleep in the while statement. It kinda works. The code : def callback(pin): print(pin) global interruptCounter interruptCounter = interruptCounter+1 reed = machine.Pin(39, machine.Pin.IN, machine.Pin.PULL_UP) reed.irq(trigge...
Hy all, I'm having a little difficulty managing my external interupts on a bike counter project. I use a reed switch to count the number of rotations of the wheel with a external interupt on counter 0. I followed this post : https://techtutorialsx.com/2017/10/08/esp32-micropython-external-interrupts...