Search found 5 matches

by moefear85
Mon Mar 25, 2024 3:52 pm
Forum: MicroPython pyboard
Topic: ssd1306 OSError: I2C operation not supported
Replies: 5
Views: 7577

Re: ssd1306 OSError: I2C operation not supported

I2C was right, don't use pyb. The real reason for the error is confusing softI2C with hardware I2C. When you specify an I2C number (which i2c controller to use), then you are implicitly specifying it should be hardware i2c. In that case, the start/stop function's don't exist because they don't make ...
by moefear85
Wed Dec 15, 2021 9:41 pm
Forum: Programs, Libraries and Tools
Topic: Non-blocking WiFi connection
Replies: 5
Views: 15761

Re: Non-blocking WiFi connection

you can also use a timer. then place "isconnected()" in the timer callback function. I created a software timer so I don't consume hardware ones everytime I have a function that has to wait for some operation.
by moefear85
Fri Dec 10, 2021 10:37 pm
Forum: ESP32 boards
Topic: TouchPad ValueError
Replies: 1
Views: 1787

TouchPad ValueError

I'm running the following code to test TouchPad functionality: from machine import TouchPad,Pin from time import sleep touchPins=[0, 2, 4, 12, 13,14, 15, 27, 32, 33] t=[] for pin in touchPins: t.append(TouchPad(Pin(pin))) while True: for i in t: try: print(i.read()) except Exception as e: print(type...
by moefear85
Sat Oct 30, 2021 12:45 pm
Forum: General Discussion and Questions
Topic: Multiprocessing / multithreading
Replies: 8
Views: 16784

Re: Multiprocessing / multithreading

micropython-lib supports multiprocessing (see unix-ffi)