Search found 11 matches
- 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...
- 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...
- 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...
- Tue Dec 01, 2020 11:51 am
- Forum: General Discussion and Questions
- Topic: [SOLVED] urequests + redirects
- Replies: 20
- Views: 18020
Re: [SOLVED] urequests + redirects
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.mcauser wrote: ↑Fri May 31, 2019 8:42 amIt’s moved here:
https://github.com/pfalcon/micropython- ... /urequests
- 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.
- 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.
- 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.
- 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.
- 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...
- Mon Feb 03, 2020 9:37 am
- Forum: Programs, Libraries and Tools
- Topic: The direction of framebuf.MONO_HLSB
- Replies: 7
- Views: 6769