Search found 18 matches

by atmuc
Sat Nov 14, 2020 12:02 pm
Forum: General Discussion and Questions
Topic: Deleting all files without flash
Replies: 1
Views: 1969

Deleting all files without flash

When I do something wrong with my code I get an error like; Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0) in this case, esp32 starts to reboot forever and I cannot upload new code. I use VS Code and Pymakr. I can erase and re flash microPython image with ESP Download tool. I...
by atmuc
Sat Nov 14, 2020 10:23 am
Forum: ESP32 boards
Topic: Timer Interrupt Priority
Replies: 8
Views: 4409

Timer Interrupt Priority

I use timer interrupts and an LCD display. In timer interrupt tick I toggle a GPIO pin to create a square wave. After I started the timer, I run an infinite loop to show the counter on the LCD display. The timer period is 100ms, LCD display period is 1 sec. When I comment LCD display code I get perf...
by atmuc
Sat Nov 14, 2020 8:00 am
Forum: General Discussion and Questions
Topic: isinstance problem
Replies: 8
Views: 3322

Re: isinstance problem

Thanks. it works now. This code makes esp32 crazy. I have to erase and flush esp32 after this code run on it.

Code: Select all

i2c= I2C(0, scl=18, sda=19, freq=400000)
print("i2c:",i2c)
i2c.init(pinSCL,pinSDA)
print("i2c:",i2c)
by atmuc
Sat Nov 14, 2020 7:54 am
Forum: Programs, Libraries and Tools
Topic: I2C LCD Display Driver Suggestion
Replies: 2
Views: 2238

Re: I2C LCD Display Driver Suggestion

I solved the problem. I connected VCC to 3.3 V. When I connected it to 5V it worked.
by atmuc
Fri Nov 13, 2020 7:21 pm
Forum: General Discussion and Questions
Topic: isinstance problem
Replies: 8
Views: 3322

Re: isinstance problem

I didn't understand the solution from your link. Do I have to use soft I2C?
by atmuc
Fri Nov 13, 2020 4:34 pm
Forum: General Discussion and Questions
Topic: isinstance problem
Replies: 8
Views: 3322

Re: isinstance problem

it returns false with the image esp32-idf4-20200902-v1.13.bin, it returns true with the image esp32-idf4-20201112-unstable-v1.13-160-g8a917ad25.bin
by atmuc
Fri Nov 13, 2020 2:43 pm
Forum: Programs, Libraries and Tools
Topic: I2C LCD Display Driver Suggestion
Replies: 2
Views: 2238

I2C LCD Display Driver Suggestion

I use hd44780 display. I found some drivers in that page; https://awesome-micropython.com/

All of them use the old version of microPython. I tried to convert some of them, I still get some errors. Do you suggest a driver lib that works fine with the latest version of microPython?
by atmuc
Fri Nov 13, 2020 1:29 pm
Forum: General Discussion and Questions
Topic: isinstance problem
Replies: 8
Views: 3322

isinstance problem

isinstance returns false for I2C. Is it a bug? i2c: I2C(0, scl=22, sda=21, freq=400000) i2c type: <class 'I2C'> is instance I2C: False is instance Pin: True pinSCL = Pin(22,Pin.OUT) pinSDA = Pin(21,Pin.OUT) i2c2 = I2C(0, scl=pinSCL, sda=pinSDA) print("i2c:",i2c2) print("i2c type:",type(i2c2)) print(...