Search found 11 matches

by meebox
Sat Jun 19, 2021 5:59 am
Forum: ESP32 boards
Topic: Got timeout with BLE in MicroPython 1.15
Replies: 0
Views: 1057

Got timeout with BLE in MicroPython 1.15

I try to run the ble_simple_peripheral.py by ampy.It seems to work fine, but get timeout error if not connected in 30 secs shown as bellow: ❯ ampy -p com9 run .\ble_simple_peripheral.py Starting advertising Traceback (most recent call last): File "d:\program files\python39\lib\runpy.py", line 197, i...
by meebox
Wed Jan 20, 2021 7:52 am
Forum: General Discussion and Questions
Topic: [SOLVED] urequests + redirects
Replies: 20
Views: 18020

Re: [SOLVED] urequests + redirects

I'll try it.Thanks. It’s moved here: https://github.com/pfalcon/micropython-lib/tree/master/urequests Can you show me how to use this library in MicroPython? I get error showing me the ussl module doesn't have the SSLContext method.Thanks. Here, I fixed it for ya: https://gist.github.com/SpotlightKi...
by meebox
Wed Jan 13, 2021 2:17 am
Forum: ESP32 boards
Topic: _thread and socket get WDT rest
Replies: 0
Views: 1981

_thread and socket get WDT rest

I write a program that accept client connection in a thread show as below: import machine,time,sys import network import socket import _thread def book_sensor_value(): while True: #time.sleep(0.001) try: (csock, adr) = sock.accept() csock.setblocking(False) except: pass sock.close() sta=network.WLAN...
by meebox
Tue Dec 01, 2020 11:51 am
Forum: General Discussion and Questions
Topic: [SOLVED] urequests + redirects
Replies: 20
Views: 18020

Re: [SOLVED] urequests + redirects

mcauser wrote:
Fri May 31, 2019 8:42 am
It’s moved here:
https://github.com/pfalcon/micropython- ... /urequests
Can you show me how to use this library in MicroPython? I get error showing me the ussl module doesn't have the SSLContext method.Thanks.
by meebox
Sun Aug 30, 2020 5:27 am
Forum: ESP8266 boards
Topic: Non-used PWM object make other PWM objects malfunctioned
Replies: 7
Views: 4451

Re: Non-used PWM object make other PWM objects malfunctioned

Sorry that I just see your reply now.Thanks for your patch, I've tested it with daily build and it works correctly.
by meebox
Mon Mar 30, 2020 11:01 am
Forum: ESP8266 boards
Topic: Non-used PWM object make other PWM objects malfunctioned
Replies: 7
Views: 4451

Re: Non-used PWM object make other PWM objects malfunctioned

Thanks for your reply. I'll test all the suggestions.
by meebox
Fri Mar 27, 2020 2:34 pm
Forum: ESP8266 boards
Topic: Non-used PWM object make other PWM objects malfunctioned
Replies: 7
Views: 4451

Re: Non-used PWM object make other PWM objects malfunctioned

By the way, I did try deferenct frequency, but no different.
by meebox
Thu Mar 26, 2020 11:36 am
Forum: ESP8266 boards
Topic: Non-used PWM object make other PWM objects malfunctioned
Replies: 7
Views: 4451

Re: Non-used PWM object make other PWM objects malfunctioned

You can try the program posted. I think it's not the situation about frequency as you mentioned. If you let the non-used object g to breathe together, it will work fine.
by meebox
Thu Mar 26, 2020 4:27 am
Forum: ESP8266 boards
Topic: Non-used PWM object make other PWM objects malfunctioned
Replies: 7
Views: 4451

Non-used PWM object make other PWM objects malfunctioned

I have write a program as followed from machine import Pin, PWM import utime # R:D5 G:D6 B:D7 r = PWM(Pin(14, Pin.OUT), freq=500, duty=0) # this line would make PWM work in a strange way g = PWM(Pin(12, Pin.OUT), freq=500, duty=0) b = PWM(Pin(13, Pin.OUT), freq=500, duty=0) r.duty(0) g.duty(0) b.dut...