ESP32-IDF练习源码
目录嵌入式 / ESP32格式ZIP大小621.5 KB
在线预览
501 个文件255 个目录2.4 MB 解压后大小
C167H155TXT88MD31JSON29CSV29PY2
查看完整目录 · 501 个文件
416 B 01_led/.devcontainer/devcontainer.json
372 B 01_led/CMakeLists.txt
279 B 01_led/components/BSP/CMakeLists.txt
1.5 KB 01_led/components/BSP/LED/led.c
1.5 KB 01_led/components/BSP/LED/led.h
77 B 01_led/main/CMakeLists.txt
574 B 01_led/main/main.c
244 B 01_led/partitions.csv
1.7 KB 01_led/README.md
416 B 02_key_led_EXTI_UART/.devcontainer/devcontainer.json
379 B 02_key_led_EXTI_UART/CMakeLists.txt
389 B 02_key_led_EXTI_UART/components/CMakeLists.txt
965 B 02_key_led_EXTI_UART/components/EXIT/exit.c
187 B 02_key_led_EXTI_UART/components/EXIT/exit.h
1.1 KB 02_key_led_EXTI_UART/components/KEY/key.c
260 B 02_key_led_EXTI_UART/components/KEY/key.h
518 B 02_key_led_EXTI_UART/components/LED/led.c
590 B 02_key_led_EXTI_UART/components/LED/led.h
975 B 02_key_led_EXTI_UART/components/UART/uart.c
324 B 02_key_led_EXTI_UART/components/UART/uart.h
77 B 02_key_led_EXTI_UART/main/CMakeLists.txt
1.4 KB 02_key_led_EXTI_UART/main/main.c
244 B 02_key_led_EXTI_UART/partitions-16MiB.csv
1.7 KB 02_key_led_EXTI_UART/README.md
416 B 03_ESPTIMER/.devcontainer/devcontainer.json
377 B 03_ESPTIMER/CMakeLists.txt
322 B 03_ESPTIMER/components/CMakeLists.txt
518 B 03_ESPTIMER/components/LED/led.c
590 B 03_ESPTIMER/components/LED/led.h
1.0 KB 03_ESPTIMER/components/TIME/time.c
147 B 03_ESPTIMER/components/TIME/time.h
77 B 03_ESPTIMER/main/CMakeLists.txt
695 B 03_ESPTIMER/main/main.c
244 B 03_ESPTIMER/partitions.csv
1.7 KB 03_ESPTIMER/README.md
416 B 04_GPTIMER/.devcontainer/devcontainer.json
376 B 04_GPTIMER/CMakeLists.txt
322 B 04_GPTIMER/components/CMakeLists.txt
518 B 04_GPTIMER/components/LED/led.c
590 B 04_GPTIMER/components/LED/led.h
3.4 KB 04_GPTIMER/components/TIME/gptime.c
627 B 04_GPTIMER/components/TIME/gptime.h
77 B 04_GPTIMER/main/CMakeLists.txt
1.2 KB 04_GPTIMER/main/main.c
244 B 04_GPTIMER/partitions.csv
1.7 KB 04_GPTIMER/README.md
416 B 05_watch_dog/.devcontainer/devcontainer.json
378 B 05_watch_dog/CMakeLists.txt
346 B 05_watch_dog/components/CMakeLists.txt
1.6 KB 05_watch_dog/components/KEY/key.c
533 B 05_watch_dog/components/KEY/key.h
518 B 05_watch_dog/components/LED/led.c
590 B 05_watch_dog/components/LED/led.h
1.3 KB 05_watch_dog/components/WDT/wdt.c
479 B 05_watch_dog/components/WDT/wdt.h
77 B 05_watch_dog/main/CMakeLists.txt
1.0 KB 05_watch_dog/main/main.c
244 B 05_watch_dog/partitions.csv
1.7 KB 05_watch_dog/README.md
416 B 06_SW_PWM/.devcontainer/devcontainer.json
375 B 06_SW_PWM/CMakeLists.txt
277 B 06_SW_PWM/components/CMakeLists.txt
1.6 KB 06_SW_PWM/components/SW_PWM/pwm.c
323 B 06_SW_PWM/components/SW_PWM/pwm.h
77 B 06_SW_PWM/main/CMakeLists.txt
918 B 06_SW_PWM/main/main.c
244 B 06_SW_PWM/partitions.csv
1.7 KB 06_SW_PWM/README.md
416 B 07_HW_PWM/.devcontainer/devcontainer.json
378 B 07_HW_PWM/CMakeLists.txt
277 B 07_HW_PWM/components/CMakeLists.txt
1.7 KB 07_HW_PWM/components/HW_PWM/pwm.c
742 B 07_HW_PWM/components/HW_PWM/pwm.h
77 B 07_HW_PWM/main/CMakeLists.txt
611 B 07_HW_PWM/main/main.c
244 B 07_HW_PWM/partitions.csv
1.7 KB 07_HW_PWM/README.md
416 B 08_IIC_EXIO/.devcontainer/devcontainer.json
380 B 08_IIC_EXIO/CMakeLists.txt
329 B 08_IIC_EXIO/components/CMakeLists.txt
3.6 KB 08_IIC_EXIO/components/IIC/iic.c
2.1 KB 08_IIC_EXIO/components/IIC/iic.h
518 B 08_IIC_EXIO/components/LED/led.c
590 B 08_IIC_EXIO/components/LED/led.h
5.8 KB 08_IIC_EXIO/components/XL9555/xl9555.c
3.3 KB 08_IIC_EXIO/components/XL9555/xl9555.h
77 B 08_IIC_EXIO/main/CMakeLists.txt
2.3 KB 08_IIC_EXIO/main/main.c
244 B 08_IIC_EXIO/partitions.csv
1.7 KB 08_IIC_EXIO/README.md
416 B 09_IIC_EEPROM/.devcontainer/devcontainer.json
382 B 09_IIC_EEPROM/CMakeLists.txt
5.2 KB 09_IIC_EEPROM/components/24CXX/24cxx.c
1.2 KB 09_IIC_EEPROM/components/24CXX/24cxx.h
359 B 09_IIC_EEPROM/components/CMakeLists.txt
4.6 KB 09_IIC_EEPROM/components/IIC/iic.c
1.5 KB 09_IIC_EEPROM/components/IIC/iic.h
518 B 09_IIC_EEPROM/components/LED/led.c
590 B 09_IIC_EEPROM/components/LED/led.h
5.8 KB 09_IIC_EEPROM/components/XL9555/xl9555.c
3.3 KB 09_IIC_EEPROM/components/XL9555/xl9555.h
77 B 09_IIC_EEPROM/main/CMakeLists.txt
2.7 KB 09_IIC_EEPROM/main/main.c
244 B 09_IIC_EEPROM/partitions.csv
1.7 KB 09_IIC_EEPROM/README.md
416 B 10_SPI_LCD/.devcontainer/devcontainer.json
379 B 10_SPI_LCD/CMakeLists.txt
421 B 10_SPI_LCD/components/CMakeLists.txt
5.6 KB 10_SPI_LCD/components/IIC/iic.c
2.9 KB 10_SPI_LCD/components/IIC/iic.h
22.3 KB 10_SPI_LCD/components/LCD/lcd.c
6.2 KB 10_SPI_LCD/components/LCD/lcd.h
70.9 KB 10_SPI_LCD/components/LCD/lcdfont.h
518 B 10_SPI_LCD/components/LED/led.c
590 B 10_SPI_LCD/components/LED/led.h
2.5 KB 10_SPI_LCD/components/SPI/spi.c
736 B 10_SPI_LCD/components/SPI/spi.h
6.5 KB 10_SPI_LCD/components/XL9555/xl9555.c
4.0 KB 10_SPI_LCD/components/XL9555/xl9555.h
77 B 10_SPI_LCD/main/CMakeLists.txt
2.6 KB 10_SPI_LCD/main/main.c
244 B 10_SPI_LCD/partitions.csv
1.7 KB 10_SPI_LCD/README.md
416 B 11_RTC/.devcontainer/devcontainer.json
375 B 11_RTC/CMakeLists.txt
455 B 11_RTC/components/CMakeLists.txt
5.6 KB 11_RTC/components/IIC/iic.c
2.9 KB 11_RTC/components/IIC/iic.h
22.3 KB 11_RTC/components/LCD/lcd.c
6.2 KB 11_RTC/components/LCD/lcd.h
70.9 KB 11_RTC/components/LCD/lcdfont.h
518 B 11_RTC/components/LED/led.c
590 B 11_RTC/components/LED/led.h
2.4 KB 11_RTC/components/RTC/esprtc.c
842 B 11_RTC/components/RTC/esprtc.h
2.5 KB 11_RTC/components/SPI/spi.c
736 B 11_RTC/components/SPI/spi.h
6.5 KB 11_RTC/components/XL9555/xl9555.c
4.0 KB 11_RTC/components/XL9555/xl9555.h
77 B 11_RTC/main/CMakeLists.txt
2.3 KB 11_RTC/main/main.c
244 B 11_RTC/partitions.csv
1.7 KB 11_RTC/README.md
416 B 12_ADC/.devcontainer/devcontainer.json
375 B 12_ADC/CMakeLists.txt
1.4 KB 12_ADC/components/ADC/adc.c
488 B 12_ADC/components/ADC/adc.h
476 B 12_ADC/components/CMakeLists.txt
5.6 KB 12_ADC/components/IIC/iic.c
2.9 KB 12_ADC/components/IIC/iic.h
22.3 KB 12_ADC/components/LCD/lcd.c
6.2 KB 12_ADC/components/LCD/lcd.h
70.9 KB 12_ADC/components/LCD/lcdfont.h
518 B 12_ADC/components/LED/led.c
590 B 12_ADC/components/LED/led.h
2.5 KB 12_ADC/components/SPI/spi.c
736 B 12_ADC/components/SPI/spi.h
6.5 KB 12_ADC/components/XL9555/xl9555.c
4.0 KB 12_ADC/components/XL9555/xl9555.h
77 B 12_ADC/main/CMakeLists.txt
2.4 KB 12_ADC/main/main.c
244 B 12_ADC/partitions.csv
1.7 KB 12_ADC/README.md
416 B 13_AP3216C/.devcontainer/devcontainer.json
379 B 13_AP3216C/CMakeLists.txt
3.5 KB 13_AP3216C/components/AP3216C/ap3216c.c
627 B 13_AP3216C/components/AP3216C/ap3216c.h
464 B 13_AP3216C/components/CMakeLists.txt
5.6 KB 13_AP3216C/components/IIC/iic.c
2.9 KB 13_AP3216C/components/IIC/iic.h
22.3 KB 13_AP3216C/components/LCD/lcd.c
6.2 KB 13_AP3216C/components/LCD/lcd.h
70.9 KB 13_AP3216C/components/LCD/lcdfont.h
518 B 13_AP3216C/components/LED/led.c
590 B 13_AP3216C/components/LED/led.h
2.5 KB 13_AP3216C/components/SPI/spi.c
736 B 13_AP3216C/components/SPI/spi.h
6.5 KB 13_AP3216C/components/XL9555/xl9555.c
4.0 KB 13_AP3216C/components/XL9555/xl9555.h
77 B 13_AP3216C/main/CMakeLists.txt
2.0 KB 13_AP3216C/main/main.c
244 B 13_AP3216C/partitions.csv
1.7 KB 13_AP3216C/README.md
416 B 14_infrared_trans/.devcontainer/devcontainer.json
386 B 14_infrared_trans/CMakeLists.txt
465 B 14_infrared_trans/components/CMakeLists.txt
11.1 KB 14_infrared_trans/components/EMISSION/emission.c
1.5 KB 14_infrared_trans/components/EMISSION/emission.h
6.7 KB 14_infrared_trans/components/EMISSION/ir_nec_encoder.c
1.0 KB 14_infrared_trans/components/EMISSION/ir_nec_encoder.h
5.6 KB 14_infrared_trans/components/IIC/iic.c
2.9 KB 14_infrared_trans/components/IIC/iic.h
22.3 KB 14_infrared_trans/components/LCD/lcd.c
6.2 KB 14_infrared_trans/components/LCD/lcd.h
70.9 KB 14_infrared_trans/components/LCD/lcdfont.h
518 B 14_infrared_trans/components/LED/led.c
590 B 14_infrared_trans/components/LED/led.h
2.5 KB 14_infrared_trans/components/SPI/spi.c
736 B 14_infrared_trans/components/SPI/spi.h
6.5 KB 14_infrared_trans/components/XL9555/xl9555.c
4.0 KB 14_infrared_trans/components/XL9555/xl9555.h
77 B 14_infrared_trans/main/CMakeLists.txt
1.3 KB 14_infrared_trans/main/main.c
244 B 14_infrared_trans/partitions.csv
1.7 KB 14_infrared_trans/README.md
416 B 15_infrared_recv/.devcontainer/devcontainer.json
385 B 15_infrared_recv/CMakeLists.txt
461 B 15_infrared_recv/components/CMakeLists.txt
5.6 KB 15_infrared_recv/components/IIC/iic.c
2.9 KB 15_infrared_recv/components/IIC/iic.h
22.3 KB 15_infrared_recv/components/LCD/lcd.c
6.2 KB 15_infrared_recv/components/LCD/lcd.h
70.9 KB 15_infrared_recv/components/LCD/lcdfont.h
518 B 15_infrared_recv/components/LED/led.c
590 B 15_infrared_recv/components/LED/led.h
6.7 KB 15_infrared_recv/components/REMOTE/ir_nec_encoder.c
1.0 KB 15_infrared_recv/components/REMOTE/ir_nec_encoder.h
12.0 KB 15_infrared_recv/components/REMOTE/remote.c
2.3 KB 15_infrared_recv/components/REMOTE/remote.h
2.5 KB 15_infrared_recv/components/SPI/spi.c
736 B 15_infrared_recv/components/SPI/spi.h
6.5 KB 15_infrared_recv/components/XL9555/xl9555.c
4.0 KB 15_infrared_recv/components/XL9555/xl9555.h
77 B 15_infrared_recv/main/CMakeLists.txt
1.2 KB 15_infrared_recv/main/main.c
244 B 15_infrared_recv/partitions.csv
1.7 KB 15_infrared_recv/README.md
416 B 16_internal_temp/.devcontainer/devcontainer.json
385 B 16_internal_temp/CMakeLists.txt
461 B 16_internal_temp/components/CMakeLists.txt
5.6 KB 16_internal_temp/components/IIC/iic.c
2.9 KB 16_internal_temp/components/IIC/iic.h
22.3 KB 16_internal_temp/components/LCD/lcd.c
6.2 KB 16_internal_temp/components/LCD/lcd.h
70.9 KB 16_internal_temp/components/LCD/lcdfont.h
518 B 16_internal_temp/components/LED/led.c
590 B 16_internal_temp/components/LED/led.h
1.1 KB 16_internal_temp/components/SENSOR/sensor.c
582 B 16_internal_temp/components/SENSOR/sensor.h
2.5 KB 16_internal_temp/components/SPI/spi.c
736 B 16_internal_temp/components/SPI/spi.h
6.5 KB 16_internal_temp/components/XL9555/xl9555.c
4.0 KB 16_internal_temp/components/XL9555/xl9555.h
77 B 16_internal_temp/main/CMakeLists.txt
2.3 KB 16_internal_temp/main/main.c
244 B 16_internal_temp/partitions.csv
1.7 KB 16_internal_temp/README.md
416 B 17_ds18b20/.devcontainer/devcontainer.json
379 B 17_ds18b20/CMakeLists.txt
463 B 17_ds18b20/components/CMakeLists.txt
5.2 KB 17_ds18b20/components/DS18B20/ds18b20.c
1.3 KB 17_ds18b20/components/DS18B20/ds18b20.h
5.6 KB 17_ds18b20/components/IIC/iic.c
2.9 KB 17_ds18b20/components/IIC/iic.h
22.3 KB 17_ds18b20/components/LCD/lcd.c
6.2 KB 17_ds18b20/components/LCD/lcd.h
70.9 KB 17_ds18b20/components/LCD/lcdfont.h
518 B 17_ds18b20/components/LED/led.c
590 B 17_ds18b20/components/LED/led.h
2.5 KB 17_ds18b20/components/SPI/spi.c
736 B 17_ds18b20/components/SPI/spi.h
6.5 KB 17_ds18b20/components/XL9555/xl9555.c
4.0 KB 17_ds18b20/components/XL9555/xl9555.h
77 B 17_ds18b20/main/CMakeLists.txt
2.8 KB 17_ds18b20/main/main.c
244 B 17_ds18b20/partitions.csv
1.7 KB 17_ds18b20/README.md
416 B 18_dht11/.devcontainer/devcontainer.json
379 B 18_dht11/CMakeLists.txt
459 B 18_dht11/components/CMakeLists.txt
4.4 KB 18_dht11/components/DHT11/dht11.c
1.8 KB 18_dht11/components/DHT11/dht11.h
5.6 KB 18_dht11/components/IIC/iic.c
2.9 KB 18_dht11/components/IIC/iic.h
22.3 KB 18_dht11/components/LCD/lcd.c
6.2 KB 18_dht11/components/LCD/lcd.h
70.9 KB 18_dht11/components/LCD/lcdfont.h
518 B 18_dht11/components/LED/led.c
590 B 18_dht11/components/LED/led.h
2.5 KB 18_dht11/components/SPI/spi.c
736 B 18_dht11/components/SPI/spi.h
6.5 KB 18_dht11/components/XL9555/xl9555.c
4.0 KB 18_dht11/components/XL9555/xl9555.h
77 B 18_dht11/main/CMakeLists.txt
2.5 KB 18_dht11/main/main.c
244 B 18_dht11/partitions.csv
1.7 KB 18_dht11/README.md
416 B 19_rng/.devcontainer/devcontainer.json
379 B 19_rng/CMakeLists.txt
489 B 19_rng/components/CMakeLists.txt
5.6 KB 19_rng/components/IIC/iic.c
2.9 KB 19_rng/components/IIC/iic.h
1.7 KB 19_rng/components/KEY/key.c
525 B 19_rng/components/KEY/key.h
22.3 KB 19_rng/components/LCD/lcd.c
6.2 KB 19_rng/components/LCD/lcd.h
70.9 KB 19_rng/components/LCD/lcdfont.h
518 B 19_rng/components/LED/led.c
590 B 19_rng/components/LED/led.h
599 B 19_rng/components/RNG/rng.c
444 B 19_rng/components/RNG/rng.h
2.5 KB 19_rng/components/SPI/spi.c
736 B 19_rng/components/SPI/spi.h
6.5 KB 19_rng/components/XL9555/xl9555.c
4.0 KB 19_rng/components/XL9555/xl9555.h
77 B 19_rng/main/CMakeLists.txt
2.5 KB 19_rng/main/main.c
244 B 19_rng/partitions.csv
1.7 KB 19_rng/README.md
416 B 20_QMA6100P/.devcontainer/devcontainer.json
380 B 20_QMA6100P/CMakeLists.txt
465 B 20_QMA6100P/components/CMakeLists.txt
5.6 KB 20_QMA6100P/components/IIC/iic.c
2.9 KB 20_QMA6100P/components/IIC/iic.h
22.3 KB 20_QMA6100P/components/LCD/lcd.c
6.2 KB 20_QMA6100P/components/LCD/lcd.h
70.9 KB 20_QMA6100P/components/LCD/lcdfont.h
518 B 20_QMA6100P/components/LED/led.c
590 B 20_QMA6100P/components/LED/led.h
6.4 KB 20_QMA6100P/components/QMA6100P/qma6100p.c
3.2 KB 20_QMA6100P/components/QMA6100P/qma6100p.h
2.5 KB 20_QMA6100P/components/SPI/spi.c
736 B 20_QMA6100P/components/SPI/spi.h
6.5 KB 20_QMA6100P/components/XL9555/xl9555.c
4.0 KB 20_QMA6100P/components/XL9555/xl9555.h
77 B 20_QMA6100P/main/CMakeLists.txt
2.9 KB 20_QMA6100P/main/main.c
244 B 20_QMA6100P/partitions.csv
1.7 KB 20_QMA6100P/README.md
416 B 21_wifi_scan/.devcontainer/devcontainer.json
381 B 21_wifi_scan/CMakeLists.txt
493 B 21_wifi_scan/components/CMakeLists.txt
5.6 KB 21_wifi_scan/components/IIC/iic.c
2.9 KB 21_wifi_scan/components/IIC/iic.h
22.3 KB 21_wifi_scan/components/LCD/lcd.c
6.2 KB 21_wifi_scan/components/LCD/lcd.h
70.9 KB 21_wifi_scan/components/LCD/lcdfont.h
518 B 21_wifi_scan/components/LED/led.c
590 B 21_wifi_scan/components/LED/led.h
2.5 KB 21_wifi_scan/components/SPI/spi.c
736 B 21_wifi_scan/components/SPI/spi.h
5.4 KB 21_wifi_scan/components/WIFI/wifi.c
162 B 21_wifi_scan/components/WIFI/wifi.h
6.5 KB 21_wifi_scan/components/XL9555/xl9555.c
4.0 KB 21_wifi_scan/components/XL9555/xl9555.h
77 B 21_wifi_scan/main/CMakeLists.txt
1.5 KB 21_wifi_scan/main/main.c
244 B 21_wifi_scan/partitions.csv
1.7 KB 21_wifi_scan/README.md
416 B 22_wifi_connect/.devcontainer/devcontainer.json
384 B 22_wifi_connect/CMakeLists.txt
493 B 22_wifi_connect/components/CMakeLists.txt
5.6 KB 22_wifi_connect/components/IIC/iic.c
2.9 KB 22_wifi_connect/components/IIC/iic.h
22.3 KB 22_wifi_connect/components/LCD/lcd.c
6.2 KB 22_wifi_connect/components/LCD/lcd.h
70.9 KB 22_wifi_connect/components/LCD/lcdfont.h
518 B 22_wifi_connect/components/LED/led.c
590 B 22_wifi_connect/components/LED/led.h
2.5 KB 22_wifi_connect/components/SPI/spi.c
736 B 22_wifi_connect/components/SPI/spi.h
4.0 KB 22_wifi_connect/components/WIFI/wifi.c
759 B 22_wifi_connect/components/WIFI/wifi.h
6.5 KB 22_wifi_connect/components/XL9555/xl9555.c
4.0 KB 22_wifi_connect/components/XL9555/xl9555.h
77 B 22_wifi_connect/main/CMakeLists.txt
1.3 KB 22_wifi_connect/main/main.c
244 B 22_wifi_connect/partitions.csv
1.7 KB 22_wifi_connect/README.md
416 B 23_wifi_hotpot/.devcontainer/devcontainer.json
383 B 23_wifi_hotpot/CMakeLists.txt
493 B 23_wifi_hotpot/components/CMakeLists.txt
5.6 KB 23_wifi_hotpot/components/IIC/iic.c
2.9 KB 23_wifi_hotpot/components/IIC/iic.h
22.3 KB 23_wifi_hotpot/components/LCD/lcd.c
6.2 KB 23_wifi_hotpot/components/LCD/lcd.h
70.9 KB 23_wifi_hotpot/components/LCD/lcdfont.h
518 B 23_wifi_hotpot/components/LED/led.c
590 B 23_wifi_hotpot/components/LED/led.h
2.5 KB 23_wifi_hotpot/components/SPI/spi.c
736 B 23_wifi_hotpot/components/SPI/spi.h
3.1 KB 23_wifi_hotpot/components/WIFI/wifi.c
403 B 23_wifi_hotpot/components/WIFI/wifi.h
6.5 KB 23_wifi_hotpot/components/XL9555/xl9555.c
4.0 KB 23_wifi_hotpot/components/XL9555/xl9555.h
77 B 23_wifi_hotpot/main/CMakeLists.txt
1.3 KB 23_wifi_hotpot/main/main.c
244 B 23_wifi_hotpot/partitions.csv
1.7 KB 23_wifi_hotpot/README.md
416 B 24_wifi_UDP/.devcontainer/devcontainer.json
378 B 24_wifi_UDP/CMakeLists.txt
3.4 KB 24_wifi_UDP/components/APP/lwip_demo.c
462 B 24_wifi_UDP/components/APP/lwip_demo.h
5.5 KB 24_wifi_UDP/components/APP/wifi_config.c
725 B 24_wifi_UDP/components/APP/wifi_config.h
477 B 24_wifi_UDP/components/CMakeLists.txt
5.6 KB 24_wifi_UDP/components/IIC/iic.c
2.9 KB 24_wifi_UDP/components/IIC/iic.h
22.3 KB 24_wifi_UDP/components/LCD/lcd.c
6.2 KB 24_wifi_UDP/components/LCD/lcd.h
70.9 KB 24_wifi_UDP/components/LCD/lcdfont.h
518 B 24_wifi_UDP/components/LED/led.c
590 B 24_wifi_UDP/components/LED/led.h
2.5 KB 24_wifi_UDP/components/SPI/spi.c
736 B 24_wifi_UDP/components/SPI/spi.h
6.5 KB 24_wifi_UDP/components/XL9555/xl9555.c
4.0 KB 24_wifi_UDP/components/XL9555/xl9555.h
77 B 24_wifi_UDP/main/CMakeLists.txt
3.6 KB 24_wifi_UDP/main/main.c
244 B 24_wifi_UDP/partitions.csv
1.7 KB 24_wifi_UDP/README.md
416 B 25_wifi_tcpclient/.devcontainer/devcontainer.json
386 B 25_wifi_tcpclient/CMakeLists.txt
3.9 KB 25_wifi_tcpclient/components/APP/lwip_demo.c
462 B 25_wifi_tcpclient/components/APP/lwip_demo.h
5.6 KB 25_wifi_tcpclient/components/APP/wifi_config.c
725 B 25_wifi_tcpclient/components/APP/wifi_config.h
477 B 25_wifi_tcpclient/components/CMakeLists.txt
5.6 KB 25_wifi_tcpclient/components/IIC/iic.c
2.9 KB 25_wifi_tcpclient/components/IIC/iic.h
22.3 KB 25_wifi_tcpclient/components/LCD/lcd.c
6.2 KB 25_wifi_tcpclient/components/LCD/lcd.h
70.9 KB 25_wifi_tcpclient/components/LCD/lcdfont.h
518 B 25_wifi_tcpclient/components/LED/led.c
590 B 25_wifi_tcpclient/components/LED/led.h
2.5 KB 25_wifi_tcpclient/components/SPI/spi.c
736 B 25_wifi_tcpclient/components/SPI/spi.h
6.5 KB 25_wifi_tcpclient/components/XL9555/xl9555.c
4.0 KB 25_wifi_tcpclient/components/XL9555/xl9555.h
77 B 25_wifi_tcpclient/main/CMakeLists.txt
3.7 KB 25_wifi_tcpclient/main/main.c
244 B 25_wifi_tcpclient/partitions.csv
1.7 KB 25_wifi_tcpclient/README.md
416 B 26_wifi_tcpserver/.devcontainer/devcontainer.json
386 B 26_wifi_tcpserver/CMakeLists.txt
4.3 KB 26_wifi_tcpserver/components/APP/lwip_demo.c
462 B 26_wifi_tcpserver/components/APP/lwip_demo.h
5.6 KB 26_wifi_tcpserver/components/APP/wifi_config.c
725 B 26_wifi_tcpserver/components/APP/wifi_config.h
500 B 26_wifi_tcpserver/components/CMakeLists.txt
5.6 KB 26_wifi_tcpserver/components/IIC/iic.c
2.9 KB 26_wifi_tcpserver/components/IIC/iic.h
22.3 KB 26_wifi_tcpserver/components/LCD/lcd.c
6.2 KB 26_wifi_tcpserver/components/LCD/lcd.h
70.9 KB 26_wifi_tcpserver/components/LCD/lcdfont.h
518 B 26_wifi_tcpserver/components/LED/led.c
590 B 26_wifi_tcpserver/components/LED/led.h
2.5 KB 26_wifi_tcpserver/components/SPI/spi.c
736 B 26_wifi_tcpserver/components/SPI/spi.h
6.5 KB 26_wifi_tcpserver/components/XL9555/xl9555.c
4.0 KB 26_wifi_tcpserver/components/XL9555/xl9555.h
77 B 26_wifi_tcpserver/main/CMakeLists.txt
3.7 KB 26_wifi_tcpserver/main/main.c
244 B 26_wifi_tcpserver/partitions.csv
1.7 KB 26_wifi_tcpserver/README.md
416 B basic/.devcontainer/devcontainer.json
374 B basic/CMakeLists.txt
271 B basic/components/CMakeLists.txt
518 B basic/components/LED/led.c
590 B basic/components/LED/led.h
77 B basic/main/CMakeLists.txt
640 B basic/main/main.c
244 B basic/partitions.csv
1.7 KB basic/README.md
300 B README.txt
416 B s3n8/basic/.devcontainer/devcontainer.json
3.2 KB s3n8/basic/.github/copilot-instructions.md
236 B s3n8/basic/CMakeLists.txt
402 B s3n8/basic/components/BSP/CMakeLists.txt
661 B s3n8/basic/components/BSP/DELAY/delay.c
203 B s3n8/basic/components/BSP/DELAY/delay.h
1.2 KB s3n8/basic/components/BSP/LED/led.c
170 B s3n8/basic/components/BSP/LED/led.h
645 B s3n8/basic/components/BSP/USART/usart.c
107 B s3n8/basic/components/BSP/USART/usart.h
88 B s3n8/basic/main/CMakeLists.txt
2.8 KB s3n8/basic/main/hello_world_main.c
0 B s3n8/basic/partitions.csv
1.5 KB s3n8/basic/pytest_hello_world.py
2.4 KB s3n8/basic/README.md
416 B s3n8/mqtt/.devcontainer/devcontainer.json
3.2 KB s3n8/mqtt/.github/copilot-instructions.md
236 B s3n8/mqtt/CMakeLists.txt
541 B s3n8/mqtt/components/BSP/CMakeLists.txt
661 B s3n8/mqtt/components/BSP/DELAY/delay.c
203 B s3n8/mqtt/components/BSP/DELAY/delay.h
1.2 KB s3n8/mqtt/components/BSP/LED/led.c
170 B s3n8/mqtt/components/BSP/LED/led.h
8.5 KB s3n8/mqtt/components/BSP/MQTT/mqtt_app.c
3.7 KB s3n8/mqtt/components/BSP/MQTT/mqtt_app.h
2.6 KB s3n8/mqtt/components/BSP/SENSOR/sensor_sim.c
1003 B s3n8/mqtt/components/BSP/SENSOR/sensor_sim.h
645 B s3n8/mqtt/components/BSP/USART/usart.c
107 B s3n8/mqtt/components/BSP/USART/usart.h
7.5 KB s3n8/mqtt/components/BSP/WIFI/wifi.c
1.7 KB s3n8/mqtt/components/BSP/WIFI/wifi.h
122 B s3n8/mqtt/main/CMakeLists.txt
6.2 KB s3n8/mqtt/main/hello_world_main.c
0 B s3n8/mqtt/partitions.csv
1.5 KB s3n8/mqtt/pytest_hello_world.py
2.4 KB s3n8/mqtt/README.md可读文件预览
README.txt300 B
ESP32-IDF练习源码
本压缩包由开源协会知识库从学习目录中自动精选生成。
已排除安装包、视频、编译缓存、目标文件、可执行文件、私钥和大型第三方依赖。
部分工程需要通过对应 IDE、SDK 或配置文件重新生成依赖后再编译。01_led/README.md1.7 KB
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
# _Sample project_
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This is the simplest buildable example. The example is used by command `idf.py create-project`
that copies the project to user specified path and set it's name. For more information follow the [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project)
## How to use example
We encourage the users to use the example as a template for the new projects.
A recommended way is to follow the instructions on a [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project).
## Example folder contents
The project **sample_project** contains one source file in C language [main.c](main/main.c). The file is located in folder [main](main).
ESP-IDF projects are built using CMake. The project build configuration is contained in `CMakeLists.txt`
files that provide set of directives and instructions describing the project's source files and targets
(executable, library, or both).
Below is short explanation of remaining files in the project folder.
```
├── CMakeLists.txt
├── main
│ ├── CMakeLists.txt
│ └── main.c
└── README.md This is the file you are currently reading
```
Additionally, the sample project contains Makefile and component.mk files, used for the legacy Make based build system.
They are not used or needed when building with CMake and idf.py.
02_key_led_EXTI_UART/README.md1.7 KB
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
# _Sample project_
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This is the simplest buildable example. The example is used by command `idf.py create-project`
that copies the project to user specified path and set it's name. For more information follow the [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project)
## How to use example
We encourage the users to use the example as a template for the new projects.
A recommended way is to follow the instructions on a [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project).
## Example folder contents
The project **sample_project** contains one source file in C language [main.c](main/main.c). The file is located in folder [main](main).
ESP-IDF projects are built using CMake. The project build configuration is contained in `CMakeLists.txt`
files that provide set of directives and instructions describing the project's source files and targets
(executable, library, or both).
Below is short explanation of remaining files in the project folder.
```
├── CMakeLists.txt
├── main
│ ├── CMakeLists.txt
│ └── main.c
└── README.md This is the file you are currently reading
```
Additionally, the sample project contains Makefile and component.mk files, used for the legacy Make based build system.
They are not used or needed when building with CMake and idf.py.
01_led/main/main.c574 B
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "led.h"
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
esp_err_t ret;
ret = nvs_flash_init(); /* 初始化 NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
led_init(); /* 初始化 LED */
while (1)
{
LED_TOGGLE();
vTaskDelay(500); /* 延时 500ms */
}
}
02_key_led_EXTI_UART/main/main.c1.4 KB
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "led.h"
#include "key.h"
#include "exit.h"
#include "uart.h"
#include <stdio.h>
#include "string.h"
void app_main(void)
{
uint8_t key;
esp_err_t ret;
uint8_t len = 0;
uint16_t times = 0;
unsigned char data[RX_BUF_SIZE] = {0};
ret = nvs_flash_init(); /* 初始化 NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
led_init();
key_init();
exit_init();
usart_init(115200);
uint8_t buf[30]={0};
sprintf((char*)buf,"\nthe message you send is: \r\n");
while (1)
{
uart_get_buffered_data_len(USART_UX,(size_t *)&len);
if(len>0)
{
memset(data,0,RX_BUF_SIZE);
//printf("\nthe message you send is: \r\n");
uart_write_bytes(USART_UX,(const char*)buf,strlen((const char*)buf));
uart_read_bytes(USART_UX, data ,len,100);
uart_write_bytes(USART_UX,(const char*)data,strlen((const char*)data));
}
else
{
times++;
if(times % 500==0)
{
printf("Hello CDUT!\r\n");
}
}
vTaskDelay(10);
}
}
03_ESPTIMER/main/main.c695 B
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "esp_system.h"
#include "esp_chip_info.h"
#include "esp_psram.h"
#include "esp_flash.h"
#include "led.h"
#include "time.h"
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
esp_err_t ret;
ret = nvs_flash_init(); /* 初始化 NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
led_init();
esptim_int_init(500000);//初始化定时器,tps=500000,即500ms触发一次
while (1)
{
}
}
04_GPTIMER/main/main.c1.2 KB
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "nvs_flash.h"
#include "esp_log.h"
#include "led.h"
#include "gptime.h"
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
uint8_t record;
esp_err_t ret;
gptimer_event_t g_tim_evente;
ret = nvs_flash_init(); /* 初始化 NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES ||
ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
led_init(); /* 初始化 LED */
gptim_int_init(100, 1000000); /* 初始化通用定时器 */
while (1)
{
record = 1;
/* 打印通用定时器发生一次计数事件后获取到的值 */
if (xQueueReceive(queue, &g_tim_evente, 2000))
{
ESP_LOGI("GPTIMER_ALARM",
"定时器报警, 计数值: %llu",
g_tim_evente.event_count);
record--;
}
else
{
ESP_LOGW("GPTIMER_ALARM", "错过一次计数事件");
}
}
vQueueDelete(queue);
}
05_watch_dog/main/main.c1.0 KB
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "nvs_flash.h"
#include "led.h"
#include "key.h"
#include "wdt.h"
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
esp_err_t rets;
rets = nvs_flash_init(); /* 初始化NVS */
if (rets == ESP_ERR_NVS_NO_FREE_PAGES || rets == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
rets = nvs_flash_init();
}
led_init(); /* 初始化LED */
key_init(); /* 初始化按键 */
wdt_init(5000, 1000000); /* 初始化定时器 */
LED(0); /* LED灯常亮 */
while (1)
{
if (key_scan(0) == BOOT_PRES) /* 如果BOOT按下则喂狗 */
{
restart_timer(1000000); /* 喂狗 */
}
vTaskDelay(10); /* LED闪烁 */
}
}
06_SW_PWM/main/main.c918 B
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "pwm.h"
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
esp_err_t ret;
uint8_t dir = 1;
uint16_t ledpwmval = 0;
ret = nvs_flash_init(); /* 初始化 NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
pwm_init(10,1000);
while(1)
{
vTaskDelay(10);
if(dir==1)
{
ledpwmval += 5;
}
else
{
ledpwmval -= 5;
}
if(ledpwmval>=1005)
{
dir=0;
}
else if(ledpwmval<=5)
{
dir=1;
}
/* 设置占空比 */
pwm_set_duty(ledpwmval);
}
}
07_HW_PWM/main/main.c611 B
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "pwm.h"
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
esp_err_t ret;
ret = nvs_flash_init(); /* 初始化 NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES ||
ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
pwm_init(13,5000); /* 初始化 PWM */
while (1)
{
vTaskDelay(10);
pwm_set_duty(LEDC_PWM_DUTY); /* 设置占空比 */
}
}
08_IIC_EXIO/main/main.c2.3 KB
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs_flash.h"
#include "esp_system.h"
#include "esp_chip_info.h"
#include "esp_psram.h"
#include "esp_flash.h"
#include "led.h"
#include "xl9555.h"
#include "iic.h"
#include "driver/gpio.h"
i2c_obj_t i2c0_master;
void show_mesg(void)
{
/* 串口输出实验信息 */
printf("\n");
printf("********************************\n");
printf("ESP32-S3\n");
printf("EXIO TEST\n");
printf("ATOM@ALIENTEK\n");
printf("KEY0:Beep On, KEY1:Beep Off\n");
printf("KEY2:LED On, KEY3:LED Off\n");
printf("********************************\n");
printf("\n");
}
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
/**
* @brief 程序入口
* @param 无
* @retval 无
*/
void app_main(void)
{
uint8_t key;
esp_err_t ret;
ret = nvs_flash_init(); /* 初始化NVS */
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
led_init(); /* 初始化LED */
i2c0_master = iic_init(I2C_NUM_0); /* 初始化IIC0 */
xl9555_init(i2c0_master); /* 初始化XL9555 */
show_mesg(); /* 显示实验信息 */
while(1)
{
key = xl9555_key_scan(0);
switch (key)
{
case KEY0_PRES:
{
printf("KEY0 has been pressed \n");
xl9555_pin_write(BEEP_IO, 0);
break;
}
case KEY1_PRES:
{
printf("KEY1 has been pressed \n");
xl9555_pin_write(BEEP_IO, 1);
break;
}
case KEY2_PRES:
{
printf("KEY2 has been pressed \n");
LED(0);
break;
}
case KEY3_PRES:
{
printf("KEY3 has been pressed \n");
LED(1);
break;
}
default:
{
break;
}
}
if (XL9555_INT == 0)
{
printf("123");
}
vTaskDelay(200);
}
}
02_key_led_EXTI_UART/components/EXIT/exit.h187 B
#ifndef __EXIT_H__
#define __EXIT_H__
#include "driver/gpio.h"
#define KEY1_INT_GPIO_PIN GPIO_NUM_0
#define KEY1 gpio_get_level(KEY1_INT_GPIO_PIN)
void exit_init(void);
#endif03_ESPTIMER/components/LED/led.h590 B
#ifndef __LED_H__
#define __LED_H__
#include "driver/gpio.h"
#define LED_GPIO_PIN GPIO_NUM_1
enum GPIO_OUTPUT_STATE
{
PIN_RESET,
PIN_SET
};
#define LED(x) do { x ? \
gpio_set_level(LED_GPIO_PIN, PIN_SET) : \
gpio_set_level(LED_GPIO_PIN, PIN_RESET); \
} while(0) /* LED翻转 */
#define LED_TOGGLE() do { gpio_set_level(LED_GPIO_PIN, !gpio_get_level(LED_GPIO_PIN)); } while(0) /* LED翻转 */
void led_init(void);
#endif04_GPTIMER/components/LED/led.h590 B
#ifndef __LED_H__
#define __LED_H__
#include "driver/gpio.h"
#define LED_GPIO_PIN GPIO_NUM_1
enum GPIO_OUTPUT_STATE
{
PIN_RESET,
PIN_SET
};
#define LED(x) do { x ? \
gpio_set_level(LED_GPIO_PIN, PIN_SET) : \
gpio_set_level(LED_GPIO_PIN, PIN_RESET); \
} while(0) /* LED翻转 */
#define LED_TOGGLE() do { gpio_set_level(LED_GPIO_PIN, !gpio_get_level(LED_GPIO_PIN)); } while(0) /* LED翻转 */
void led_init(void);
#endif01_led/.devcontainer/devcontainer.json416 B
{
"name": "ESP-IDF QEMU",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"idf.espIdfPath": "/opt/esp/idf",
"idf.toolsPath": "/opt/esp",
"idf.gitPath": "/usr/bin/git"
},
"extensions": [
"espressif.esp-idf-extension",
"espressif.esp-idf-web"
]
}
},
"runArgs": ["--privileged"]
}02_key_led_EXTI_UART/.devcontainer/devcontainer.json416 B
{
"name": "ESP-IDF QEMU",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"idf.espIdfPath": "/opt/esp/idf",
"idf.toolsPath": "/opt/esp",
"idf.gitPath": "/usr/bin/git"
},
"extensions": [
"espressif.esp-idf-extension",
"espressif.esp-idf-web"
]
}
},
"runArgs": ["--privileged"]
}