Search found 14 matches
- Sat Mar 20, 2021 11:16 am
- Forum: General Discussion and Questions
- Topic: Build firmware v1.14 with IDF 4.2 problems
- Replies: 3
- Views: 4424
Build firmware v1.14 with IDF 4.2 problems
This is my first time to compile ESP32 port with IDF4, I want to write down a Shell script used for one key deploy MicroPython development environment. Here is the key segments of my script #!/bin/bash tmp_root_dir=$PWD # update and install git sudo apt-get update sudo apt-get install -y git # clone...
- Fri Jun 05, 2020 7:40 am
- Forum: ESP32 boards
- Topic: About BLE.gap_connect(esp32-based ubluetooth)
- Replies: 44
- Views: 30504
Re: About BLE.gap_connect(esp32-based ubluetooth)
In _IRQ_SCAN_RESULT I can get adv_data ,but decode_services(adv_data)=[],it return null. _IRQ_SCAN_RESULT is a callback used for gap_scan(), in this callback you will got addr_type and addr, use gap_connect() with these params to start connect the scanned device, _IRQ_PERIPHERAL_CONNECT will trigge...
- Fri Mar 20, 2020 3:52 am
- Forum: General Discussion and Questions
- Topic: Confusion about micropython.const
- Replies: 4
- Views: 4380
Re: Confusion about micropython.const
Thanks Robert, this is helpful for me, thanks again
- Thu Mar 19, 2020 6:25 pm
- Forum: General Discussion and Questions
- Topic: Confusion about micropython.const
- Replies: 4
- Views: 4380
Re: Confusion about micropython.const
test = const(0x1) # from now on test is a shortcut for 0x1 Thanks fstengel, that's uh.....amazing And then I have second question from micropython import const ONE = 1 TWO = 2 COMPILED = const(ONE | TWO) In this way, it's still got exception, according to you link The argument to const() may be any...
- Thu Mar 19, 2020 1:44 pm
- Forum: General Discussion and Questions
- Topic: Confusion about micropython.const
- Replies: 4
- Views: 4380
Confusion about micropython.const
Here's the sample code: from micropython import const class a(object): test = const(0x1) class b(object): test = 0 And here is the result: Traceback (most recent call last): File "<stdin>", line 4, in b SyntaxError: can't assign to expression According to the documents about micropython.const Consta...
- Mon Mar 02, 2020 5:46 am
- Forum: ESP32 boards
- Topic: Bluetooth BLE implements HID questions
- Replies: 5
- Views: 4207
Re: Bluetooth BLE implements HID questions
I actually have a working HID demo, have been plannign to turn it into another example in examples/bluetooth. I will try and get this done later this week. Hello jimmo, is there any news could be shared to us? Now I still have a problem not solved, the device will be stuck when it reconnect to cent...
- Sun Mar 01, 2020 9:29 am
- Forum: ESP32 boards
- Topic: BLE Active Exception problem
- Replies: 3
- Views: 2648
Re: BLE Active Exception problem
As you said....I try to unplug the cable from a usb hub and replug to notebook usb port, and then problem solved, that's sooooo funny~
Thanks a lot, fstengel
- Sun Mar 01, 2020 8:46 am
- Forum: ESP32 boards
- Topic: BLE Active Exception problem
- Replies: 3
- Views: 2648
Re: BLE Active Exception problem
Update exception information... >>> import ubluetooth as bt >>> ble=bt.BLE() >>> ble.active(True) I (24440) BTDM_INIT: BT controller compile version [5aed448] I (49208) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE W (49218) phy_init: failed to load RF cal...
- Sat Feb 29, 2020 5:51 pm
- Forum: ESP32 boards
- Topic: BLE Active Exception problem
- Replies: 3
- Views: 2648
BLE Active Exception problem
I have been reinstalled Windows 10 (build 1909), and installed the lastest version of VS Code with RT-Thread plugin, I'm facing a new issue, when I paste the code to repl it will cause exception paste mode; Ctrl-C to cancel, Ctrl-D to finish === import ubluetooth as bt === ble=bt.BLE() === ble.activ...
- Fri Feb 21, 2020 3:48 pm
- Forum: ESP32 boards
- Topic: I have design a new small ESP32 board
- Replies: 4
- Views: 3148