Search found 11 matches

by daemondong
Mon Mar 04, 2024 3:03 am
Forum: 硬件问题讨论
Topic: ESP-Matter的芯片选型
Replies: 0
Views: 4770

ESP-Matter的芯片选型

我们准备开发基于ESP-Mattter WiFi的烟雾报警器,由于此款产品是电池供电,需考虑功耗问题,请问选用何款芯片比较合适? 谢谢。
by daemondong
Mon Mar 04, 2024 2:59 am
Forum: 中文文档讨论版
Topic: 2023 乐鑫文档反馈问卷
Replies: 5
Views: 34895

Re: 2023 乐鑫文档反馈问卷

有些关于ESP-Matter的问题请教,我怎么找不到发帖子的按钮?
by daemondong
Fri Feb 25, 2022 3:33 pm
Forum: ESP-IDF
Topic: How to use "portENTER_CRITICAL(&my_mutex)" with ESP32 ?
Replies: 0
Views: 1952

How to use "portENTER_CRITICAL(&my_mutex)" with ESP32 ?

I'm working on MPU6050 with ESP32. It worked well as the below code. But when I added a gif playing task the code couldn't get the MPU6050 data sometime (half work and half bad). I raised the Priority of MPU6050 it didn't work. So I added the portENTER_CRITICAL(&my_mutex); and portExit_CRITICAL(&my_...
by daemondong
Fri Feb 25, 2022 1:43 pm
Forum: ESP-IDF
Topic: How do I change the battery level ?
Replies: 4
Views: 7819

Re: How do I change the battery level ?

I got it. The battery level should be set as below. if (deviceConnected) { pCharacteristicBatt->setValue((uint8_t*)&batterylevel, 1); pCharacteristicBatt->notify(); Serial.printf("*** NOTIFY: %s ***\n", logRunning); //the function excepts string pCharacteristicRun->setValue((uint8_t *)logRunning,512...
by daemondong
Sat Jan 29, 2022 8:44 am
Forum: ESP-IDF 中文讨论版
Topic: Arduino 开发 ESP32 的问题
Replies: 0
Views: 2760

Arduino 开发 ESP32 的问题

我在学习Arduino开发ESP32, 使用了ESP32开发板和TM1638模块, https://item.taobao.com/item.htm?spm=a1z09.2.0.0.629e2e8d15sgyU&id=524235484772&_u=t954qih43ef 。发现只有按键S1响应正常,按下LED灯亮,松开LED灯灭. 其余按键都是按下后,LED一直闪烁,请问有人知道问题所在么 ? 代码如下。 硬件没问题,我使用C开发的程序,一切工作正常。谢谢大家。 #define DATA_COMMAND 0X40 #define DISP_COMMAND 0x80 #define ADDR_...
by daemondong
Sat Jan 22, 2022 2:26 pm
Forum: ESP-IDF
Topic: How do I change the battery level ?
Replies: 4
Views: 7819

Re: How do I change the battery level ?

I updated the hid_demo_task as below. I could find the battery level was changed and set. But when I use Bluelight to read the battery level it still keeps 0x64. void hid_demo_task(void *pvParameters) { static bool send_volum_up = false; static uint8_t tcn=0; static uint8_t lvlBatt=100; while (1) { ...
by daemondong
Fri Jan 21, 2022 7:33 am
Forum: ESP-IDF
Topic: How do I change the battery level ?
Replies: 4
Views: 7819

Re: How do I change the battery level ?

I think this is the basic battery function. Could anyone help me about it ? Thank you.
by daemondong
Tue Jan 18, 2022 4:24 am
Forum: ESP-IDF
Topic: How do I change the battery level ?
Replies: 4
Views: 7819

How do I change the battery level ?

I'm using the example of ..\bluetooth\esp_hid_device to do some tests. I can use Lightblue APP on Android phone to read the battery level. It's 0x64 always. I can't find the code to change it. Could anyone can tell me after I get the voltage of battery how do I change the battery level? Thank you.
by daemondong
Mon Dec 27, 2021 1:30 am
Forum: ESP-IDF
Topic: OLED 1306 on ESP32 with I2C
Replies: 4
Views: 7086

Re: OLED 1306 on ESP32 with I2C

Thanks for your help. I cleaned my old code and it works well now.
by daemondong
Fri Dec 24, 2021 11:41 am
Forum: ESP-IDF
Topic: OLED 1306 on ESP32 with I2C
Replies: 4
Views: 7086

Re: OLED 1306 on ESP32 with I2C

Thanks for your reply.

I commented the line 7 in Display.c as below.
//#define RST_GPIO 1 //if need rst ping

I still got the same information the log was cut off at line 12 in Main.c.
"ESP_LOGI("Main->","OLED Initting...\n");".