new file: .vscode/settings.json
new file: "\345\256\236\351\252\2146 \345\277\203\347\216\207&\350\241\200\346\260\247\345\256\236\351\252\214.pptx" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/CORE/core_cm3.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/CORE/core_cm3.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/CORE/startup_stm32f10x_md.s" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/BLE/ble_app.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/BLE/ble_app.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/BLE/ble_cfg.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/BLE/ble_uart.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/BLE/ble_uart.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/KEY/key.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/KEY/key.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/LED/led.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/LED/led.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/MAX30102/max30102.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/MAX30102/max30102.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/OLED/bmp.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/OLED/oled.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/OLED/oled.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/OLED/oledfont.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/USART2/usart2.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/HARDWARE/USART2/usart2.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/NRF24L01.hex" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project.axf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project.build_log.htm" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project.hex" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project.htm" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project.lnp" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project.sct" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/Project_sct.Bak" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/STM32_Project.dep" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/adc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/adc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/adc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/adxl345.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/adxl345.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/adxl345.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/core_cm3.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/core_cm3.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/core_cm3.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/delay.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/delay.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/delay.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/ds18b20.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/ds18b20.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/ds18b20.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/exti.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/exti.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/exti.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/key.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/key.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/key.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/led.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/led.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/led.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/main.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/main.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/main.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/misc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/misc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/misc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/oled.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/oled.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/oled.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/oled_i2c.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/oled_i2c.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/pedometer.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/pedometer.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/pedometer.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/rtc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/rtc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/rtc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/startup_stm32f10x_md.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/startup_stm32f10x_md.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_adc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_adc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_adc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_bkp.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_bkp.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_bkp.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_exti.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_exti.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_exti.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_flash.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_flash.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_flash.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_gpio.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_gpio.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_gpio.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_i2c.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_i2c.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_i2c.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_it.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_it.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_it.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_pwr.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_pwr.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_pwr.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_rcc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_rcc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_rcc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_rtc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_rtc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_rtc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_tim.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_tim.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_tim.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_usart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_usart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stm32f10x_usart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stmflash.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stmflash.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/stmflash.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/sys.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/sys.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/sys.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/system_stm32f10x.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/system_stm32f10x.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/system_stm32f10x.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/test.hex" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/timer.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/timer.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/timer.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/usart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/usart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/OBJ/usart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/misc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_adc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_bkp.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_can.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_cec.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_crc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_dac.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_dbgmcu.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_dma.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_exti.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_flash.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_fsmc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_gpio.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_i2c.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_iwdg.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_pwr.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_rcc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_rtc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_sdio.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_spi.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_tim.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_usart.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/inc/stm32f10x_wwdg.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/misc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_adc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_bkp.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_can.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_cec.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_crc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_dac.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_dbgmcu.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_dma.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_exti.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_flash.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_fsmc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_gpio.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_i2c.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_iwdg.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_pwr.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_rcc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_rtc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_sdio.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_spi.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_tim.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_usart.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/STM32F10x_FWLib/src/stm32f10x_wwdg.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/SYSTEM/delay/delay.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/SYSTEM/delay/delay.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/SYSTEM/sys/sys.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/SYSTEM/sys/sys.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/SYSTEM/usart/usart.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/SYSTEM/usart/usart.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/DebugConfig/ADXL345_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/DebugConfig/ADXL345_STM32F103T6_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/DebugConfig/DHT11_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/DebugConfig/DS18B20_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/DebugConfig/Project_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/DebugConfig/Target_1_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Listings/STM32_CGMCU.map" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Listings/startup_stm32f10x_md.lst" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ExtDll.iex" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU.axf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU.build_log.htm" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU.hex" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU.htm" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU.lnp" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU.sct" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU_ADXL345.dep" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU_DHT11.dep" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU_DS18B20.dep" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/STM32_CGMCU_sct.Bak" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/adxl345.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/adxl345.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/adxl345.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ble_app.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ble_app.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ble_app.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ble_uart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ble_uart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ble_uart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/core_cm3.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/core_cm3.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/core_cm3.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/delay.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/delay.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/delay.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/dht11.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/dht11.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/dht11.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ds18b20.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ds18b20.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/ds18b20.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/iic.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/iic.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/iic.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/led.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/led.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/led.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/main.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/main.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/main.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/max30102.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/max30102.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/max30102.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/misc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/misc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/misc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/oled.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/oled.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/oled.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/startup_stm32f10x_md.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/startup_stm32f10x_md.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_dma.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_dma.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_dma.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_gpio.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_gpio.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_gpio.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_it.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_it.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_it.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_rcc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_rcc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_rcc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_tim.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_tim.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_tim.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_usart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_usart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/stm32f10x_usart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/sys.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/sys.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/sys.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/system_stm32f10x.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/system_stm32f10x.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/system_stm32f10x.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/usart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/usart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/usart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/usart2.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/usart2.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/Objects/usart2.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/STM32_CGMCU.uvguix.KevinFlyn" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/STM32_CGMCU.uvguix.monjack" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/STM32_CGMCU.uvguix.shb" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/STM32_CGMCU.uvoptx" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/STM32_CGMCU.uvprojx" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/main.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/stm32f10x.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/stm32f10x_conf.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/stm32f10x_it.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/stm32f10x_it.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/system_stm32f10x.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/MAX30102\344\276\213\347\250\213/USER/system_stm32f10x.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/01 STM32\346\216\247\345\210\266max30102\350\257\273\345\217\226\350\241\200\346\260\247\345\277\203\347\216\207\346\225\260\346\215\256(keil5\345\267\245\347\250\213).pdf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/MAX30102.pdf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\346\250\241\345\235\227\344\275\277\347\224\250\350\257\264\346\230\216.pdf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/MAX30102\345\277\203\347\216\207\350\241\200\346\260\247\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/csdn.txt" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/BLE/ble_app.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/BLE/ble_app.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/BLE/ble_cfg.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/BLE/ble_uart.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/BLE/ble_uart.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/CORE/core_cm3.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/CORE/core_cm3.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/CORE/startup_stm32f10x_md.s" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/KEY/key.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/KEY/key.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/LED/led.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/LED/led.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/OLED/bmp.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/OLED/oled.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/OLED/oled.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/OLED/oledfont.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/USART2/usart2.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/HARDWARE/USART2/usart2.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/misc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_adc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_bkp.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_can.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_cec.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_crc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_dac.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_dbgmcu.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_dma.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_exti.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_flash.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_fsmc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_gpio.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_i2c.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_iwdg.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_pwr.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_rcc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_rtc.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_sdio.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_spi.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_tim.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_usart.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/inc/stm32f10x_wwdg.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/misc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_adc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_bkp.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_can.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_cec.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_crc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_dac.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_dbgmcu.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_dma.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_exti.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_flash.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_fsmc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_gpio.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_i2c.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_iwdg.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_pwr.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_rcc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_rtc.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_sdio.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_spi.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_tim.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_usart.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/STM32F10x_FWLib/src/stm32f10x_wwdg.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/Timer/timer.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/Timer/timer.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/adc/adcx.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/adc/adcx.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/delay/delay.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/delay/delay.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/sys/sys.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/sys/sys.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/usart/usart.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/SYSTEM/usart/usart.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/DebugConfig/DHT11_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/DebugConfig/Target_1_STM32F103C8_1.0.0.dbgconf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/EventRecorderStub.scvd" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Listings/STM32_CGMCU.map" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Listings/startup_stm32f10x_md.lst" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU.axf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU.build_log.htm" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU.hex" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU.htm" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU.lnp" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU.sct" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/STM32_CGMCU_DHT11.dep" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/adcx.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/adcx.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/adcx.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/ble_app.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/ble_app.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/ble_app.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/ble_uart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/ble_uart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/ble_uart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/core_cm3.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/core_cm3.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/core_cm3.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/delay.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/delay.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/delay.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/key.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/key.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/key.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/led.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/led.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/led.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/main.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/main.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/main.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/misc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/misc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/misc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/oled.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/oled.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/oled.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/startup_stm32f10x_md.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/startup_stm32f10x_md.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_adc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_adc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_adc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_dma.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_dma.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_dma.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_gpio.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_gpio.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_gpio.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_it.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_it.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_it.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_rcc.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_rcc.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_rcc.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_tim.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_tim.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_tim.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_usart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_usart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/stm32f10x_usart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/sys.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/sys.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/sys.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/system_stm32f10x.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/system_stm32f10x.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/system_stm32f10x.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/timer.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/timer.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/timer.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/usart.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/usart.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/usart.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/usart2.crf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/usart2.d" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/Objects/usart2.o" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/STM32_CGMCU.uvguix.KevinFlyn" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/STM32_CGMCU.uvguix.monjack" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/STM32_CGMCU.uvguix.shb" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/STM32_CGMCU.uvoptx" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/STM32_CGMCU.uvprojx" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/main.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/stm32f10x.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/stm32f10x_conf.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/stm32f10x_it.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/stm32f10x_it.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/system_stm32f10x.c" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/1.\344\273\243\347\240\201/USER/system_stm32f10x.h" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/PulseSensorAmpedGettingStartedGuide.pdf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/\345\256\230\347\275\221\347\275\221\345\235\200.txt" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/PulseSensor\345\277\203\347\216\207\344\274\240\346\204\237\345\231\250\350\265\204\346\226\231/2.\346\226\207\346\241\243/\350\204\211\346\220\217\346\250\241\345\235\227\344\275\277\347\224\250\350\257\264\346\230\216\344\271\246V2.1.pdf" new file: "\347\250\213\345\272\217\346\272\220\347\240\201/XCOM\344\270\262\345\217\243\345\212\251\346\211\213/XCOM V2.3.exe"
This commit is contained in:
320
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/BLE/ble_app.c
Normal file
320
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/BLE/ble_app.c
Normal file
@ -0,0 +1,320 @@
|
||||
#include "ble_app.h"
|
||||
#include "ble_uart.h"
|
||||
#include "ble_cfg.h"
|
||||
#include "usart2.h"
|
||||
#include "usart.h"
|
||||
#include "string.h"
|
||||
#include "led.h"
|
||||
#include "delay.h"
|
||||
#include "key.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
|
||||
//ALIENTEK STM32开发板
|
||||
//ATK-BLE01模块功能驱动
|
||||
//正点原子@ALIENTEK
|
||||
//技术论坛:www.openedv.com
|
||||
//修改日期:2020/7/2
|
||||
//版本:V1.0
|
||||
//版权所有,盗版必究。
|
||||
//Copyright(C) 广州市星翼电子科技有限公司 2020-2030
|
||||
//All rights reserved
|
||||
//********************************************************************************
|
||||
//无
|
||||
|
||||
|
||||
//BLE模块IO初始化
|
||||
void Ble_IoInit(void)
|
||||
{
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); //使能PA端口时钟
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11; //BLE_WKUP
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure); //推挽输出 ,IO口速度为50MHz
|
||||
|
||||
BLE_WKUP = 1;
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4; //BLE_STA
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD; //下拉输入
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; //IO口速度为50MHz
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure); //根据设定参数初始化GPIOA.4
|
||||
|
||||
usart2_init(115200);//初始化串口2
|
||||
}
|
||||
|
||||
u8 sendbuf[50];
|
||||
//BLE模块参数配置
|
||||
void Ble_SetInit(void)
|
||||
{
|
||||
|
||||
LED0 = 0; /*LED0亮*/
|
||||
|
||||
/*****进入配置模式*****/
|
||||
while (ble_send_cmd("+++a", "a+ok", 5))
|
||||
{
|
||||
if (!ble_send_cmd("+++a", "ERROR", 10)) break; /**有可能模块已在配置模式,这时发送+++a,会返回error*/
|
||||
|
||||
LED1 = ~LED1;
|
||||
delay_ms(100);
|
||||
}
|
||||
|
||||
/*****AT测试*****/
|
||||
if (!ble_send_cmd("AT", "OK", 5))
|
||||
{
|
||||
printf("AT OK\r\n");
|
||||
}
|
||||
|
||||
/*****蓝牙名称设置*****/
|
||||
sprintf((char *)sendbuf, "AT+NAME=%s", BLE_NAME);
|
||||
|
||||
if (!ble_send_cmd(sendbuf, "OK", 10))
|
||||
{
|
||||
printf("%s OK\r\n", sendbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s ERROR\r\n", sendbuf);
|
||||
}
|
||||
|
||||
/*****开机欢迎语设置*****/
|
||||
sprintf((char *)sendbuf, "AT+HELLO=%s", BLE_HELLO);
|
||||
|
||||
if (!ble_send_cmd(sendbuf, "OK", 10))
|
||||
{
|
||||
printf("%s OK\r\n", sendbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s ERROR\r\n", sendbuf);
|
||||
}
|
||||
|
||||
/*****发射功率设置*****/
|
||||
sprintf((char *)sendbuf, "AT+TPL=%d", BLE_TP_P2dBm);
|
||||
|
||||
if (!ble_send_cmd(sendbuf, "OK", 10))
|
||||
{
|
||||
printf("%s OK\r\n", sendbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s ERROR\r\n", sendbuf);
|
||||
}
|
||||
|
||||
/*****串口设置*****/
|
||||
sprintf((char *)sendbuf, "AT+UART=%d,%d,%d,%d", BLE_UARTBPS, BLE_UARTDATE, BLE_UARTPR, BLE_UARTSTOP);
|
||||
|
||||
if (!ble_send_cmd(sendbuf, "OK", 10))
|
||||
{
|
||||
printf("%s OK\r\n", sendbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s ERROR\r\n", sendbuf);
|
||||
}
|
||||
|
||||
/*****广播速度设置*****/
|
||||
sprintf((char *)sendbuf, "AT+ADPTIM=%d", BLE_ADPTIM );
|
||||
|
||||
if (!ble_send_cmd(sendbuf, "OK", 10))
|
||||
{
|
||||
printf("%s OK\r\n", sendbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s ERROR\r\n", sendbuf);
|
||||
}
|
||||
|
||||
/*****链路匹配连接设置*****/
|
||||
#if BLE_LINKPASSEN
|
||||
|
||||
if (!ble_send_cmd("AT+LINKPASSEN=ON", "OK", 10)) /*使能*/
|
||||
{
|
||||
printf("AT+LINKPASSEN=ON OK\r\n");
|
||||
}else
|
||||
{
|
||||
printf("AT+LINKPASSEN=ON ERROR\r\n");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (!ble_send_cmd("AT+LINKPASSEN=OFF", "OK", 10)) /*关闭*/
|
||||
{
|
||||
printf("AT+LINKPASSEN=OFF OK\r\n");
|
||||
}else
|
||||
{
|
||||
printf("AT+LINKPASSEN=OFF ERROR\r\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*****板载LED设置*****/
|
||||
#if BLE_LEDEN
|
||||
|
||||
if (!ble_send_cmd("AT+LEDEN=ON", "OK", 10)) /*使能*/
|
||||
{
|
||||
printf("AT+LEDEN=ON OK\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("AT+LEDEN=ON ERROR\r\n");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (!ble_send_cmd("AT+LEDEN=OFF", "OK", 50)) /*关闭*/
|
||||
{
|
||||
printf("AT+LEDEN=OFF OK\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("AT+LEDEN=OFF ERROR\r\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*****从设备断连睡眠设置*****/
|
||||
#if BLE_SLAVESLEEPEN
|
||||
|
||||
if (!ble_send_cmd("AT+SLAVESLEEPEN=ON", "OK", 10)) /*使能*/
|
||||
{
|
||||
printf("AT+SLAVESLEEPEN=ON OK\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("AT+SLAVESLEEPEN=ON ERROR\r\n");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (!ble_send_cmd("AT+SLAVESLEEPEN=OFF", "OK", 10)) /*关闭*/
|
||||
{
|
||||
printf("AT+SLAVESLEEPEN=OFF OK\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("AT+SLAVESLEEPEN=OFF ERROR\r\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*****蓝牙最大输出设置*****/
|
||||
#if BLE_MAXPUT
|
||||
|
||||
if (!ble_send_cmd("AT+MAXPUT=ON", "OK", 10)) /*使能*/
|
||||
{
|
||||
printf("AT+MAXPUT=ON OK\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("AT+MAXPUT=ON ERROR\r\n");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (!ble_send_cmd("AT+MAXPUT=OFF", "OK", 10)) /*关闭*/
|
||||
{
|
||||
printf("AT+MAXPUT=OFF OK\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("AT+MAXPUT=OFF ERROR\r\n");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*****工作模式设置(模式设置后,模块立即复位进入透传模式)*****/
|
||||
sprintf((char *)sendbuf, "AT+MODE=%c", BLE_MODE_S );
|
||||
|
||||
if (!ble_send_cmd(sendbuf, "OK", 10))
|
||||
{
|
||||
printf("%s OK\r\n", sendbuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s ERROR\r\n", sendbuf);
|
||||
}
|
||||
|
||||
LED0 = 1;/*LED0灭*/
|
||||
}
|
||||
|
||||
/*BLE模块数据发送处理*/
|
||||
void Ble_SendData(float data, float data2)
|
||||
{
|
||||
u2_printf("%.1f bmp %.1f %% ",data,data2);
|
||||
}
|
||||
|
||||
/*BLE模块接收数据处理*/
|
||||
void Ble_ReceData(void)
|
||||
{
|
||||
u16 i = 0;
|
||||
u16 len = 0;
|
||||
|
||||
//有数据来了
|
||||
if (USART2_RX_STA & 0x8000)
|
||||
{
|
||||
len = USART2_RX_STA & 0X7FFF;
|
||||
USART2_RX_BUF[len] = 0; //添加结束符
|
||||
USART2_RX_STA = 0;
|
||||
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
while (USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET); //循环发送,直到发送完毕
|
||||
USART_SendData(USART1, USART2_RX_BUF[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*BLE进程处理*/
|
||||
void Ble_Process(double data, double data2)
|
||||
{
|
||||
u8 BLE_LINK = 0; //1:蓝牙连接 0:未连接
|
||||
static u8 flag1, flag2 = 0;
|
||||
|
||||
Ble_SendData(data, data2);/*数据发送处理*/
|
||||
|
||||
|
||||
/*数据接收处理*/
|
||||
Ble_ReceData();
|
||||
|
||||
/*BLE连接处理*/
|
||||
if (BLE_STA)
|
||||
{
|
||||
BLE_LINK = 1; //蓝牙连接
|
||||
|
||||
if (!flag1)
|
||||
{
|
||||
flag1 = 1;
|
||||
flag2 = 0;
|
||||
printf("\r\nble connect!\r\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BLE_LINK = 0; //蓝牙断开
|
||||
|
||||
if (!flag2)
|
||||
{
|
||||
|
||||
flag2 = 1;
|
||||
flag1 = 0;
|
||||
printf("\r\nble disconnect!\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Ble_Init(void)
|
||||
{
|
||||
Ble_IoInit(); //BLE引脚初始化
|
||||
Ble_SetInit();//BLE参数配置
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
#ifndef _BLE_APP_H_
|
||||
#define _BLE_APP_H_
|
||||
|
||||
#include "sys.h"
|
||||
#include "ble_cfg.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//ATK-BLE01ģ<31>鹦<EFBFBD><E9B9A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2020/7/2
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2020-2030
|
||||
//All rights reserved
|
||||
//********************************************************************************
|
||||
//<2F><>
|
||||
|
||||
#define BLE_STA PAin(4)
|
||||
#define BLE_WKUP PAout(11)
|
||||
|
||||
void Ble_Test(void);
|
||||
void Ble_Process(double data, double data2);
|
||||
void Ble_Init(void);
|
||||
#endif
|
||||
|
@ -0,0 +1,76 @@
|
||||
#ifndef _BLE_CFG_H
|
||||
#define _BLE_CFG_H
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK Mini STM32<33><32><EFBFBD><EFBFBD><EFBFBD>忪<EFBFBD><E5BFAA><EFBFBD><EFBFBD>
|
||||
//ATK-BLE01ģ<31><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:2020/7/2
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2020-2030
|
||||
//All rights reserved
|
||||
//********************************************************************************
|
||||
//<2F><>
|
||||
|
||||
/*******************<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>***********************/
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
||||
#define BLE_NAME "ATK-WRJ"
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӭ<EFBFBD><D3AD>*/
|
||||
#define BLE_HELLO "ATK-WRJ01"
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD>ģʽ*/
|
||||
#define BLE_MODE_M 'M' /*<2A><>ģʽ(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)*/
|
||||
#define BLE_MODE_S 'S' /*<2A><>ģʽ(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)*/
|
||||
#define BLE_MODE_O 'O' /*<2A>۲<EFBFBD>ģʽ(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,ɨ<><C9A8><EFBFBD>㲥<EFBFBD><E3B2A5><EFBFBD><EFBFBD>)*/
|
||||
#define BLE_MODE_B 'B' /*<2A>㲥ģʽ(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>㲥<EFBFBD>û<EFBFBD><C3BB>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)*/
|
||||
#define BLE_MODE_I 'I' /*iBeacon(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>㲥<EFBFBD>ض<EFBFBD><D8B6><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD>ڶ<EFBFBD>λ)*/
|
||||
|
||||
/*<2A><><EFBFBD>书<EFBFBD><E4B9A6>*/
|
||||
#define BLE_TP_N14dBm 1 /*-14dBm*/
|
||||
#define BLE_TP_N11dBm 2 /*-11dBm*/
|
||||
#define BLE_TP_N8dBm 3 /*-8dBm*/
|
||||
#define BLE_TP_N5dBm 4 /*-5dBm*/
|
||||
#define BLE_TP_N2dBm 5 /*-2dBm*/
|
||||
#define BLE_TP_P2dBm 6 /*+2dBm*/
|
||||
#define BLE_TP_P4dBm 7 /*+4dBm*/
|
||||
#define BLE_TP_P8dBm 8 /*+8dBm*/
|
||||
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
||||
#define BLE_UARTBPS 115200 /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Χ:1200-921600
|
||||
(1200,2400,4800,9600,14400,19200<30><30>38400<30><30>43000
|
||||
57600<30><30>76800<30><30>115200<30><30>128000<30><30>230400<30><30>256000<30><30>460800
|
||||
921600)
|
||||
*/
|
||||
#define BLE_UARTDATE 8 /*<2A><><EFBFBD><EFBFBD>λ*/
|
||||
#define BLE_UARTSTOP 1 /*ֹͣλ*/
|
||||
#define BLE_UARTPR 0 /*<2A><>У<EFBFBD><D0A3>*/
|
||||
|
||||
/*<2A>㲥<EFBFBD>ٶ<EFBFBD>*/
|
||||
#define BLE_ADPTIM 5 /*<2A><>λ:10ms */
|
||||
|
||||
/*<2A><>·ƥ<C2B7><C6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>*/
|
||||
#define BLE_LINKPASSEN 0
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD>LEDʹ<44><CAB9>*/
|
||||
#define BLE_LEDEN 1
|
||||
|
||||
/*<2A><><EFBFBD>豸<EFBFBD><E8B1B8><EFBFBD><EFBFBD>˯<EFBFBD><CBAF>ʹ<EFBFBD><CAB9>*/
|
||||
#define BLE_SLAVESLEEPEN 0
|
||||
|
||||
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>*/
|
||||
#define BLE_MAXPUT 0
|
||||
|
||||
/************************************************/
|
||||
|
||||
/*LED<45><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
||||
|
||||
#define LED0_ON "+LED0:ON"
|
||||
#define LED0_OFF "+LED0:OFF"
|
||||
|
||||
#endif
|
@ -0,0 +1,78 @@
|
||||
#include "ble_uart.h"
|
||||
#include "delay.h"
|
||||
#include "string.h"
|
||||
#include "usart2.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//ATK-BLE01ģ<31><C4A3><EFBFBD>ײ㴦<D7B2><E3B4A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2020/7/2
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2020-2030
|
||||
//All rights reserved
|
||||
//********************************************************************************
|
||||
//<2F><>
|
||||
|
||||
//BLE<4C><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>Ӧ<EFBFBD><D3A6>
|
||||
//str:<3A>ڴ<EFBFBD><DAB4><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ֵ:0,û<>еõ<D0B5><C3B5>ڴ<EFBFBD><DAB4><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>,<2C>ڴ<EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>(str<74><72>λ<EFBFBD><CEBB>)
|
||||
u8 *ble_check_cmd(u8 *str)
|
||||
{
|
||||
char *strx = 0;
|
||||
|
||||
if (USART2_RX_STA & 0X8000) //<2F><><EFBFBD>յ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
USART2_RX_BUF[USART2_RX_STA & 0X7FFF] = 0; //<2F><><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD>
|
||||
strx = strstr((const char *)USART2_RX_BUF, (const char *)str);
|
||||
}
|
||||
|
||||
return (u8 *)strx;
|
||||
}
|
||||
//BLE<4C><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//cmd:<3A><><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>(<28><><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ӻس<D3BB><D8B3><EFBFBD>),<2C><>cmd<0XFF<46><46>ʱ<EFBFBD><CAB1>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD>緢<EFBFBD><E7B7A2>0X1A),<2C><><EFBFBD>ڵ<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>.
|
||||
//ack:<3A>ڴ<EFBFBD><DAB4><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>,<2C><><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>Ҫ<EFBFBD>ȴ<EFBFBD>Ӧ<EFBFBD><D3A6>
|
||||
//waittime:<3A>ȴ<EFBFBD>ʱ<EFBFBD><CAB1>(<28><>λ:10ms)
|
||||
//<2F><><EFBFBD><EFBFBD>ֵ:0,<2C><><EFBFBD>ͳɹ<CDB3>(<28>õ<EFBFBD><C3B5><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
// 1,<2C><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
|
||||
u8 ble_send_cmd(u8 *cmd, u8 *ack, u16 waittime)
|
||||
{
|
||||
u8 res = 0;
|
||||
USART2_RX_STA = 0;
|
||||
|
||||
if ((u32)cmd <= 0XFF)
|
||||
{
|
||||
while (DMA1_Channel7->CNDTR != 0); //<2F>ȴ<EFBFBD>ͨ<EFBFBD><CDA8>7<EFBFBD><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
USART2->DR = (u32)cmd;
|
||||
}
|
||||
else u2_printf("%s\r\n", cmd);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
if (ack && waittime) //<2F><>Ҫ<EFBFBD>ȴ<EFBFBD>Ӧ<EFBFBD><D3A6>
|
||||
{
|
||||
while (--waittime) //<2F>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD><EFBFBD>ʱ
|
||||
{
|
||||
delay_ms(10);
|
||||
|
||||
if (USART2_RX_STA & 0X8000) //<2F><><EFBFBD>յ<EFBFBD><D5B5>ڴ<EFBFBD><DAB4><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
if (ble_check_cmd(ack))
|
||||
{
|
||||
USART2_RX_STA = 0;
|
||||
break;//<2F>õ<EFBFBD><C3B5><EFBFBD>Ч<EFBFBD><D0A7><EFBFBD><EFBFBD>
|
||||
}
|
||||
|
||||
USART2_RX_STA = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (waittime == 0)res = 1;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -0,0 +1,27 @@
|
||||
#ifndef __BLE_UART_H__
|
||||
#define __BLE_UART_H__
|
||||
#include "sys.h"
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//ATK-BLE01ģ<31><C4A3><EFBFBD>ײ㴦<D7B2><E3B4A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2020/7/2
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2020-2030
|
||||
//All rights reserved
|
||||
//********************************************************************************
|
||||
//<2F><>
|
||||
|
||||
u8 *ble_check_cmd(u8 *str);
|
||||
u8 ble_send_cmd(u8 *cmd, u8 *ack, u16 waittime);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
62
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/KEY/key.c
Normal file
62
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/KEY/key.c
Normal file
@ -0,0 +1,62 @@
|
||||
#include "key.h"
|
||||
#include "delay.h"
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK Mini STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2014/3/06
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2009-2019
|
||||
//All rights reserved
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//PA0.15<EFBFBD><EFBFBD>PC5 <20><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD>
|
||||
void KEY_Init(void)
|
||||
{
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOC,ENABLE);//ʹ<><CAB9>PORTA,PORTCʱ<43><CAB1>
|
||||
|
||||
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);//<2F>ر<EFBFBD>jtag<61><67>ʹ<EFBFBD><CAB9>SWD<57><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SWDģʽ<C4A3><CABD><EFBFBD><EFBFBD>
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15;//PA15
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure);//<2F><>ʼ<EFBFBD><CABC>GPIOA15
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5;//PC5
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //<2F><><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);//<2F><>ʼ<EFBFBD><CABC>GPIOC5
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0;//PA0
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD; //PA0<41><30><EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD>룬Ĭ<EBA3AC><C4AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure);//<2F><>ʼ<EFBFBD><CABC>GPIOA.0
|
||||
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD>ذ<EFBFBD><D8B0><EFBFBD>ֵ
|
||||
//mode:0,<2C><>֧<EFBFBD><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;1,֧<><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
||||
//<2F><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5>
|
||||
//0<><30>û<EFBFBD><C3BB><EFBFBD>κΰ<CEBA><CEB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//KEY0_PRES<45><53>KEY0<59><30><EFBFBD><EFBFBD>
|
||||
//KEY1_PRES<45><53>KEY1<59><31><EFBFBD><EFBFBD>
|
||||
//WKUP_PRES<45><53>WK_UP<55><50><EFBFBD><EFBFBD>
|
||||
//ע<><D7A2><EFBFBD>˺<EFBFBD><CBBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD>ȼ<EFBFBD>,KEY0>KEY1>WK_UP!!
|
||||
u8 KEY_Scan(u8 mode)
|
||||
{
|
||||
static u8 key_up=1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɿ<EFBFBD><C9BF><EFBFBD>־
|
||||
if(mode)key_up=1; //֧<><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if(key_up&&(KEY0==0||KEY1==0||WK_UP==1))
|
||||
{
|
||||
delay_ms(10);//ȥ<><C8A5><EFBFBD><EFBFBD>
|
||||
key_up=0;
|
||||
if(KEY0==0)return KEY0_PRES;
|
||||
else if(KEY1==0)return KEY1_PRES;
|
||||
else if(WK_UP==1)return WKUP_PRES;
|
||||
}else if(KEY0==1&&KEY1==1&&WK_UP==0)key_up=1;
|
||||
return 0;// <20>ް<EFBFBD><DEB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
34
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/KEY/key.h
Normal file
34
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/KEY/key.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef __KEY_H
|
||||
#define __KEY_H
|
||||
#include "sys.h"
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK miniSTM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2012/9/3
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2009-2019
|
||||
//All rights reserved
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//#define KEY0 PCin(5)
|
||||
//#define KEY1 PAin(15)
|
||||
//#define WK_UP PAin(0)
|
||||
|
||||
|
||||
#define KEY0 GPIO_ReadInputDataBit(GPIOC,GPIO_Pin_5)//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>0
|
||||
#define KEY1 GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_15)//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>1
|
||||
#define WK_UP GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_0)//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>2
|
||||
|
||||
|
||||
#define KEY0_PRES 1 //KEY0
|
||||
#define KEY1_PRES 2 //KEY1
|
||||
#define WKUP_PRES 3 //WK_UP
|
||||
|
||||
void KEY_Init(void);//IO<49><4F>ʼ<EFBFBD><CABC>
|
||||
u8 KEY_Scan(u8 mode); //<2F><><EFBFBD><EFBFBD>ɨ<EFBFBD>躯<EFBFBD><E8BAAF>
|
||||
#endif
|
36
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/LED/led.c
Normal file
36
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/LED/led.c
Normal file
@ -0,0 +1,36 @@
|
||||
#include "led.h"
|
||||
#include "delay.h"
|
||||
|
||||
void LED_Init(void)
|
||||
{
|
||||
//<2F><><EFBFBD><EFBFBD>GPIOBʱ<42><CAB1>
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>LED<45><44><EFBFBD><EFBFBD>Ϊģ<CEAA><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
|
||||
GPIO_InitStructure.GPIO_Pin = LED_GPIO_PIN;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_Init(LED_GPIO_PROT, &GPIO_InitStructure);
|
||||
GPIO_ResetBits(LED_GPIO_PROT, LED_GPIO_PIN);
|
||||
}
|
||||
|
||||
void LED_Toggle(void)
|
||||
{
|
||||
GPIO_WriteBit(LED_GPIO_PROT, LED_GPIO_PIN, (BitAction)((1-GPIO_ReadOutputDataBit(LED_GPIO_PROT, LED_GPIO_PIN))));//led<65><64>ƽ<EFBFBD><C6BD>ת
|
||||
}
|
||||
void LED_On()
|
||||
{
|
||||
GPIO_ResetBits(LED_GPIO_PROT, LED_GPIO_PIN);
|
||||
}
|
||||
void LED_Off()
|
||||
{
|
||||
GPIO_SetBits(LED_GPIO_PROT, LED_GPIO_PIN);
|
||||
}
|
||||
|
||||
void LED_Twinkle()
|
||||
{
|
||||
LED_On();
|
||||
delay_ms(10);
|
||||
LED_Off();
|
||||
}
|
17
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/LED/led.h
Normal file
17
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/LED/led.h
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef __LED_H
|
||||
#define __LED_H
|
||||
|
||||
#include "stm32f10x.h" // Device header
|
||||
|
||||
#define LED_GPIO_PROT GPIOC
|
||||
#define LED_GPIO_PIN GPIO_Pin_13
|
||||
|
||||
#define LED0 PAout(8) // PA8
|
||||
#define LED1 PDout(2) // PD2
|
||||
|
||||
void LED_Init(void);
|
||||
void LED_Toggle(void);
|
||||
void LED_On(void);
|
||||
void LED_Off(void);
|
||||
void LED_Twinkle(void);
|
||||
#endif
|
@ -0,0 +1,904 @@
|
||||
#include "max30102.h"
|
||||
#include "delay.h"
|
||||
|
||||
/*****************<2A><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>******************
|
||||
STM32
|
||||
* <20>ļ<EFBFBD> : MAX30102<30><32><EFBFBD><EFBFBD>Ѫ<EFBFBD><D1AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD>ļ<EFBFBD>
|
||||
* <20>汾 : V1.0
|
||||
* <20><><EFBFBD><EFBFBD> : 2024.8.18
|
||||
* MCU : STM32F103C8T6
|
||||
* <20>ӿ<EFBFBD> : <09><>max30102.h<>ļ<EFBFBD>
|
||||
* BILIBILI : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* CSDN : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* <20><><EFBFBD><EFBFBD> : <09><><EFBFBD><EFBFBD>
|
||||
|
||||
**********************BEGIN***********************/
|
||||
|
||||
u8 max30102_Bus_Write(u8 Register_Address, u8 Word_Data)
|
||||
{
|
||||
|
||||
/* <20><><EFBFBD>ô<EFBFBD><C3B4><EFBFBD>EEPROM<4F>漴<EFBFBD><E6BCB4>ȡָ<C8A1><D6B8><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD> */
|
||||
|
||||
/* <20><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_WR); /* <20>˴<EFBFBD><CBB4><EFBFBD>дָ<D0B4><D6B8> */
|
||||
|
||||
/* <20><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڵ<D6BD>ַ */
|
||||
MAX30102_IIC_Send_Byte(Register_Address);
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>5<EFBFBD><35><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼд<CABC><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
||||
MAX30102_IIC_Send_Byte(Word_Data);
|
||||
|
||||
/* <20><>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
return 1; /* ִ<>гɹ<D0B3> */
|
||||
|
||||
cmd_fail: /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ʧ<EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD>мǷ<D0BC><C7B7><EFBFBD>ֹͣ<CDA3>źţ<C5BA><C5A3><EFBFBD><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸 */
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
u8 max30102_Bus_Read(u8 Register_Address)
|
||||
{
|
||||
u8 data;
|
||||
|
||||
|
||||
/* <20><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_WR); /* <20>˴<EFBFBD><CBB4><EFBFBD>дָ<D0B4><D6B8> */
|
||||
|
||||
/* <20><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڵ<D6BD>ַ<EFBFBD><D6B7> */
|
||||
MAX30102_IIC_Send_Byte((uint8_t)Register_Address);
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
|
||||
/* <20><>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD>ߡ<EFBFBD><DFA1><EFBFBD><EFBFBD>濪ʼ<E6BFAA><CABC>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>7<EFBFBD><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_RD); /* <20>˴<EFBFBD><CBB4>Ƕ<EFBFBD>ָ<EFBFBD><D6B8> */
|
||||
|
||||
/* <20><>8<EFBFBD><38><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>9<EFBFBD><39><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD> */
|
||||
{
|
||||
data = MAX30102_IIC_Read_Byte(0); /* <20><>1<EFBFBD><31><EFBFBD>ֽ<EFBFBD> */
|
||||
|
||||
MAX30102_IIC_NAck(); /* <20><><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD>ֽڶ<D6BD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CPU<50><55><EFBFBD><EFBFBD>NACK<43>ź<EFBFBD>(<28><><EFBFBD><EFBFBD>SDA = 1) */
|
||||
}
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
return data; /* ִ<>гɹ<D0B3> <20><><EFBFBD><EFBFBD>dataֵ */
|
||||
|
||||
cmd_fail: /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ʧ<EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD>мǷ<D0BC><C7B7><EFBFBD>ֹͣ<CDA3>źţ<C5BA><C5A3><EFBFBD><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸 */
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void max30102_FIFO_ReadWords(u8 Register_Address,u16 Word_Data[][2],u8 count)
|
||||
{
|
||||
u8 i=0;
|
||||
u8 no = count;
|
||||
u8 data1, data2;
|
||||
/* <20><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_WR); /* <20>˴<EFBFBD><CBB4><EFBFBD>дָ<D0B4><D6B8> */
|
||||
|
||||
/* <20><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڵ<D6BD>ַ<EFBFBD><D6B7> */
|
||||
MAX30102_IIC_Send_Byte((uint8_t)Register_Address);
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
|
||||
/* <20><>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD>ߡ<EFBFBD><DFA1><EFBFBD><EFBFBD>濪ʼ<E6BFAA><CABC>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>7<EFBFBD><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_RD); /* <20>˴<EFBFBD><CBB4>Ƕ<EFBFBD>ָ<EFBFBD><D6B8> */
|
||||
|
||||
/* <20><>8<EFBFBD><38><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>9<EFBFBD><39><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD> */
|
||||
while (no)
|
||||
{
|
||||
data1 = MAX30102_IIC_Read_Byte(0);
|
||||
MAX30102_IIC_Ack();
|
||||
data2 = MAX30102_IIC_Read_Byte(0);
|
||||
MAX30102_IIC_Ack();
|
||||
Word_Data[i][0] = (((u16)data1 << 8) | data2); //
|
||||
|
||||
|
||||
data1 = MAX30102_IIC_Read_Byte(0);
|
||||
MAX30102_IIC_Ack();
|
||||
data2 = MAX30102_IIC_Read_Byte(0);
|
||||
if(1==no)
|
||||
MAX30102_IIC_NAck(); /* <20><><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD>ֽڶ<D6BD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CPU<50><55><EFBFBD><EFBFBD>NACK<43>ź<EFBFBD>(<28><><EFBFBD><EFBFBD>SDA = 1) */
|
||||
else
|
||||
MAX30102_IIC_Ack();
|
||||
Word_Data[i][1] = (((u16)data1 << 8) | data2);
|
||||
|
||||
no--;
|
||||
i++;
|
||||
}
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
|
||||
cmd_fail: /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ʧ<EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD>мǷ<D0BC><C7B7><EFBFBD>ֹͣ<CDA3>źţ<C5BA><C5A3><EFBFBD><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸 */
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
}
|
||||
|
||||
void max30102_FIFO_ReadBytes(u8 Register_Address,u8* Data)
|
||||
{
|
||||
max30102_Bus_Read(REG_INTR_STATUS_1);
|
||||
max30102_Bus_Read(REG_INTR_STATUS_2);
|
||||
|
||||
/* <20><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_WR); /* <20>˴<EFBFBD><CBB4><EFBFBD>дָ<D0B4><D6B8> */
|
||||
|
||||
/* <20><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڵ<D6BD>ַ<EFBFBD><D6B7> */
|
||||
MAX30102_IIC_Send_Byte((uint8_t)Register_Address);
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
|
||||
/* <20><>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I2C<32><43><EFBFBD>ߡ<EFBFBD><DFA1><EFBFBD><EFBFBD>濪ʼ<E6BFAA><CABC>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD> */
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
/* <20><>7<EFBFBD><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֽڣ<D6BD><DAA3><EFBFBD>7bit<69>ǵ<EFBFBD>ַ<EFBFBD><D6B7>bit0<74>Ƕ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>0<EFBFBD><30>ʾд<CABE><D0B4>1<EFBFBD><31>ʾ<EFBFBD><CABE> */
|
||||
MAX30102_IIC_Send_Byte(max30102_WR_address | I2C_RD); /* <20>˴<EFBFBD><CBB4>Ƕ<EFBFBD>ָ<EFBFBD><D6B8> */
|
||||
|
||||
/* <20><>8<EFBFBD><38><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK */
|
||||
if (MAX30102_IIC_Wait_Ack() != 0)
|
||||
{
|
||||
goto cmd_fail; /* EEPROM<4F><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6> */
|
||||
}
|
||||
|
||||
/* <20><>9<EFBFBD><39><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD> */
|
||||
Data[0] = MAX30102_IIC_Read_Byte(1);
|
||||
Data[1] = MAX30102_IIC_Read_Byte(1);
|
||||
Data[2] = MAX30102_IIC_Read_Byte(1);
|
||||
Data[3] = MAX30102_IIC_Read_Byte(1);
|
||||
Data[4] = MAX30102_IIC_Read_Byte(1);
|
||||
Data[5] = MAX30102_IIC_Read_Byte(0);
|
||||
/* <20><><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD>ֽڶ<D6BD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CPU<50><55><EFBFBD><EFBFBD>NACK<43>ź<EFBFBD>(<28><><EFBFBD><EFBFBD>SDA = 1) */
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
|
||||
cmd_fail: /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ʧ<EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD>мǷ<D0BC><C7B7><EFBFBD>ֹͣ<CDA3>źţ<C5BA><C5A3><EFBFBD><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0>I2C<32><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸 */
|
||||
/* <20><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD><EFBFBD>ֹͣ<CDA3>ź<EFBFBD> */
|
||||
MAX30102_IIC_Stop();
|
||||
|
||||
// u8 i;
|
||||
// u8 fifo_wr_ptr;
|
||||
// u8 firo_rd_ptr;
|
||||
// u8 number_tp_read;
|
||||
// //Get the FIFO_WR_PTR
|
||||
// fifo_wr_ptr = max30102_Bus_Read(REG_FIFO_WR_PTR);
|
||||
// //Get the FIFO_RD_PTR
|
||||
// firo_rd_ptr = max30102_Bus_Read(REG_FIFO_RD_PTR);
|
||||
//
|
||||
// number_tp_read = fifo_wr_ptr - firo_rd_ptr;
|
||||
//
|
||||
// //for(i=0;i<number_tp_read;i++){
|
||||
// if(number_tp_read>0){
|
||||
// MAX30102_IIC_ReadBytes(max30102_WR_address,REG_FIFO_DATA,Data,6);
|
||||
// }
|
||||
|
||||
//max30102_Bus_Write(REG_FIFO_RD_PTR,fifo_wr_ptr);
|
||||
}
|
||||
|
||||
void MAX30102_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_14;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
|
||||
GPIO_Init(GPIOB, &GPIO_InitStructure);
|
||||
|
||||
MAX30102_IIC_Init();
|
||||
|
||||
MAX30102_Reset();
|
||||
|
||||
// max30102_Bus_Write(REG_MODE_CONFIG, 0x0b); //mode configuration : temp_en[3] MODE[2:0]=010 HR only enabled 011 SP02 enabled
|
||||
// max30102_Bus_Write(REG_INTR_STATUS_2, 0xF0); //open all of interrupt
|
||||
// max30102_Bus_Write(REG_INTR_STATUS_1, 0x00); //all interrupt clear
|
||||
// max30102_Bus_Write(REG_INTR_ENABLE_2, 0x02); //DIE_TEMP_RDY_EN
|
||||
// max30102_Bus_Write(REG_TEMP_CONFIG, 0x01); //SET TEMP_EN
|
||||
|
||||
// max30102_Bus_Write(REG_SPO2_CONFIG, 0x47); //SPO2_SR[4:2]=001 100 per second LED_PW[1:0]=11 16BITS
|
||||
|
||||
// max30102_Bus_Write(REG_LED1_PA, 0x47);
|
||||
// max30102_Bus_Write(REG_LED2_PA, 0x47);
|
||||
|
||||
|
||||
|
||||
max30102_Bus_Write(REG_INTR_ENABLE_1,0xc0); // INTR setting
|
||||
max30102_Bus_Write(REG_INTR_ENABLE_2,0x00);
|
||||
max30102_Bus_Write(REG_FIFO_WR_PTR,0x00); //FIFO_WR_PTR[4:0]
|
||||
max30102_Bus_Write(REG_OVF_COUNTER,0x00); //OVF_COUNTER[4:0]
|
||||
max30102_Bus_Write(REG_FIFO_RD_PTR,0x00); //FIFO_RD_PTR[4:0]
|
||||
max30102_Bus_Write(REG_FIFO_CONFIG,0x0f); //sample avg = 1, fifo rollover=false, fifo almost full = 17
|
||||
max30102_Bus_Write(REG_MODE_CONFIG,0x03); //0x02 for Red only, 0x03 for SpO2 mode 0x07 multimode LED
|
||||
max30102_Bus_Write(REG_SPO2_CONFIG,0x27); // SPO2_ADC range = 4096nA, SPO2 sample rate (100 Hz), LED pulseWidth (400uS)
|
||||
max30102_Bus_Write(REG_LED1_PA,0x24); //Choose value for ~ 7mA for LED1
|
||||
max30102_Bus_Write(REG_LED2_PA,0x24); // Choose value for ~ 7mA for LED2
|
||||
max30102_Bus_Write(REG_PILOT_PA,0x7f); // Choose value for ~ 25mA for Pilot LED
|
||||
|
||||
|
||||
}
|
||||
|
||||
void MAX30102_Reset(void)
|
||||
{
|
||||
max30102_Bus_Write(REG_MODE_CONFIG,0x40);
|
||||
max30102_Bus_Write(REG_MODE_CONFIG,0x40);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void maxim_max30102_write_reg(uint8_t uch_addr, uint8_t uch_data)
|
||||
{
|
||||
// char ach_i2c_data[2];
|
||||
// ach_i2c_data[0]=uch_addr;
|
||||
// ach_i2c_data[1]=uch_data;
|
||||
//
|
||||
// MAX30102_IIC_WriteBytes(I2C_WRITE_ADDR, ach_i2c_data, 2);
|
||||
MAX30102_IIC_Write_One_Byte(I2C_WRITE_ADDR,uch_addr,uch_data);
|
||||
}
|
||||
|
||||
void maxim_max30102_read_reg(uint8_t uch_addr, uint8_t *puch_data)
|
||||
{
|
||||
// char ch_i2c_data;
|
||||
// ch_i2c_data=uch_addr;
|
||||
// MAX30102_IIC_WriteBytes(I2C_WRITE_ADDR, &ch_i2c_data, 1);
|
||||
//
|
||||
// i2c.read(I2C_READ_ADDR, &ch_i2c_data, 1);
|
||||
//
|
||||
// *puch_data=(uint8_t) ch_i2c_data;
|
||||
MAX30102_IIC_Read_One_Byte(I2C_WRITE_ADDR,uch_addr,puch_data);
|
||||
}
|
||||
|
||||
void maxim_max30102_read_fifo(uint32_t *pun_red_led, uint32_t *pun_ir_led)
|
||||
{
|
||||
uint32_t un_temp;
|
||||
unsigned char uch_temp;
|
||||
char ach_i2c_data[6];
|
||||
*pun_red_led=0;
|
||||
*pun_ir_led=0;
|
||||
|
||||
|
||||
//read and clear status register
|
||||
maxim_max30102_read_reg(REG_INTR_STATUS_1, &uch_temp);
|
||||
maxim_max30102_read_reg(REG_INTR_STATUS_2, &uch_temp);
|
||||
|
||||
MAX30102_IIC_ReadBytes(I2C_WRITE_ADDR,REG_FIFO_DATA,(u8 *)ach_i2c_data,6);
|
||||
|
||||
un_temp=(unsigned char) ach_i2c_data[0];
|
||||
un_temp<<=16;
|
||||
*pun_red_led+=un_temp;
|
||||
un_temp=(unsigned char) ach_i2c_data[1];
|
||||
un_temp<<=8;
|
||||
*pun_red_led+=un_temp;
|
||||
un_temp=(unsigned char) ach_i2c_data[2];
|
||||
*pun_red_led+=un_temp;
|
||||
|
||||
un_temp=(unsigned char) ach_i2c_data[3];
|
||||
un_temp<<=16;
|
||||
*pun_ir_led+=un_temp;
|
||||
un_temp=(unsigned char) ach_i2c_data[4];
|
||||
un_temp<<=8;
|
||||
*pun_ir_led+=un_temp;
|
||||
un_temp=(unsigned char) ach_i2c_data[5];
|
||||
*pun_ir_led+=un_temp;
|
||||
*pun_red_led&=0x03FFFF; //Mask MSB [23:18]
|
||||
*pun_ir_led&=0x03FFFF; //Mask MSB [23:18]
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//MAX30102<30><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ<C4A3><CABD><EFBFBD><EFBFBD>
|
||||
void MAX30102_IIC_SDA_OUT(void)//SDA<44><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin=MAX30102_IIC_SDA_PIN;
|
||||
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;//SDA<44><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(MAX30102_IIC_PORT,&GPIO_InitStructure);
|
||||
|
||||
}
|
||||
|
||||
void MAX30102_IIC_SDA_IN(void)//SDA<44><41><EFBFBD>뷽<EFBFBD><EBB7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin=MAX30102_IIC_SDA_PIN;
|
||||
GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode=GPIO_Mode_IPU;//SCL<43><4C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(MAX30102_IIC_PORT,&GPIO_InitStructure);
|
||||
|
||||
}
|
||||
|
||||
//<2F><>ʼ<EFBFBD><CABC>IIC
|
||||
void MAX30102_IIC_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
//RCC->APB2ENR|=1<<4;//<2F><>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IO PORTCʱ<43><CAB1>
|
||||
RCC_APB2PeriphClockCmd( RCC_APB2Periph_GPIOB, ENABLE );
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = MAX30102_IIC_SCL_PIN|MAX30102_IIC_SDA_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP ; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_Init(MAX30102_IIC_PORT, &GPIO_InitStructure);
|
||||
|
||||
MAX30102_IIC_SCL=1;
|
||||
MAX30102_IIC_SDA=1;
|
||||
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>IIC<49><43>ʼ<EFBFBD>ź<EFBFBD>
|
||||
void MAX30102_IIC_Start(void)
|
||||
{
|
||||
MAX30102_IIC_SDA_OUT(); //sda<64><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_SDA=1;
|
||||
MAX30102_IIC_SCL=1;
|
||||
delay_us(4);
|
||||
MAX30102_IIC_SDA=0;//START:when CLK is high,DATA change form high to low
|
||||
delay_us(4);
|
||||
MAX30102_IIC_SCL=0;//ǯסI2C<32><43><EFBFBD>ߣ<EFBFBD><EFBFBD><D7BC><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>IICֹͣ<CDA3>ź<EFBFBD>
|
||||
void MAX30102_IIC_Stop(void)
|
||||
{
|
||||
MAX30102_IIC_SDA_OUT();//sda<64><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_SCL=0;
|
||||
MAX30102_IIC_SDA=0;//STOP:when CLK is high DATA change form low to high
|
||||
delay_us(4);
|
||||
MAX30102_IIC_SCL=1;
|
||||
MAX30102_IIC_SDA=1;//<2F><><EFBFBD><EFBFBD>I2C<32><43><EFBFBD>߽<EFBFBD><DFBD><EFBFBD><EFBFBD>ź<EFBFBD>
|
||||
delay_us(4);
|
||||
}
|
||||
//<2F>ȴ<EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD>źŵ<C5BA><C5B5><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>ʧ<EFBFBD><CAA7>
|
||||
// 0<><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD>ɹ<EFBFBD>
|
||||
u8 MAX30102_IIC_Wait_Ack(void)
|
||||
{
|
||||
u8 ucErrTime=0;
|
||||
MAX30102_IIC_SDA_IN(); //SDA<44><41><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_SDA=1;delay_us(1);
|
||||
MAX30102_IIC_SCL=1;delay_us(1);
|
||||
while(MAX30102_READ_SDA)
|
||||
{
|
||||
ucErrTime++;
|
||||
if(ucErrTime>250)
|
||||
{
|
||||
MAX30102_IIC_Stop();
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
MAX30102_IIC_SCL=0;//ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0
|
||||
return 0;
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>ACKӦ<4B><D3A6>
|
||||
void MAX30102_IIC_Ack(void)
|
||||
{
|
||||
MAX30102_IIC_SCL=0;
|
||||
MAX30102_IIC_SDA_OUT();
|
||||
MAX30102_IIC_SDA=0;
|
||||
delay_us(2);
|
||||
MAX30102_IIC_SCL=1;
|
||||
delay_us(2);
|
||||
MAX30102_IIC_SCL=0;
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACKӦ<4B><D3A6>
|
||||
void MAX30102_IIC_NAck(void)
|
||||
{
|
||||
MAX30102_IIC_SCL=0;
|
||||
MAX30102_IIC_SDA_OUT();
|
||||
MAX30102_IIC_SDA=1;
|
||||
delay_us(2);
|
||||
MAX30102_IIC_SCL=1;
|
||||
delay_us(2);
|
||||
MAX30102_IIC_SCL=0;
|
||||
}
|
||||
//IIC<49><43><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ֽ<EFBFBD>
|
||||
//<2F><><EFBFBD>شӻ<D8B4><D3BB><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>
|
||||
//1<><31><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>
|
||||
//0<><30><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>
|
||||
void MAX30102_IIC_Send_Byte(u8 txd)
|
||||
{
|
||||
u8 t;
|
||||
MAX30102_IIC_SDA_OUT();
|
||||
MAX30102_IIC_SCL=0;//<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD>ӿ<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>
|
||||
for(t=0;t<8;t++)
|
||||
{
|
||||
MAX30102_IIC_SDA=(txd&0x80)>>7;
|
||||
txd<<=1;
|
||||
delay_us(2); //<2F><>TEA5767<36><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_SCL=1;
|
||||
delay_us(2);
|
||||
MAX30102_IIC_SCL=0;
|
||||
delay_us(2);
|
||||
}
|
||||
}
|
||||
//<2F><>1<EFBFBD><31><EFBFBD>ֽڣ<D6BD>ack=1ʱ<31><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK<43><4B>ack=0<><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>nACK
|
||||
u8 MAX30102_IIC_Read_Byte(unsigned char ack)
|
||||
{
|
||||
unsigned char i,receive=0;
|
||||
MAX30102_IIC_SDA_IN();//SDA<44><41><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>
|
||||
for(i=0;i<8;i++ )
|
||||
{
|
||||
MAX30102_IIC_SCL=0;
|
||||
delay_us(2);
|
||||
MAX30102_IIC_SCL=1;
|
||||
receive<<=1;
|
||||
if(MAX30102_READ_SDA)receive++;
|
||||
delay_us(1);
|
||||
}
|
||||
if (!ack)
|
||||
MAX30102_IIC_NAck();//<2F><><EFBFBD><EFBFBD>nACK
|
||||
else
|
||||
MAX30102_IIC_Ack(); //<2F><><EFBFBD><EFBFBD>ACK
|
||||
return receive;
|
||||
}
|
||||
|
||||
|
||||
void MAX30102_IIC_WriteBytes(u8 WriteAddr,u8* data,u8 dataLength)
|
||||
{
|
||||
u8 i;
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
MAX30102_IIC_Send_Byte(WriteAddr); //<2F><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
|
||||
for(i=0;i<dataLength;i++)
|
||||
{
|
||||
MAX30102_IIC_Send_Byte(data[i]);
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
}
|
||||
MAX30102_IIC_Stop();//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>
|
||||
delay_ms(10);
|
||||
}
|
||||
|
||||
void MAX30102_IIC_ReadBytes(u8 deviceAddr, u8 writeAddr,u8* data,u8 dataLength)
|
||||
{
|
||||
u8 i;
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
MAX30102_IIC_Send_Byte(deviceAddr); //<2F><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Send_Byte(writeAddr);
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Send_Byte(deviceAddr|0X01);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
|
||||
for(i=0;i<dataLength-1;i++)
|
||||
{
|
||||
data[i] = MAX30102_IIC_Read_Byte(1);
|
||||
}
|
||||
data[dataLength-1] = MAX30102_IIC_Read_Byte(0);
|
||||
MAX30102_IIC_Stop();//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>
|
||||
delay_ms(10);
|
||||
}
|
||||
|
||||
void MAX30102_IIC_Read_One_Byte(u8 daddr,u8 addr,u8* data)
|
||||
{
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
MAX30102_IIC_Send_Byte(daddr); //<2F><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Send_Byte(addr);//<2F><><EFBFBD>͵<EFBFBD>ַ
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Start();
|
||||
MAX30102_IIC_Send_Byte(daddr|0X01);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
*data = MAX30102_IIC_Read_Byte(0);
|
||||
MAX30102_IIC_Stop();//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>
|
||||
}
|
||||
|
||||
void MAX30102_IIC_Write_One_Byte(u8 daddr,u8 addr,u8 data)
|
||||
{
|
||||
MAX30102_IIC_Start();
|
||||
|
||||
MAX30102_IIC_Send_Byte(daddr); //<2F><><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Send_Byte(addr);//<2F><><EFBFBD>͵<EFBFBD>ַ
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Send_Byte(data); //<2F><><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD>
|
||||
MAX30102_IIC_Wait_Ack();
|
||||
MAX30102_IIC_Stop();//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>
|
||||
delay_ms(10);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const uint16_t auw_hamm[31]={ 41, 276, 512, 276, 41 }; //Hamm= long16(512* hamming(5)');
|
||||
//uch_spo2_table is computed as -45.060*ratioAverage* ratioAverage + 30.354 *ratioAverage + 94.845 ;
|
||||
const uint8_t uch_spo2_table[184]={ 95, 95, 95, 96, 96, 96, 97, 97, 97, 97, 97, 98, 98, 98, 98, 98, 99, 99, 99, 99,
|
||||
99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
|
||||
100, 100, 100, 100, 99, 99, 99, 99, 99, 99, 99, 99, 98, 98, 98, 98, 98, 98, 97, 97,
|
||||
97, 97, 96, 96, 96, 96, 95, 95, 95, 94, 94, 94, 93, 93, 93, 92, 92, 92, 91, 91,
|
||||
90, 90, 89, 89, 89, 88, 88, 87, 87, 86, 86, 85, 85, 84, 84, 83, 82, 82, 81, 81,
|
||||
80, 80, 79, 78, 78, 77, 76, 76, 75, 74, 74, 73, 72, 72, 71, 70, 69, 69, 68, 67,
|
||||
66, 66, 65, 64, 63, 62, 62, 61, 60, 59, 58, 57, 56, 56, 55, 54, 53, 52, 51, 50,
|
||||
49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 31, 30, 29,
|
||||
28, 27, 26, 25, 23, 22, 21, 20, 19, 17, 16, 15, 14, 12, 11, 10, 9, 7, 6, 5,
|
||||
3, 2, 1 } ;
|
||||
static int32_t an_dx[ BUFFER_SIZE-MA4_SIZE]; // delta
|
||||
static int32_t an_x[ BUFFER_SIZE]; //ir
|
||||
static int32_t an_y[ BUFFER_SIZE]; //red
|
||||
|
||||
void maxim_heart_rate_and_oxygen_saturation(uint32_t *pun_ir_buffer, int32_t n_ir_buffer_length, uint32_t *pun_red_buffer, int32_t *pn_spo2, int8_t *pch_spo2_valid,
|
||||
int32_t *pn_heart_rate, int8_t *pch_hr_valid)
|
||||
/**
|
||||
* \brief Calculate the heart rate and SpO2 level
|
||||
* \par Details
|
||||
* By detecting peaks of PPG cycle and corresponding AC/DC of red/infra-red signal, the ratio for the SPO2 is computed.
|
||||
* Since this algorithm is aiming for Arm M0/M3. formaula for SPO2 did not achieve the accuracy due to register overflow.
|
||||
* Thus, accurate SPO2 is precalculated and save longo uch_spo2_table[] per each ratio.
|
||||
*
|
||||
* \param[in] *pun_ir_buffer - IR sensor data buffer
|
||||
* \param[in] n_ir_buffer_length - IR sensor data buffer length
|
||||
* \param[in] *pun_red_buffer - Red sensor data buffer
|
||||
* \param[out] *pn_spo2 - Calculated SpO2 value
|
||||
* \param[out] *pch_spo2_valid - 1 if the calculated SpO2 value is valid
|
||||
* \param[out] *pn_heart_rate - Calculated heart rate value
|
||||
* \param[out] *pch_hr_valid - 1 if the calculated heart rate value is valid
|
||||
*
|
||||
* \retval None
|
||||
*/
|
||||
{
|
||||
uint32_t un_ir_mean ,un_only_once ;
|
||||
int32_t k ,n_i_ratio_count;
|
||||
int32_t i, s, m, n_exact_ir_valley_locs_count ,n_middle_idx;
|
||||
int32_t n_th1, n_npks,n_c_min;
|
||||
int32_t an_ir_valley_locs[15] ;
|
||||
int32_t an_exact_ir_valley_locs[15] ;
|
||||
int32_t an_dx_peak_locs[15] ;
|
||||
int32_t n_peak_interval_sum;
|
||||
|
||||
int32_t n_y_ac, n_x_ac;
|
||||
int32_t n_spo2_calc;
|
||||
int32_t n_y_dc_max, n_x_dc_max;
|
||||
int32_t n_y_dc_max_idx, n_x_dc_max_idx;
|
||||
int32_t an_ratio[5],n_ratio_average;
|
||||
int32_t n_nume, n_denom ;
|
||||
// remove DC of ir signal
|
||||
un_ir_mean =0;
|
||||
for (k=0 ; k<n_ir_buffer_length ; k++ ) un_ir_mean += pun_ir_buffer[k] ;
|
||||
un_ir_mean =un_ir_mean/n_ir_buffer_length ;
|
||||
for (k=0 ; k<n_ir_buffer_length ; k++ ) an_x[k] = pun_ir_buffer[k] - un_ir_mean ;
|
||||
|
||||
// 4 pt Moving Average
|
||||
for(k=0; k< BUFFER_SIZE-MA4_SIZE; k++){
|
||||
n_denom= ( an_x[k]+an_x[k+1]+ an_x[k+2]+ an_x[k+3]);
|
||||
an_x[k]= n_denom/(int32_t)4;
|
||||
}
|
||||
|
||||
// get difference of smoothed IR signal
|
||||
|
||||
for( k=0; k<BUFFER_SIZE-MA4_SIZE-1; k++)
|
||||
an_dx[k]= (an_x[k+1]- an_x[k]);
|
||||
|
||||
// 2-pt Moving Average to an_dx
|
||||
for(k=0; k< BUFFER_SIZE-MA4_SIZE-2; k++){
|
||||
an_dx[k] = ( an_dx[k]+an_dx[k+1])/2 ;
|
||||
}
|
||||
|
||||
// hamming window
|
||||
// flip wave form so that we can detect valley with peak detector
|
||||
for ( i=0 ; i<BUFFER_SIZE-HAMMING_SIZE-MA4_SIZE-2 ;i++){
|
||||
s= 0;
|
||||
for( k=i; k<i+ HAMMING_SIZE ;k++){
|
||||
s -= an_dx[k] *auw_hamm[k-i] ;
|
||||
}
|
||||
an_dx[i]= s/ (int32_t)1146; // divide by sum of auw_hamm
|
||||
}
|
||||
|
||||
|
||||
n_th1=0; // threshold calculation
|
||||
for ( k=0 ; k<BUFFER_SIZE-HAMMING_SIZE ;k++){
|
||||
n_th1 += ((an_dx[k]>0)? an_dx[k] : ((int32_t)0-an_dx[k])) ;
|
||||
}
|
||||
n_th1= n_th1/ ( BUFFER_SIZE-HAMMING_SIZE);
|
||||
// peak location is acutally index for sharpest location of raw signal since we flipped the signal
|
||||
maxim_find_peaks( an_dx_peak_locs, &n_npks, an_dx, BUFFER_SIZE-HAMMING_SIZE, n_th1, 8, 5 );//peak_height, peak_distance, max_num_peaks
|
||||
|
||||
n_peak_interval_sum =0;
|
||||
if (n_npks>=2){
|
||||
for (k=1; k<n_npks; k++)
|
||||
n_peak_interval_sum += (an_dx_peak_locs[k]-an_dx_peak_locs[k -1]);
|
||||
n_peak_interval_sum=n_peak_interval_sum/(n_npks-1);
|
||||
*pn_heart_rate=(int32_t)(6000/n_peak_interval_sum);// beats per minutes
|
||||
*pch_hr_valid = 1;
|
||||
}
|
||||
else {
|
||||
*pn_heart_rate = -999;
|
||||
*pch_hr_valid = 0;
|
||||
}
|
||||
|
||||
for ( k=0 ; k<n_npks ;k++)
|
||||
an_ir_valley_locs[k]=an_dx_peak_locs[k]+HAMMING_SIZE/2;
|
||||
|
||||
|
||||
// raw value : RED(=y) and IR(=X)
|
||||
// we need to assess DC and AC value of ir and red PPG.
|
||||
for (k=0 ; k<n_ir_buffer_length ; k++ ) {
|
||||
an_x[k] = pun_ir_buffer[k] ;
|
||||
an_y[k] = pun_red_buffer[k] ;
|
||||
}
|
||||
|
||||
// find precise min near an_ir_valley_locs
|
||||
n_exact_ir_valley_locs_count =0;
|
||||
for(k=0 ; k<n_npks ;k++){
|
||||
un_only_once =1;
|
||||
m=an_ir_valley_locs[k];
|
||||
n_c_min= 16777216;//2^24;
|
||||
if (m+5 < BUFFER_SIZE-HAMMING_SIZE && m-5 >0){
|
||||
for(i= m-5;i<m+5; i++)
|
||||
if (an_x[i]<n_c_min){
|
||||
if (un_only_once >0){
|
||||
un_only_once =0;
|
||||
}
|
||||
n_c_min= an_x[i] ;
|
||||
an_exact_ir_valley_locs[k]=i;
|
||||
}
|
||||
if (un_only_once ==0)
|
||||
n_exact_ir_valley_locs_count ++ ;
|
||||
}
|
||||
}
|
||||
if (n_exact_ir_valley_locs_count <2 ){
|
||||
*pn_spo2 = -999 ; // do not use SPO2 since signal ratio is out of range
|
||||
*pch_spo2_valid = 0;
|
||||
return;
|
||||
}
|
||||
// 4 pt MA
|
||||
for(k=0; k< BUFFER_SIZE-MA4_SIZE; k++){
|
||||
an_x[k]=( an_x[k]+an_x[k+1]+ an_x[k+2]+ an_x[k+3])/(int32_t)4;
|
||||
an_y[k]=( an_y[k]+an_y[k+1]+ an_y[k+2]+ an_y[k+3])/(int32_t)4;
|
||||
}
|
||||
|
||||
//using an_exact_ir_valley_locs , find ir-red DC andir-red AC for SPO2 calibration ratio
|
||||
//finding AC/DC maximum of raw ir * red between two valley locations
|
||||
n_ratio_average =0;
|
||||
n_i_ratio_count =0;
|
||||
|
||||
for(k=0; k< 5; k++) an_ratio[k]=0;
|
||||
for (k=0; k< n_exact_ir_valley_locs_count; k++){
|
||||
if (an_exact_ir_valley_locs[k] > BUFFER_SIZE ){
|
||||
*pn_spo2 = -999 ; // do not use SPO2 since valley loc is out of range
|
||||
*pch_spo2_valid = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
// find max between two valley locations
|
||||
// and use ratio betwen AC compoent of Ir & Red and DC compoent of Ir & Red for SPO2
|
||||
|
||||
for (k=0; k< n_exact_ir_valley_locs_count-1; k++){
|
||||
n_y_dc_max= -16777216 ;
|
||||
n_x_dc_max= - 16777216;
|
||||
if (an_exact_ir_valley_locs[k+1]-an_exact_ir_valley_locs[k] >10){
|
||||
for (i=an_exact_ir_valley_locs[k]; i< an_exact_ir_valley_locs[k+1]; i++){
|
||||
if (an_x[i]> n_x_dc_max) {n_x_dc_max =an_x[i];n_x_dc_max_idx =i; }
|
||||
if (an_y[i]> n_y_dc_max) {n_y_dc_max =an_y[i];n_y_dc_max_idx=i;}
|
||||
}
|
||||
n_y_ac= (an_y[an_exact_ir_valley_locs[k+1]] - an_y[an_exact_ir_valley_locs[k] ] )*(n_y_dc_max_idx -an_exact_ir_valley_locs[k]); //red
|
||||
n_y_ac= an_y[an_exact_ir_valley_locs[k]] + n_y_ac/ (an_exact_ir_valley_locs[k+1] - an_exact_ir_valley_locs[k]) ;
|
||||
|
||||
|
||||
n_y_ac= an_y[n_y_dc_max_idx] - n_y_ac; // subracting linear DC compoenents from raw
|
||||
n_x_ac= (an_x[an_exact_ir_valley_locs[k+1]] - an_x[an_exact_ir_valley_locs[k] ] )*(n_x_dc_max_idx -an_exact_ir_valley_locs[k]); // ir
|
||||
n_x_ac= an_x[an_exact_ir_valley_locs[k]] + n_x_ac/ (an_exact_ir_valley_locs[k+1] - an_exact_ir_valley_locs[k]);
|
||||
n_x_ac= an_x[n_y_dc_max_idx] - n_x_ac; // subracting linear DC compoenents from raw
|
||||
n_nume=( n_y_ac *n_x_dc_max)>>7 ; //prepare X100 to preserve floating value
|
||||
n_denom= ( n_x_ac *n_y_dc_max)>>7;
|
||||
if (n_denom>0 && n_i_ratio_count <5 && n_nume != 0)
|
||||
{
|
||||
an_ratio[n_i_ratio_count]= (n_nume*20)/n_denom ; //formular is ( n_y_ac *n_x_dc_max) / ( n_x_ac *n_y_dc_max) ; ///*************************n_numeԭ<65><D4AD><EFBFBD><EFBFBD>*100************************//
|
||||
n_i_ratio_count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
maxim_sort_ascend(an_ratio, n_i_ratio_count);
|
||||
n_middle_idx= n_i_ratio_count/2;
|
||||
|
||||
if (n_middle_idx >1)
|
||||
n_ratio_average =( an_ratio[n_middle_idx-1] +an_ratio[n_middle_idx])/2; // use median
|
||||
else
|
||||
n_ratio_average = an_ratio[n_middle_idx ];
|
||||
|
||||
if( n_ratio_average>2 && n_ratio_average <184){
|
||||
n_spo2_calc= uch_spo2_table[n_ratio_average] ;
|
||||
*pn_spo2 = n_spo2_calc ;
|
||||
*pch_spo2_valid = 1;// float_SPO2 = -45.060*n_ratio_average* n_ratio_average/10000 + 30.354 *n_ratio_average/100 + 94.845 ; // for comparison with table
|
||||
}
|
||||
else{
|
||||
*pn_spo2 = -999 ; // do not use SPO2 since signal ratio is out of range
|
||||
*pch_spo2_valid = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void maxim_find_peaks(int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_size, int32_t n_min_height, int32_t n_min_distance, int32_t n_max_num)
|
||||
/**
|
||||
* \brief Find peaks
|
||||
* \par Details
|
||||
* Find at most MAX_NUM peaks above MIN_HEIGHT separated by at least MIN_DISTANCE
|
||||
*
|
||||
* \retval None
|
||||
*/
|
||||
{
|
||||
maxim_peaks_above_min_height( pn_locs, pn_npks, pn_x, n_size, n_min_height );
|
||||
maxim_remove_close_peaks( pn_locs, pn_npks, pn_x, n_min_distance );
|
||||
*pn_npks = min( *pn_npks, n_max_num );
|
||||
}
|
||||
|
||||
void maxim_peaks_above_min_height(int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_size, int32_t n_min_height)
|
||||
/**
|
||||
* \brief Find peaks above n_min_height
|
||||
* \par Details
|
||||
* Find all peaks above MIN_HEIGHT
|
||||
*
|
||||
* \retval None
|
||||
*/
|
||||
{
|
||||
int32_t i = 1, n_width;
|
||||
*pn_npks = 0;
|
||||
|
||||
while (i < n_size-1){
|
||||
if (pn_x[i] > n_min_height && pn_x[i] > pn_x[i-1]){ // find left edge of potential peaks
|
||||
n_width = 1;
|
||||
while (i+n_width < n_size && pn_x[i] == pn_x[i+n_width]) // find flat peaks
|
||||
n_width++;
|
||||
if (pn_x[i] > pn_x[i+n_width] && (*pn_npks) < 15 ){ // find right edge of peaks
|
||||
pn_locs[(*pn_npks)++] = i;
|
||||
// for flat peaks, peak location is left edge
|
||||
i += n_width+1;
|
||||
}
|
||||
else
|
||||
i += n_width;
|
||||
}
|
||||
else
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void maxim_remove_close_peaks(int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_min_distance)
|
||||
/**
|
||||
* \brief Remove peaks
|
||||
* \par Details
|
||||
* Remove peaks separated by less than MIN_DISTANCE
|
||||
*
|
||||
* \retval None
|
||||
*/
|
||||
{
|
||||
|
||||
int32_t i, j, n_old_npks, n_dist;
|
||||
|
||||
/* Order peaks from large to small */
|
||||
maxim_sort_indices_descend( pn_x, pn_locs, *pn_npks );
|
||||
|
||||
for ( i = -1; i < *pn_npks; i++ ){
|
||||
n_old_npks = *pn_npks;
|
||||
*pn_npks = i+1;
|
||||
for ( j = i+1; j < n_old_npks; j++ ){
|
||||
n_dist = pn_locs[j] - ( i == -1 ? -1 : pn_locs[i] ); // lag-zero peak of autocorr is at index -1
|
||||
if ( n_dist > n_min_distance || n_dist < -n_min_distance )
|
||||
pn_locs[(*pn_npks)++] = pn_locs[j];
|
||||
}
|
||||
}
|
||||
|
||||
// Resort indices longo ascending order
|
||||
maxim_sort_ascend( pn_locs, *pn_npks );
|
||||
}
|
||||
|
||||
void maxim_sort_ascend(int32_t *pn_x,int32_t n_size)
|
||||
/**
|
||||
* \brief Sort array
|
||||
* \par Details
|
||||
* Sort array in ascending order (insertion sort algorithm)
|
||||
*
|
||||
* \retval None
|
||||
*/
|
||||
{
|
||||
int32_t i, j, n_temp;
|
||||
for (i = 1; i < n_size; i++) {
|
||||
n_temp = pn_x[i];
|
||||
for (j = i; j > 0 && n_temp < pn_x[j-1]; j--)
|
||||
pn_x[j] = pn_x[j-1];
|
||||
pn_x[j] = n_temp;
|
||||
}
|
||||
}
|
||||
|
||||
void maxim_sort_indices_descend(int32_t *pn_x, int32_t *pn_indx, int32_t n_size)
|
||||
/**
|
||||
* \brief Sort indices
|
||||
* \par Details
|
||||
* Sort indices according to descending order (insertion sort algorithm)
|
||||
*
|
||||
* \retval None
|
||||
*/
|
||||
{
|
||||
int32_t i, j, n_temp;
|
||||
for (i = 1; i < n_size; i++) {
|
||||
n_temp = pn_indx[i];
|
||||
for (j = i; j > 0 && pn_x[n_temp] > pn_x[pn_indx[j-1]]; j--)
|
||||
pn_indx[j] = pn_indx[j-1];
|
||||
pn_indx[j] = n_temp;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,139 @@
|
||||
#ifndef __MAX30102_H
|
||||
#define __MAX30102_H
|
||||
#include "stm32f10x.h"
|
||||
#include "stdbool.h"
|
||||
#include "sys.h"
|
||||
|
||||
/*****************<2A><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>******************
|
||||
STM32
|
||||
* <20>ļ<EFBFBD> : MAX30102<30><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>c<EFBFBD>ļ<EFBFBD>
|
||||
* <20>汾 : V1.0
|
||||
* <20><><EFBFBD><EFBFBD> : 2024.8.18
|
||||
* MCU : STM32F103C8T6
|
||||
* <20>ӿ<EFBFBD> : <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* BILIBILI : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* CSDN : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* <20><><EFBFBD><EFBFBD> : <09><><EFBFBD><EFBFBD>
|
||||
|
||||
**********************BEGIN***********************/
|
||||
|
||||
|
||||
//==============================================MAX30102Ӳ<32><D3B2><EFBFBD>ӿ<EFBFBD>==================================================
|
||||
#define MAX30102_IIC_CLK RCC_APB2Periph_GPIOB
|
||||
#define MAX30102_IIC_PORT GPIOB
|
||||
#define MAX30102_IIC_SCL_PIN GPIO_Pin_10
|
||||
#define MAX30102_IIC_SDA_PIN GPIO_Pin_11
|
||||
|
||||
#define MAX30102_IIC_SCL PBout(10)
|
||||
#define MAX30102_IIC_SDA PBout(11)
|
||||
#define MAX30102_READ_SDA PBin(11) //<2F><><EFBFBD><EFBFBD>SDA
|
||||
|
||||
#define MAX30102_INT_CLK RCC_APB2Periph_GPIOB
|
||||
#define MAX30102_INT_PORT GPIOA
|
||||
#define MAX30102_INT_PIN GPIO_Pin_7
|
||||
#define MAX30102_INT PAin(7)
|
||||
|
||||
//=============================================================================================================
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define I2C_WR 0 /* д<><D0B4><EFBFBD><EFBFBD>bit */
|
||||
#define I2C_RD 1 /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>bit */
|
||||
|
||||
#define I2C_WRITE_ADDR 0xAE
|
||||
#define I2C_READ_ADDR 0xAF
|
||||
|
||||
|
||||
#define true 1
|
||||
#define false 0
|
||||
#define FS 100
|
||||
#define BUFFER_SIZE (FS* 5)
|
||||
#define HR_FIFO_SIZE 7
|
||||
#define MA4_SIZE 4 // DO NOT CHANGE
|
||||
#define HAMMING_SIZE 5// DO NOT CHANGE
|
||||
#define min(x,y) ((x) < (y) ? (x) : (y))
|
||||
|
||||
|
||||
|
||||
#define max30102_WR_address 0xAE
|
||||
|
||||
#define I2C_WRITE_ADDR 0xAE
|
||||
#define I2C_READ_ADDR 0xAF
|
||||
|
||||
//register addresses
|
||||
#define REG_INTR_STATUS_1 0x00
|
||||
#define REG_INTR_STATUS_2 0x01
|
||||
#define REG_INTR_ENABLE_1 0x02
|
||||
#define REG_INTR_ENABLE_2 0x03
|
||||
#define REG_FIFO_WR_PTR 0x04
|
||||
#define REG_OVF_COUNTER 0x05
|
||||
#define REG_FIFO_RD_PTR 0x06
|
||||
#define REG_FIFO_DATA 0x07
|
||||
#define REG_FIFO_CONFIG 0x08
|
||||
#define REG_MODE_CONFIG 0x09
|
||||
#define REG_SPO2_CONFIG 0x0A
|
||||
#define REG_LED1_PA 0x0C
|
||||
#define REG_LED2_PA 0x0D
|
||||
#define REG_PILOT_PA 0x10
|
||||
#define REG_MULTI_LED_CTRL1 0x11
|
||||
#define REG_MULTI_LED_CTRL2 0x12
|
||||
#define REG_TEMP_INTR 0x1F
|
||||
#define REG_TEMP_FRAC 0x20
|
||||
#define REG_TEMP_CONFIG 0x21
|
||||
#define REG_PROX_INT_THRESH 0x30
|
||||
#define REG_REV_ID 0xFE
|
||||
#define REG_PART_ID 0xFF
|
||||
|
||||
|
||||
//IIC<49><43><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void MAX30102_IIC_Init(void); //<2F><>ʼ<EFBFBD><CABC>IIC<49><43>IO<49><4F>
|
||||
void MAX30102_IIC_Start(void); //<2F><><EFBFBD><EFBFBD>IIC<49><43>ʼ<EFBFBD>ź<EFBFBD>
|
||||
void MAX30102_IIC_Stop(void); //<2F><><EFBFBD><EFBFBD>IICֹͣ<CDA3>ź<EFBFBD>
|
||||
void MAX30102_IIC_Send_Byte(u8 txd); //IIC<49><43><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ֽ<EFBFBD>
|
||||
u8 MAX30102_IIC_Read_Byte(unsigned char ack);//IIC<49><43>ȡһ<C8A1><D2BB><EFBFBD>ֽ<EFBFBD>
|
||||
u8 MAX30102_IIC_Wait_Ack(void); //IIC<49>ȴ<EFBFBD>ACK<43>ź<EFBFBD>
|
||||
void MAX30102_IIC_Ack(void); //IIC<49><43><EFBFBD><EFBFBD>ACK<43>ź<EFBFBD>
|
||||
void MAX30102_IIC_NAck(void); //IIC<49><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ACK<43>ź<EFBFBD>
|
||||
|
||||
void MAX30102_IIC_Write_One_Byte(u8 daddr,u8 addr,u8 data);
|
||||
void MAX30102_IIC_Read_One_Byte(u8 daddr,u8 addr,u8* data);
|
||||
|
||||
void MAX30102_IIC_WriteBytes(u8 WriteAddr,u8* data,u8 dataLength);
|
||||
void MAX30102_IIC_ReadBytes(u8 deviceAddr, u8 writeAddr,u8* data,u8 dataLength);
|
||||
|
||||
//MAX30102<30><32><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void MAX30102_Init(void);
|
||||
void MAX30102_Reset(void);
|
||||
u8 M30102_Bus_Write(u8 Register_Address, u8 Word_Data);
|
||||
u8 max30102_Bus_Read(u8 Register_Address);
|
||||
void max30102_FIFO_ReadWords(u8 Register_Address,u16 Word_Data[][2],u8 count);
|
||||
void max30102_FIFO_ReadBytes(u8 Register_Address,u8* Data);
|
||||
|
||||
void maxim_max30102_write_reg(uint8_t uch_addr, uint8_t uch_data);
|
||||
void maxim_max30102_read_reg(uint8_t uch_addr, uint8_t *puch_data);
|
||||
void maxim_max30102_read_fifo(uint32_t *pun_red_led, uint32_t *pun_ir_led);
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>Ѫ<EFBFBD><D1AA><EFBFBD>㷨<EFBFBD><E3B7A8><EFBFBD>к<EFBFBD><D0BA><EFBFBD>
|
||||
void maxim_heart_rate_and_oxygen_saturation(uint32_t *pun_ir_buffer , int32_t n_ir_buffer_length, uint32_t *pun_red_buffer , int32_t *pn_spo2, int8_t *pch_spo2_valid , int32_t *pn_heart_rate , int8_t *pch_hr_valid);
|
||||
void maxim_find_peaks( int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_size, int32_t n_min_height, int32_t n_min_distance, int32_t n_max_num );
|
||||
void maxim_peaks_above_min_height( int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_size, int32_t n_min_height );
|
||||
void maxim_remove_close_peaks( int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_min_distance );
|
||||
void maxim_sort_ascend( int32_t *pn_x, int32_t n_size );
|
||||
void maxim_sort_indices_descend( int32_t *pn_x, int32_t *pn_indx, int32_t n_size);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
151
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/bmp.h
Normal file
151
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/bmp.h
Normal file
@ -0,0 +1,151 @@
|
||||
#ifndef __BMP_H
|
||||
#define __BMP_H
|
||||
unsigned char BMP1[] =
|
||||
{
|
||||
0x00,0x03,0x05,0x09,0x11,0xFF,0x11,0x89,0x05,0xC3,0x00,0xE0,0x00,0xF0,0x00,0xF8,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x28,0xFF,0x11,0xAA,0x44,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x83,0x01,0x38,0x44,0x82,0x92,
|
||||
0x92,0x74,0x01,0x83,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x44,0xFF,0x01,0x7D,
|
||||
0x7D,0x7D,0x01,0x7D,0x7D,0x7D,0x7D,0x01,0x7D,0x7D,0x7D,0x7D,0x7D,0x01,0xFF,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,
|
||||
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x3F,0x03,0x03,
|
||||
0xF3,0x13,0x11,0x11,0x11,0x11,0x11,0x11,0x01,0xF1,0x11,0x61,0x81,0x01,0x01,0x01,
|
||||
0x81,0x61,0x11,0xF1,0x01,0x01,0x01,0x01,0x41,0x41,0xF1,0x01,0x01,0x01,0x01,0x01,
|
||||
0xC1,0x21,0x11,0x11,0x11,0x11,0x21,0xC1,0x01,0x01,0x01,0x01,0x41,0x41,0xF1,0x01,
|
||||
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x11,0x11,0x11,0x11,0x11,0xD3,0x33,
|
||||
0x03,0x03,0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xE0,0x00,0x00,
|
||||
0x7F,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x7F,0x00,0x00,0x01,0x06,0x18,0x06,
|
||||
0x01,0x00,0x00,0x7F,0x00,0x00,0x00,0x00,0x40,0x40,0x7F,0x40,0x40,0x00,0x00,0x00,
|
||||
0x1F,0x20,0x40,0x40,0x40,0x40,0x20,0x1F,0x00,0x00,0x00,0x00,0x40,0x40,0x7F,0x40,
|
||||
0x40,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x40,0x30,0x0C,0x03,0x00,0x00,
|
||||
0x00,0x00,0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x07,0x06,0x06,
|
||||
0x06,0x06,0x04,0x04,0x04,0x84,0x44,0x44,0x44,0x84,0x04,0x04,0x84,0x44,0x44,0x44,
|
||||
0x84,0x04,0x04,0x04,0x84,0xC4,0x04,0x04,0x04,0x04,0x84,0x44,0x44,0x44,0x84,0x04,
|
||||
0x04,0x04,0x04,0x04,0x84,0x44,0x44,0x44,0x84,0x04,0x04,0x04,0x04,0x04,0x84,0x44,
|
||||
0x44,0x44,0x84,0x04,0x04,0x84,0x44,0x44,0x44,0x84,0x04,0x04,0x04,0x04,0x06,0x06,
|
||||
0x06,0x06,0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x10,0x18,0x14,0x12,0x11,0x00,0x00,0x0F,0x10,0x10,0x10,
|
||||
0x0F,0x00,0x00,0x00,0x10,0x1F,0x10,0x00,0x00,0x00,0x08,0x10,0x12,0x12,0x0D,0x00,
|
||||
0x00,0x18,0x00,0x00,0x0D,0x12,0x12,0x12,0x0D,0x00,0x00,0x18,0x00,0x00,0x10,0x18,
|
||||
0x14,0x12,0x11,0x00,0x00,0x10,0x18,0x14,0x12,0x11,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,
|
||||
0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x7F,0x03,0x0C,0x30,0x0C,0x03,0x7F,0x00,0x00,0x38,0x54,0x54,0x58,0x00,0x00,
|
||||
0x7C,0x04,0x04,0x78,0x00,0x00,0x3C,0x40,0x40,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xAA,0xAA,0xAA,
|
||||
0x28,0x08,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x03,0x0C,0x30,0x0C,0x03,0x7F,
|
||||
0x00,0x00,0x26,0x49,0x49,0x49,0x32,0x00,0x00,0x7F,0x02,0x04,0x08,0x10,0x7F,0x00,/********************************/
|
||||
};
|
||||
|
||||
unsigned char BMP2[] =
|
||||
{
|
||||
0x00,0x03,0x05,0x09,0x11,0xFF,0x11,0x89,0x05,0xC3,0x00,0xE0,0x00,0xF0,0x00,0xF8,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x28,0xFF,0x11,0xAA,0x44,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x83,0x01,0x38,0x44,0x82,0x92,
|
||||
0x92,0x74,0x01,0x83,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x44,0xFF,0x01,0x7D,
|
||||
0x7D,0x7D,0x7D,0x01,0x7D,0x7D,0x7D,0x7D,0x01,0x7D,0x7D,0x7D,0x7D,0x01,0xFF,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,
|
||||
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,
|
||||
0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x00,0xF8,0x18,0x60,0x80,0x00,0x00,0x00,0x80,
|
||||
0x60,0x18,0xF8,0x00,0x00,0x00,0x20,0x20,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,
|
||||
0x10,0x08,0x08,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x20,0x20,0xF8,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x88,0x68,
|
||||
0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,
|
||||
0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x7F,0x00,0x00,0x01,0x06,0x18,0x06,0x01,
|
||||
0x00,0x00,0x7F,0x00,0x00,0x00,0x40,0x40,0x7F,0x40,0x40,0x00,0x00,0x00,0x00,0x1F,
|
||||
0x20,0x40,0x40,0x40,0x40,0x20,0x1F,0x00,0x00,0x00,0x40,0x40,0x7F,0x40,0x40,0x00,
|
||||
0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x18,0x06,0x01,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x40,0x20,0x20,0x20,0xC0,0x00,0x00,0xE0,0x20,0x20,0x20,
|
||||
0xE0,0x00,0x00,0x00,0x40,0xE0,0x00,0x00,0x00,0x00,0x60,0x20,0x20,0x20,0xE0,0x00,
|
||||
0x00,0x00,0x00,0x00,0xE0,0x20,0x20,0x20,0xE0,0x00,0x00,0x00,0x00,0x00,0x40,0x20,
|
||||
0x20,0x20,0xC0,0x00,0x00,0x40,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x0C,0x0A,0x0A,0x09,0x0C,0x00,0x00,0x0F,0x08,0x08,0x08,
|
||||
0x0F,0x00,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,0x00,0x0C,0x08,0x09,0x09,0x0E,0x00,
|
||||
0x00,0x0C,0x00,0x00,0x0F,0x09,0x09,0x09,0x0F,0x00,0x00,0x0C,0x00,0x00,0x0C,0x0A,
|
||||
0x0A,0x09,0x0C,0x00,0x00,0x0C,0x0A,0x0A,0x09,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,
|
||||
0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x7F,0x03,0x0C,0x30,0x0C,0x03,0x7F,0x00,0x00,0x38,0x54,0x54,0x58,0x00,0x00,
|
||||
0x7C,0x04,0x04,0x78,0x00,0x00,0x3C,0x40,0x40,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xAA,0xAA,0xAA,
|
||||
0x28,0x08,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x03,0x0C,0x30,0x0C,0x03,0x7F,
|
||||
0x00,0x00,0x26,0x49,0x49,0x49,0x32,0x00,0x00,0x7F,0x02,0x04,0x08,0x10,0x7F,0x00,/***************************************/
|
||||
|
||||
};
|
||||
|
||||
unsigned char BMP3[] =
|
||||
{
|
||||
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xF0,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x10,0x18,0x0C,0x06,0x03,0x0C,0xF8,0x00,0x00,0x10,0x1C,0x1F,0x08,0x0C,0x04,0x04,0x04,0x06,0x02,0x1A,0xF2,0x82,0x82,0x82,0x82,0x42,0x62,0x32,0x1E,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x7F,0x00,0x00,0x00,0x00,0x10,0x10,0x30,0x20,0x20,0x20,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x38,0xE0,0x80,0x00,0x00,0x00,0x3C,0xE0,0x00,0x00,0x00,0x0C,0xF0,0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x06,0x0C,0x78,0xC8,0x0C,0x44,0xFF,0x44,0x74,0xE4,0x26,0x22,0x22,0x03,0x01,0x81,0xE0,0x3F,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0xC0,0x70,0x1C,0x1F,0x70,0xC0,0x00,0x00,0x03,0xFE,0x00,0x02,0x0E,0x18,0x60,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x20,0x20,0x20,0x27,0x20,0x30,0x10,0xFE,0x00,0x00,0x00,0x00,0x98,0xAC,0xE7,0xC1,0x80,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x10,0x30,0x20,0x20,0x30,0x10,0x10,0x10,0x18,0x08,0x08,0xFF,0x04,0x04,0x04,0x04,0xFF,0x06,0x02,0x82,0xE2,0x3F,0x01,0x01,0x01,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0E,0x0B,0x01,0xC4,0x74,0x1F,0x1A,0x72,0xC3,0x06,0x02,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x07,0x0C,0x18,0x1F,0x00,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x63,0x66,0x3C,0x1C,0x37,0x61,0xC0,0x81,0x05,0x1D,0x31,0x60,0xC0,0x00,0x01,0xFF,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x70,0x3F,0x30,0x10,0x10,0x17,0x11,0x12,0x11,0x11,0x10,0x10,0x10,0x10,0x10,0x10,0x13,0x1E,0x18,0x10,0x10,0x10,0x08,0x08,0x0C,0x06,0x07,0x09,0x38,0xE0,0x00,0x00,0x01,0x1B,0xF2,0x06,0x04,0x04,0x0C,0x08,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x02,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x01,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"δ<><CEB4><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>",0*/
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
514
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/oled.c
Normal file
514
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/oled.c
Normal file
@ -0,0 +1,514 @@
|
||||
#include "oled.h"
|
||||
#include "stdlib.h"
|
||||
#include "oledfont.h"
|
||||
#include "delay.h"
|
||||
|
||||
/*****************<2A><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>******************
|
||||
STM32
|
||||
* <20>ļ<EFBFBD> : OLED<45><44>ʾ<EFBFBD><CABE>c<EFBFBD>ļ<EFBFBD>
|
||||
* <20>汾 : V1.0
|
||||
* <20><><EFBFBD><EFBFBD> : 2024.8.7
|
||||
* MCU : STM32F103C8T6
|
||||
* <20>ӿ<EFBFBD> : <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* BILIBILI : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* CSDN : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* <20><><EFBFBD><EFBFBD> : <09><><EFBFBD><EFBFBD>
|
||||
|
||||
**********************BEGIN***********************/
|
||||
|
||||
u8 OLED_GRAM[144][8];
|
||||
|
||||
//<2F><><EFBFBD>Ժ<EFBFBD><D4BA><EFBFBD>
|
||||
void OLED_ColorTurn(u8 i)
|
||||
{
|
||||
if(i==0)
|
||||
{
|
||||
OLED_WR_Byte(0xA6,OLED_CMD);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
}
|
||||
if(i==1)
|
||||
{
|
||||
OLED_WR_Byte(0xA7,OLED_CMD);//<2F><>ɫ<EFBFBD><C9AB>ʾ
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><>Ļ<EFBFBD><C4BB>ת180<38><30>
|
||||
void OLED_DisplayTurn(u8 i)
|
||||
{
|
||||
if(i==0)
|
||||
{
|
||||
OLED_WR_Byte(0xC8,OLED_CMD);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
OLED_WR_Byte(0xA1,OLED_CMD);
|
||||
}
|
||||
if(i==1)
|
||||
{
|
||||
OLED_WR_Byte(0xC0,OLED_CMD);//<2F><>ת<EFBFBD><D7AA>ʾ
|
||||
OLED_WR_Byte(0xA0,OLED_CMD);
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><>ʱ
|
||||
void IIC_delay(void)
|
||||
{
|
||||
u8 t=3;
|
||||
while(t--);
|
||||
}
|
||||
|
||||
//<2F><>ʼ<EFBFBD>ź<EFBFBD>
|
||||
void OLED_I2C_Start(void)
|
||||
{
|
||||
OLED_SDA_Set();
|
||||
OLED_SCL_Set();
|
||||
IIC_delay();
|
||||
OLED_SDA_Clr();
|
||||
IIC_delay();
|
||||
OLED_SCL_Clr();
|
||||
IIC_delay();
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD>
|
||||
void OLED_I2C_Stop(void)
|
||||
{
|
||||
OLED_SDA_Clr();
|
||||
OLED_SCL_Set();
|
||||
IIC_delay();
|
||||
OLED_SDA_Set();
|
||||
}
|
||||
|
||||
//<2F>ȴ<EFBFBD><C8B4>ź<EFBFBD><C5BA><EFBFBD>Ӧ
|
||||
void OLED_I2C_WaitAck(void) //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>źŵĵ<C5B5>ƽ
|
||||
{
|
||||
OLED_SDA_Set();
|
||||
IIC_delay();
|
||||
OLED_SCL_Set();
|
||||
IIC_delay();
|
||||
OLED_SCL_Clr();
|
||||
IIC_delay();
|
||||
}
|
||||
|
||||
//д<><D0B4>һ<EFBFBD><D2BB><EFBFBD>ֽ<EFBFBD>
|
||||
void OLED_Send_Byte(u8 dat)
|
||||
{
|
||||
u8 i;
|
||||
for(i=0;i<8;i++)
|
||||
{
|
||||
if(dat&0x80)//<2F><>dat<61><74>8λ<38><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>д<EFBFBD><D0B4>
|
||||
{
|
||||
OLED_SDA_Set();
|
||||
}
|
||||
else
|
||||
{
|
||||
OLED_SDA_Clr();
|
||||
}
|
||||
IIC_delay();
|
||||
OLED_SCL_Set();
|
||||
IIC_delay();
|
||||
OLED_SCL_Clr();//<2F><>ʱ<EFBFBD><CAB1><EFBFBD>ź<EFBFBD><C5BA><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>͵<EFBFBD>ƽ
|
||||
dat<<=1;
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ֽ<EFBFBD>
|
||||
//mode:<3A><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ 0,<2C><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>;1,<2C><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>;
|
||||
void OLED_WR_Byte(u8 dat,u8 mode)
|
||||
{
|
||||
OLED_I2C_Start();
|
||||
OLED_Send_Byte(0x78);
|
||||
OLED_I2C_WaitAck();
|
||||
if(mode){OLED_Send_Byte(0x40);}
|
||||
else{OLED_Send_Byte(0x00);}
|
||||
OLED_I2C_WaitAck();
|
||||
OLED_Send_Byte(dat);
|
||||
OLED_I2C_WaitAck();
|
||||
OLED_I2C_Stop();
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>OLED<45><44>ʾ
|
||||
void OLED_DisPlay_On(void)
|
||||
{
|
||||
OLED_WR_Byte(0x8D,OLED_CMD);//<2F><><EFBFBD>ɱ<EFBFBD>ʹ<EFBFBD><CAB9>
|
||||
OLED_WR_Byte(0x14,OLED_CMD);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɱ<EFBFBD>
|
||||
OLED_WR_Byte(0xAF,OLED_CMD);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ
|
||||
}
|
||||
|
||||
//<2F>ر<EFBFBD>OLED<45><44>ʾ
|
||||
void OLED_DisPlay_Off(void)
|
||||
{
|
||||
OLED_WR_Byte(0x8D,OLED_CMD);//<2F><><EFBFBD>ɱ<EFBFBD>ʹ<EFBFBD><CAB9>
|
||||
OLED_WR_Byte(0x10,OLED_CMD);//<2F>رյ<D8B1><D5B5>ɱ<EFBFBD>
|
||||
OLED_WR_Byte(0xAE,OLED_CMD);//<2F>ر<EFBFBD><D8B1><EFBFBD>Ļ
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>Դ浽OLED
|
||||
void OLED_Refresh(void)
|
||||
{
|
||||
u8 i,n;
|
||||
for(i=0;i<8;i++)
|
||||
{
|
||||
OLED_WR_Byte(0xb0+i,OLED_CMD); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>ַ
|
||||
OLED_WR_Byte(0x00,OLED_CMD); //<2F><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>ַ
|
||||
OLED_WR_Byte(0x10,OLED_CMD); //<2F><><EFBFBD>ø<EFBFBD><C3B8><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>ַ
|
||||
OLED_I2C_Start();
|
||||
OLED_Send_Byte(0x78);
|
||||
OLED_I2C_WaitAck();
|
||||
OLED_Send_Byte(0x40);
|
||||
OLED_I2C_WaitAck();
|
||||
for(n=0;n<128;n++)
|
||||
{
|
||||
OLED_Send_Byte(OLED_GRAM[n][i]);
|
||||
OLED_I2C_WaitAck();
|
||||
}
|
||||
OLED_I2C_Stop();
|
||||
}
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void OLED_Clear(void)
|
||||
{
|
||||
u8 i,n;
|
||||
for(i=0;i<8;i++)
|
||||
{
|
||||
for(n=0;n<128;n++)
|
||||
{
|
||||
OLED_GRAM[n][i]=0;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
OLED_Refresh();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
//x:0~127
|
||||
//y:0~63
|
||||
//t:1 <20><><EFBFBD><EFBFBD> 0,<2C><><EFBFBD><EFBFBD>
|
||||
void OLED_DrawPoint(u8 x,u8 y,u8 t)
|
||||
{
|
||||
u8 i,m,n;
|
||||
i=y/8;
|
||||
m=y%8;
|
||||
n=1<<m;
|
||||
if(t){OLED_GRAM[x][i]|=n;}
|
||||
else
|
||||
{
|
||||
OLED_GRAM[x][i]=~OLED_GRAM[x][i];
|
||||
OLED_GRAM[x][i]|=n;
|
||||
OLED_GRAM[x][i]=~OLED_GRAM[x][i];
|
||||
}
|
||||
// OLED_Refresh();
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
//x1,y1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//x2,y2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void OLED_DrawLine(u8 x1,u8 y1,u8 x2,u8 y2,u8 mode)
|
||||
{
|
||||
u16 t;
|
||||
int xerr=0,yerr=0,delta_x,delta_y,distance;
|
||||
int incx,incy,uRow,uCol;
|
||||
delta_x=x2-x1; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
delta_y=y2-y1;
|
||||
uRow=x1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
uCol=y1;
|
||||
if(delta_x>0)incx=1; //<2F><><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
else if (delta_x==0)incx=0;//<2F><>ֱ<EFBFBD><D6B1>
|
||||
else {incx=-1;delta_x=-delta_x;}
|
||||
if(delta_y>0)incy=1;
|
||||
else if (delta_y==0)incy=0;//ˮƽ<CBAE><C6BD>
|
||||
else {incy=-1;delta_y=-delta_x;}
|
||||
if(delta_x>delta_y)distance=delta_x; //ѡȡ<D1A1><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
else distance=delta_y;
|
||||
for(t=0;t<distance+1;t++)
|
||||
{
|
||||
OLED_DrawPoint(uRow,uCol,mode);//<2F><><EFBFBD><EFBFBD>
|
||||
xerr+=delta_x;
|
||||
yerr+=delta_y;
|
||||
if(xerr>distance)
|
||||
{
|
||||
xerr-=distance;
|
||||
uRow+=incx;
|
||||
}
|
||||
if(yerr>distance)
|
||||
{
|
||||
yerr-=distance;
|
||||
uCol+=incy;
|
||||
}
|
||||
}
|
||||
// OLED_Refresh();
|
||||
}
|
||||
//x,y:Բ<><D4B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//r:Բ<>İ뾶
|
||||
void OLED_DrawCircle(u8 x,u8 y,u8 r)
|
||||
{
|
||||
int a, b,num;
|
||||
a = 0;
|
||||
b = r;
|
||||
while(2 * b * b >= r * r)
|
||||
{
|
||||
OLED_DrawPoint(x + a, y - b,1);
|
||||
OLED_DrawPoint(x - a, y - b,1);
|
||||
OLED_DrawPoint(x - a, y + b,1);
|
||||
OLED_DrawPoint(x + a, y + b,1);
|
||||
|
||||
OLED_DrawPoint(x + b, y + a,1);
|
||||
OLED_DrawPoint(x + b, y - a,1);
|
||||
OLED_DrawPoint(x - b, y - a,1);
|
||||
OLED_DrawPoint(x - b, y + a,1);
|
||||
|
||||
a++;
|
||||
num = (a * a + b * b) - r*r;//<2F><><EFBFBD>㻭<EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD>Բ<EFBFBD>ĵľ<C4B5><C4BE><EFBFBD>
|
||||
if(num > 0)
|
||||
{
|
||||
b--;
|
||||
a--;
|
||||
}
|
||||
}
|
||||
// OLED_Refresh();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//<2F><>ָ<EFBFBD><D6B8>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>ʾһ<CABE><D2BB><EFBFBD>ַ<EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
|
||||
//x:0~127
|
||||
//y:0~63
|
||||
//size1:ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 6x8/6x12/8x16/12x24
|
||||
//mode:0,<2C><>ɫ<EFBFBD><C9AB>ʾ;1,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
void OLED_ShowChar(u8 x,u8 y,u8 chr,u8 size1,u8 mode)
|
||||
{
|
||||
u8 i,m,temp,size2,chr1;
|
||||
u8 x0=x,y0=y;
|
||||
if(size1==8)size2=6;
|
||||
else size2=(size1/8+((size1%8)?1:0))*(size1/2); //<2F>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>
|
||||
chr1=chr-' '; //<2F><><EFBFBD><EFBFBD>ƫ<EFBFBD>ƺ<EFBFBD><C6BA><EFBFBD>ֵ
|
||||
for(i=0;i<size2;i++)
|
||||
{
|
||||
if(size1==8)
|
||||
{temp=asc2_0806[chr1][i];} //<2F><><EFBFBD><EFBFBD>0806<30><36><EFBFBD><EFBFBD>
|
||||
else if(size1==12)
|
||||
{temp=asc2_1206[chr1][i];} //<2F><><EFBFBD><EFBFBD>1206<30><36><EFBFBD><EFBFBD>
|
||||
else if(size1==16)
|
||||
{temp=asc2_1608[chr1][i];} //<2F><><EFBFBD><EFBFBD>1608<30><38><EFBFBD><EFBFBD>
|
||||
else if(size1==24)
|
||||
{temp=asc2_2412[chr1][i];} //<2F><><EFBFBD><EFBFBD>2412<31><32><EFBFBD><EFBFBD>
|
||||
else return;
|
||||
for(m=0;m<8;m++)
|
||||
{
|
||||
if(temp&0x01)OLED_DrawPoint(x,y,mode);
|
||||
else OLED_DrawPoint(x,y,!mode);
|
||||
temp>>=1;
|
||||
y++;
|
||||
}
|
||||
x++;
|
||||
if((size1!=8)&&((x-x0)==size1/2))
|
||||
{x=x0;y0=y0+8;}
|
||||
y=y0;
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
|
||||
|
||||
//<2F><>ʾ<EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
||||
//x,y:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//size1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
||||
//*chr:<3A>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>ַ
|
||||
//mode:0,<2C><>ɫ<EFBFBD><C9AB>ʾ;1,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
void OLED_ShowString(u8 x,u8 y,u8 *chr,u8 size1,u8 mode)
|
||||
{
|
||||
while((*chr>=' ')&&(*chr<='~'))//<2F>ж<EFBFBD><D0B6>Dz<EFBFBD><C7B2>ǷǷ<C7B7><C7B7>ַ<EFBFBD>!
|
||||
{
|
||||
OLED_ShowChar(x,y,*chr,size1,mode);
|
||||
if(size1==8)x+=6;
|
||||
else x+=size1/2;
|
||||
chr++;
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
|
||||
//m^n
|
||||
u32 OLED_Pow(u8 m,u8 n)
|
||||
{
|
||||
u32 result=1;
|
||||
while(n--)
|
||||
{
|
||||
result*=m;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
//<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
||||
//x,y :<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//num :Ҫ<><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//len :<3A><><EFBFBD>ֵ<EFBFBD>λ<EFBFBD><CEBB>
|
||||
//size:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
||||
//mode:0,<2C><>ɫ<EFBFBD><C9AB>ʾ;1,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
void OLED_ShowNum(u8 x,u8 y,u32 num,u8 len,u8 size1,u8 mode)
|
||||
{
|
||||
u8 t,temp,m=0;
|
||||
if(size1==8)m=2;
|
||||
for(t=0;t<len;t++)
|
||||
{
|
||||
temp=(num/OLED_Pow(10,len-t-1))%10;
|
||||
if(temp==0)
|
||||
{
|
||||
OLED_ShowChar(x+(size1/2+m)*t,y,'0',size1,mode);
|
||||
}
|
||||
else
|
||||
{
|
||||
OLED_ShowChar(x+(size1/2+m)*t,y,temp+'0',size1,mode);
|
||||
}
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
|
||||
//<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
||||
//x,y:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//num:<3A><><EFBFBD>ֶ<EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//mode:0,<2C><>ɫ<EFBFBD><C9AB>ʾ;1,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
void OLED_ShowChinese(u8 x,u8 y,u8 num,u8 size1,u8 mode)
|
||||
{
|
||||
u8 m,temp;
|
||||
u8 x0=x,y0=y;
|
||||
u16 i,size3=(size1/8+((size1%8)?1:0))*size1; //<2F>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>
|
||||
for(i=0;i<size3;i++)
|
||||
{
|
||||
if(size1==16)
|
||||
{temp=Hzk1[num][i];}//<2F><><EFBFBD><EFBFBD>16*16<31><36><EFBFBD><EFBFBD>
|
||||
else if(size1==24)
|
||||
{temp=Hzk2[num][i];}//<2F><><EFBFBD><EFBFBD>24*24<32><34><EFBFBD><EFBFBD>
|
||||
else if(size1==32)
|
||||
{temp=Hzk3[num][i];}//<2F><><EFBFBD><EFBFBD>32*32<33><32><EFBFBD><EFBFBD>
|
||||
else if(size1==64)
|
||||
{temp=Hzk4[num][i];}//<2F><><EFBFBD><EFBFBD>64*64<36><34><EFBFBD><EFBFBD>
|
||||
else return;
|
||||
for(m=0;m<8;m++)
|
||||
{
|
||||
if(temp&0x01)OLED_DrawPoint(x,y,mode);
|
||||
else OLED_DrawPoint(x,y,!mode);
|
||||
temp>>=1;
|
||||
y++;
|
||||
}
|
||||
x++;
|
||||
if((x-x0)==size1)
|
||||
{x=x0;y0=y0+8;}
|
||||
y=y0;
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
|
||||
//num <20><>ʾ<EFBFBD><CABE><EFBFBD>ֵĸ<D6B5><C4B8><EFBFBD>
|
||||
//space ÿһ<C3BF><D2BB><EFBFBD><EFBFBD>ʾ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
//mode:0,<2C><>ɫ<EFBFBD><C9AB>ʾ;1,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
void OLED_ScrollDisplay(u8 num,u8 space,u8 mode)
|
||||
{
|
||||
u8 i,n,t=0,m=0,r;
|
||||
while(1)
|
||||
{
|
||||
if(m==0)
|
||||
{
|
||||
OLED_ShowChinese(128,24,t,16,mode); //д<><D0B4>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD><EFBFBD>OLED_GRAM[][]<5D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
t++;
|
||||
}
|
||||
if(t==num)
|
||||
{
|
||||
for(r=0;r<16*space;r++) //<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
||||
{
|
||||
for(i=1;i<144;i++)
|
||||
{
|
||||
for(n=0;n<8;n++)
|
||||
{
|
||||
OLED_GRAM[i-1][n]=OLED_GRAM[i][n];
|
||||
}
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
t=0;
|
||||
}
|
||||
m++;
|
||||
if(m==16){m=0;}
|
||||
for(i=1;i<144;i++) //ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
for(n=0;n<8;n++)
|
||||
{
|
||||
OLED_GRAM[i-1][n]=OLED_GRAM[i][n];
|
||||
}
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
//x,y<><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//sizex,sizey,ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>
|
||||
//BMP[]<5D><>Ҫд<D2AA><D0B4><EFBFBD><EFBFBD>ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD>
|
||||
//mode:0,<2C><>ɫ<EFBFBD><C9AB>ʾ;1,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
void OLED_ShowPicture(u8 x,u8 y,u8 sizex,u8 sizey,u8 BMP[],u8 mode)
|
||||
{
|
||||
u16 j=0;
|
||||
u8 i,n,temp,m;
|
||||
u8 x0=x,y0=y;
|
||||
sizey=sizey/8+((sizey%8)?1:0);
|
||||
for(n=0;n<sizey;n++)
|
||||
{
|
||||
for(i=0;i<sizex;i++)
|
||||
{
|
||||
temp=BMP[j];
|
||||
j++;
|
||||
for(m=0;m<8;m++)
|
||||
{
|
||||
if(temp&0x01)OLED_DrawPoint(x,y,mode);
|
||||
else OLED_DrawPoint(x,y,!mode);
|
||||
temp>>=1;
|
||||
y++;
|
||||
}
|
||||
x++;
|
||||
if((x-x0)==sizex)
|
||||
{
|
||||
x=x0;
|
||||
y0=y0+8;
|
||||
}
|
||||
y=y0;
|
||||
}
|
||||
}
|
||||
OLED_Refresh();
|
||||
}
|
||||
//OLED<45>ij<EFBFBD>ʼ<EFBFBD><CABC>
|
||||
void OLED_Init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
RCC_APB2PeriphClockCmd(OLED_SCL_GPIO_CLK|OLED_SDA_GPIO_CLK, ENABLE); //ʹ<><CAB9>A<EFBFBD>˿<EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
GPIO_InitStructure.GPIO_Pin = OLED_SCL_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;//<2F>ٶ<EFBFBD>50MHz
|
||||
GPIO_Init(OLED_SCL_PORT, &GPIO_InitStructure); //<2F><>ʼ<EFBFBD><CABC>PA0,1
|
||||
GPIO_SetBits(OLED_SCL_PORT,OLED_SCL_PIN);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = OLED_SDA_PIN;
|
||||
GPIO_Init(OLED_SDA_PORT, &GPIO_InitStructure); //<2F><>ʼ<EFBFBD><CABC>PA0,1
|
||||
GPIO_SetBits(OLED_SDA_PORT,OLED_SDA_PIN);
|
||||
|
||||
delay_ms(200);
|
||||
|
||||
OLED_WR_Byte(0xAE,OLED_CMD);//--turn off oled panel
|
||||
OLED_WR_Byte(0x00,OLED_CMD);//---set low column address
|
||||
OLED_WR_Byte(0x10,OLED_CMD);//---set high column address
|
||||
OLED_WR_Byte(0x40,OLED_CMD);//--set start line address Set Mapping RAM Display Start Line (0x00~0x3F)
|
||||
OLED_WR_Byte(0x81,OLED_CMD);//--set contrast control register
|
||||
OLED_WR_Byte(0xCF,OLED_CMD);// Set SEG Output Current Brightness
|
||||
OLED_WR_Byte(0xA1,OLED_CMD);//--Set SEG/Column Mapping 0xa0<61><30><EFBFBD>ҷ<EFBFBD><D2B7><EFBFBD> 0xa1<61><31><EFBFBD><EFBFBD>
|
||||
OLED_WR_Byte(0xC8,OLED_CMD);//Set COM/Row Scan Direction 0xc0<63><30><EFBFBD>·<EFBFBD><C2B7><EFBFBD> 0xc8<63><38><EFBFBD><EFBFBD>
|
||||
OLED_WR_Byte(0xA6,OLED_CMD);//--set normal display
|
||||
OLED_WR_Byte(0xA8,OLED_CMD);//--set multiplex ratio(1 to 64)
|
||||
OLED_WR_Byte(0x3f,OLED_CMD);//--1/64 duty
|
||||
OLED_WR_Byte(0xD3,OLED_CMD);//-set display offset Shift Mapping RAM Counter (0x00~0x3F)
|
||||
OLED_WR_Byte(0x00,OLED_CMD);//-not offset
|
||||
OLED_WR_Byte(0xd5,OLED_CMD);//--set display clock divide ratio/oscillator frequency
|
||||
OLED_WR_Byte(0x80,OLED_CMD);//--set divide ratio, Set Clock as 100 Frames/Sec
|
||||
OLED_WR_Byte(0xD9,OLED_CMD);//--set pre-charge period
|
||||
OLED_WR_Byte(0xF1,OLED_CMD);//Set Pre-Charge as 15 Clocks & Discharge as 1 Clock
|
||||
OLED_WR_Byte(0xDA,OLED_CMD);//--set com pins hardware configuration
|
||||
OLED_WR_Byte(0x12,OLED_CMD);
|
||||
OLED_WR_Byte(0xDB,OLED_CMD);//--set vcomh
|
||||
OLED_WR_Byte(0x30,OLED_CMD);//Set VCOM Deselect Level
|
||||
OLED_WR_Byte(0x20,OLED_CMD);//-Set Page Addressing Mode (0x00/0x01/0x02)
|
||||
OLED_WR_Byte(0x02,OLED_CMD);//
|
||||
OLED_WR_Byte(0x8D,OLED_CMD);//--set Charge Pump enable/disable
|
||||
OLED_WR_Byte(0x14,OLED_CMD);//--set(0x10) disable
|
||||
OLED_Clear();
|
||||
OLED_WR_Byte(0xAF,OLED_CMD);
|
||||
}
|
||||
|
63
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/oled.h
Normal file
63
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/oled.h
Normal file
@ -0,0 +1,63 @@
|
||||
#ifndef __OLED_H
|
||||
#define __OLED_H
|
||||
#include "sys.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
/*****************<2A><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>******************
|
||||
STM32
|
||||
* <20>ļ<EFBFBD> : OLED<45><44>ʾ<EFBFBD><CABE>h<EFBFBD>ļ<EFBFBD>
|
||||
* <20>汾 : V1.0
|
||||
* <20><><EFBFBD><EFBFBD> : 2024.8.7
|
||||
* MCU : STM32F103C8T6
|
||||
* <20>ӿ<EFBFBD> : <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* BILIBILI : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* CSDN : <09><><EFBFBD>絥Ƭ<E7B5A5><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* <20><><EFBFBD><EFBFBD> : <09><><EFBFBD><EFBFBD>
|
||||
|
||||
**********************BEGIN***********************/
|
||||
|
||||
//----------------OLED<45>˿ڶ<CBBF><DAB6><EFBFBD>-----------------
|
||||
/***************<2A><><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>****************/
|
||||
#define OLED_SCL_PORT GPIOB
|
||||
#define OLED_SCL_PIN GPIO_Pin_8
|
||||
#define OLED_SCL_GPIO_CLK RCC_APB2Periph_GPIOB
|
||||
#define OLED_SDA_PORT GPIOB
|
||||
#define OLED_SDA_PIN GPIO_Pin_9
|
||||
#define OLED_SDA_GPIO_CLK RCC_APB2Periph_GPIOB
|
||||
/*********************END**********************/
|
||||
|
||||
#define OLED_SCL_Clr() GPIO_ResetBits(OLED_SCL_PORT,OLED_SCL_PIN)//SCL
|
||||
#define OLED_SCL_Set() GPIO_SetBits(OLED_SCL_PORT,OLED_SCL_PIN)
|
||||
|
||||
#define OLED_SDA_Clr() GPIO_ResetBits(OLED_SDA_PORT,OLED_SDA_PIN)//DIN
|
||||
#define OLED_SDA_Set() GPIO_SetBits(OLED_SDA_PORT,OLED_SDA_PIN)
|
||||
|
||||
#define OLED_CMD 0 //д<><D0B4><EFBFBD><EFBFBD>
|
||||
#define OLED_DATA 1 //д<><D0B4><EFBFBD><EFBFBD>
|
||||
|
||||
void OLED_ClearPoint(u8 x,u8 y);
|
||||
void OLED_ColorTurn(u8 i);
|
||||
void OLED_DisplayTurn(u8 i);
|
||||
void OLED_I2C_Start(void);
|
||||
void OLED_I2C_Stop(void);
|
||||
void OLED_I2C_WaitAck(void);
|
||||
void OLED_Send_Byte(u8 dat);
|
||||
void OLED_WR_Byte(u8 dat,u8 mode);
|
||||
void OLED_DisPlay_On(void);
|
||||
void OLED_DisPlay_Off(void);
|
||||
void OLED_Refresh(void);
|
||||
void OLED_Clear(void);
|
||||
void OLED_DrawPoint(u8 x,u8 y,u8 t);
|
||||
void OLED_DrawLine(u8 x1,u8 y1,u8 x2,u8 y2,u8 mode);
|
||||
void OLED_DrawCircle(u8 x,u8 y,u8 r);
|
||||
void OLED_ShowChar(u8 x,u8 y,u8 chr,u8 size1,u8 mode);
|
||||
void OLED_ShowChar6x8(u8 x,u8 y,u8 chr,u8 mode);
|
||||
void OLED_ShowString(u8 x,u8 y,u8 *chr,u8 size1,u8 mode);
|
||||
void OLED_ShowNum(u8 x,u8 y,u32 num,u8 len,u8 size1,u8 mode);
|
||||
void OLED_ShowChinese(u8 x,u8 y,u8 num,u8 size1,u8 mode);
|
||||
void OLED_ScrollDisplay(u8 num,u8 space,u8 mode);
|
||||
void OLED_ShowPicture(u8 x,u8 y,u8 sizex,u8 sizey,u8 BMP[],u8 mode);
|
||||
void OLED_Init(void);
|
||||
|
||||
#endif
|
||||
|
422
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/oledfont.h
Normal file
422
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/OLED/oledfont.h
Normal file
@ -0,0 +1,422 @@
|
||||
#ifndef __OLEDFONT_H
|
||||
#define __OLEDFONT_H
|
||||
const unsigned char asc2_0806[][6] =
|
||||
{
|
||||
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},// sp
|
||||
{0x00, 0x00, 0x00, 0x2f, 0x00, 0x00},// !
|
||||
{0x00, 0x00, 0x07, 0x00, 0x07, 0x00},// "
|
||||
{0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14},// #
|
||||
{0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12},// $
|
||||
{0x00, 0x62, 0x64, 0x08, 0x13, 0x23},// %
|
||||
{0x00, 0x36, 0x49, 0x55, 0x22, 0x50},// &
|
||||
{0x00, 0x00, 0x05, 0x03, 0x00, 0x00},// '
|
||||
{0x00, 0x00, 0x1c, 0x22, 0x41, 0x00},// (
|
||||
{0x00, 0x00, 0x41, 0x22, 0x1c, 0x00},// )
|
||||
{0x00, 0x14, 0x08, 0x3E, 0x08, 0x14},// *
|
||||
{0x00, 0x08, 0x08, 0x3E, 0x08, 0x08},// +
|
||||
{0x00, 0x00, 0x00, 0xA0, 0x60, 0x00},// ,
|
||||
{0x00, 0x08, 0x08, 0x08, 0x08, 0x08},// -
|
||||
{0x00, 0x00, 0x60, 0x60, 0x00, 0x00},// .
|
||||
{0x00, 0x20, 0x10, 0x08, 0x04, 0x02},// /
|
||||
{0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E},// 0
|
||||
{0x00, 0x00, 0x42, 0x7F, 0x40, 0x00},// 1
|
||||
{0x00, 0x42, 0x61, 0x51, 0x49, 0x46},// 2
|
||||
{0x00, 0x21, 0x41, 0x45, 0x4B, 0x31},// 3
|
||||
{0x00, 0x18, 0x14, 0x12, 0x7F, 0x10},// 4
|
||||
{0x00, 0x27, 0x45, 0x45, 0x45, 0x39},// 5
|
||||
{0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30},// 6
|
||||
{0x00, 0x01, 0x71, 0x09, 0x05, 0x03},// 7
|
||||
{0x00, 0x36, 0x49, 0x49, 0x49, 0x36},// 8
|
||||
{0x00, 0x06, 0x49, 0x49, 0x29, 0x1E},// 9
|
||||
{0x00, 0x00, 0x36, 0x36, 0x00, 0x00},// :
|
||||
{0x00, 0x00, 0x56, 0x36, 0x00, 0x00},// ;
|
||||
{0x00, 0x08, 0x14, 0x22, 0x41, 0x00},// <
|
||||
{0x00, 0x14, 0x14, 0x14, 0x14, 0x14},// =
|
||||
{0x00, 0x00, 0x41, 0x22, 0x14, 0x08},// >
|
||||
{0x00, 0x02, 0x01, 0x51, 0x09, 0x06},// ?
|
||||
{0x00, 0x32, 0x49, 0x59, 0x51, 0x3E},// @
|
||||
{0x00, 0x7C, 0x12, 0x11, 0x12, 0x7C},// A
|
||||
{0x00, 0x7F, 0x49, 0x49, 0x49, 0x36},// B
|
||||
{0x00, 0x3E, 0x41, 0x41, 0x41, 0x22},// C
|
||||
{0x00, 0x7F, 0x41, 0x41, 0x22, 0x1C},// D
|
||||
{0x00, 0x7F, 0x49, 0x49, 0x49, 0x41},// E
|
||||
{0x00, 0x7F, 0x09, 0x09, 0x09, 0x01},// F
|
||||
{0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A},// G
|
||||
{0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F},// H
|
||||
{0x00, 0x00, 0x41, 0x7F, 0x41, 0x00},// I
|
||||
{0x00, 0x20, 0x40, 0x41, 0x3F, 0x01},// J
|
||||
{0x00, 0x7F, 0x08, 0x14, 0x22, 0x41},// K
|
||||
{0x00, 0x7F, 0x40, 0x40, 0x40, 0x40},// L
|
||||
{0x00, 0x7F, 0x02, 0x0C, 0x02, 0x7F},// M
|
||||
{0x00, 0x7F, 0x04, 0x08, 0x10, 0x7F},// N
|
||||
{0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E},// O
|
||||
{0x00, 0x7F, 0x09, 0x09, 0x09, 0x06},// P
|
||||
{0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E},// Q
|
||||
{0x00, 0x7F, 0x09, 0x19, 0x29, 0x46},// R
|
||||
{0x00, 0x46, 0x49, 0x49, 0x49, 0x31},// S
|
||||
{0x00, 0x01, 0x01, 0x7F, 0x01, 0x01},// T
|
||||
{0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F},// U
|
||||
{0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F},// V
|
||||
{0x00, 0x3F, 0x40, 0x38, 0x40, 0x3F},// W
|
||||
{0x00, 0x63, 0x14, 0x08, 0x14, 0x63},// X
|
||||
{0x00, 0x07, 0x08, 0x70, 0x08, 0x07},// Y
|
||||
{0x00, 0x61, 0x51, 0x49, 0x45, 0x43},// Z
|
||||
{0x00, 0x00, 0x7F, 0x41, 0x41, 0x00},// [
|
||||
{0x00, 0x55, 0x2A, 0x55, 0x2A, 0x55},// 55
|
||||
{0x00, 0x00, 0x41, 0x41, 0x7F, 0x00},// ]
|
||||
{0x00, 0x04, 0x02, 0x01, 0x02, 0x04},// ^
|
||||
{0x00, 0x40, 0x40, 0x40, 0x40, 0x40},// _
|
||||
{0x00, 0x00, 0x01, 0x02, 0x04, 0x00},// '
|
||||
{0x00, 0x20, 0x54, 0x54, 0x54, 0x78},// a
|
||||
{0x00, 0x7F, 0x48, 0x44, 0x44, 0x38},// b
|
||||
{0x00, 0x38, 0x44, 0x44, 0x44, 0x20},// c
|
||||
{0x00, 0x38, 0x44, 0x44, 0x48, 0x7F},// d
|
||||
{0x00, 0x38, 0x54, 0x54, 0x54, 0x18},// e
|
||||
{0x00, 0x08, 0x7E, 0x09, 0x01, 0x02},// f
|
||||
{0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C},// g
|
||||
{0x00, 0x7F, 0x08, 0x04, 0x04, 0x78},// h
|
||||
{0x00, 0x00, 0x44, 0x7D, 0x40, 0x00},// i
|
||||
{0x00, 0x40, 0x80, 0x84, 0x7D, 0x00},// j
|
||||
{0x00, 0x7F, 0x10, 0x28, 0x44, 0x00},// k
|
||||
{0x00, 0x00, 0x41, 0x7F, 0x40, 0x00},// l
|
||||
{0x00, 0x7C, 0x04, 0x18, 0x04, 0x78},// m
|
||||
{0x00, 0x7C, 0x08, 0x04, 0x04, 0x78},// n
|
||||
{0x00, 0x38, 0x44, 0x44, 0x44, 0x38},// o
|
||||
{0x00, 0xFC, 0x24, 0x24, 0x24, 0x18},// p
|
||||
{0x00, 0x18, 0x24, 0x24, 0x18, 0xFC},// q
|
||||
{0x00, 0x7C, 0x08, 0x04, 0x04, 0x08},// r
|
||||
{0x00, 0x48, 0x54, 0x54, 0x54, 0x20},// s
|
||||
{0x00, 0x04, 0x3F, 0x44, 0x40, 0x20},// t
|
||||
{0x00, 0x3C, 0x40, 0x40, 0x20, 0x7C},// u
|
||||
{0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C},// v
|
||||
{0x00, 0x3C, 0x40, 0x30, 0x40, 0x3C},// w
|
||||
{0x00, 0x44, 0x28, 0x10, 0x28, 0x44},// x
|
||||
{0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C},// y
|
||||
{0x00, 0x44, 0x64, 0x54, 0x4C, 0x44},// z
|
||||
{0x14, 0x14, 0x14, 0x14, 0x14, 0x14},// horiz lines
|
||||
};
|
||||
//12*12 ASCII<49>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
const unsigned char asc2_1206[95][12]={
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
|
||||
{0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*"!",1*/
|
||||
{0x00,0x0C,0x02,0x0C,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
|
||||
{0x90,0xD0,0xBC,0xD0,0xBC,0x90,0x00,0x03,0x00,0x03,0x00,0x00},/*"#",3*/
|
||||
{0x18,0x24,0xFE,0x44,0x8C,0x00,0x03,0x02,0x07,0x02,0x01,0x00},/*"$",4*/
|
||||
{0x18,0x24,0xD8,0xB0,0x4C,0x80,0x00,0x03,0x00,0x01,0x02,0x01},/*"%",5*/
|
||||
{0xC0,0x38,0xE4,0x38,0xE0,0x00,0x01,0x02,0x02,0x01,0x02,0x02},/*"&",6*/
|
||||
{0x08,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
|
||||
{0x00,0x00,0x00,0xF8,0x04,0x02,0x00,0x00,0x00,0x01,0x02,0x04},/*"(",8*/
|
||||
{0x00,0x02,0x04,0xF8,0x00,0x00,0x00,0x04,0x02,0x01,0x00,0x00},/*")",9*/
|
||||
{0x90,0x60,0xF8,0x60,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00},/*"*",10*/
|
||||
{0x20,0x20,0xFC,0x20,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00},/*"+",11*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x06,0x00,0x00,0x00,0x00},/*",",12*/
|
||||
{0x20,0x20,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",13*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00},/*".",14*/
|
||||
{0x00,0x80,0x60,0x1C,0x02,0x00,0x04,0x03,0x00,0x00,0x00,0x00},/*"/",15*/
|
||||
{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"0",16*/
|
||||
{0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"1",17*/
|
||||
{0x18,0x84,0x44,0x24,0x18,0x00,0x03,0x02,0x02,0x02,0x02,0x00},/*"2",18*/
|
||||
{0x08,0x04,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"3",19*/
|
||||
{0x40,0xB0,0x88,0xFC,0x80,0x00,0x00,0x00,0x00,0x03,0x02,0x00},/*"4",20*/
|
||||
{0x3C,0x24,0x24,0x24,0xC4,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"5",21*/
|
||||
{0xF8,0x24,0x24,0x2C,0xC0,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"6",22*/
|
||||
{0x0C,0x04,0xE4,0x1C,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00},/*"7",23*/
|
||||
{0xD8,0x24,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"8",24*/
|
||||
{0x38,0x44,0x44,0x44,0xF8,0x00,0x00,0x03,0x02,0x02,0x01,0x00},/*"9",25*/
|
||||
{0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*":",26*/
|
||||
{0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00},/*";",27*/
|
||||
{0x00,0x20,0x50,0x88,0x04,0x02,0x00,0x00,0x00,0x00,0x01,0x02},/*"<",28*/
|
||||
{0x90,0x90,0x90,0x90,0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",29*/
|
||||
{0x00,0x02,0x04,0x88,0x50,0x20,0x00,0x02,0x01,0x00,0x00,0x00},/*">",30*/
|
||||
{0x18,0x04,0xC4,0x24,0x18,0x00,0x00,0x00,0x02,0x00,0x00,0x00},/*"?",31*/
|
||||
{0xF8,0x04,0xE4,0x94,0xF8,0x00,0x01,0x02,0x02,0x02,0x02,0x00},/*"@",32*/
|
||||
{0x00,0xE0,0x9C,0xF0,0x80,0x00,0x02,0x03,0x00,0x00,0x03,0x02},/*"A",33*/
|
||||
{0x04,0xFC,0x24,0x24,0xD8,0x00,0x02,0x03,0x02,0x02,0x01,0x00},/*"B",34*/
|
||||
{0xF8,0x04,0x04,0x04,0x0C,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"C",35*/
|
||||
{0x04,0xFC,0x04,0x04,0xF8,0x00,0x02,0x03,0x02,0x02,0x01,0x00},/*"D",36*/
|
||||
{0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x02,0x03,0x00},/*"E",37*/
|
||||
{0x04,0xFC,0x24,0x74,0x0C,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"F",38*/
|
||||
{0xF0,0x08,0x04,0x44,0xCC,0x40,0x00,0x01,0x02,0x02,0x01,0x00},/*"G",39*/
|
||||
{0x04,0xFC,0x20,0x20,0xFC,0x04,0x02,0x03,0x00,0x00,0x03,0x02},/*"H",40*/
|
||||
{0x04,0x04,0xFC,0x04,0x04,0x00,0x02,0x02,0x03,0x02,0x02,0x00},/*"I",41*/
|
||||
{0x00,0x04,0x04,0xFC,0x04,0x04,0x06,0x04,0x04,0x03,0x00,0x00},/*"J",42*/
|
||||
{0x04,0xFC,0x24,0xD0,0x0C,0x04,0x02,0x03,0x02,0x00,0x03,0x02},/*"K",43*/
|
||||
{0x04,0xFC,0x04,0x00,0x00,0x00,0x02,0x03,0x02,0x02,0x02,0x03},/*"L",44*/
|
||||
{0xFC,0x3C,0xC0,0x3C,0xFC,0x00,0x03,0x00,0x03,0x00,0x03,0x00},/*"M",45*/
|
||||
{0x04,0xFC,0x30,0xC4,0xFC,0x04,0x02,0x03,0x02,0x00,0x03,0x00},/*"N",46*/
|
||||
{0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00},/*"O",47*/
|
||||
{0x04,0xFC,0x24,0x24,0x18,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"P",48*/
|
||||
{0xF8,0x84,0x84,0x04,0xF8,0x00,0x01,0x02,0x02,0x07,0x05,0x00},/*"Q",49*/
|
||||
{0x04,0xFC,0x24,0x64,0x98,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"R",50*/
|
||||
{0x18,0x24,0x24,0x44,0x8C,0x00,0x03,0x02,0x02,0x02,0x01,0x00},/*"S",51*/
|
||||
{0x0C,0x04,0xFC,0x04,0x0C,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"T",52*/
|
||||
{0x04,0xFC,0x00,0x00,0xFC,0x04,0x00,0x01,0x02,0x02,0x01,0x00},/*"U",53*/
|
||||
{0x04,0x7C,0x80,0xE0,0x1C,0x04,0x00,0x00,0x03,0x00,0x00,0x00},/*"V",54*/
|
||||
{0x1C,0xE0,0x3C,0xE0,0x1C,0x00,0x00,0x03,0x00,0x03,0x00,0x00},/*"W",55*/
|
||||
{0x04,0x9C,0x60,0x9C,0x04,0x00,0x02,0x03,0x00,0x03,0x02,0x00},/*"X",56*/
|
||||
{0x04,0x1C,0xE0,0x1C,0x04,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"Y",57*/
|
||||
{0x0C,0x84,0x64,0x1C,0x04,0x00,0x02,0x03,0x02,0x02,0x03,0x00},/*"Z",58*/
|
||||
{0x00,0x00,0xFE,0x02,0x02,0x00,0x00,0x00,0x07,0x04,0x04,0x00},/*"[",59*/
|
||||
{0x00,0x0E,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x00},/*"\",60*/
|
||||
{0x00,0x02,0x02,0xFE,0x00,0x00,0x00,0x04,0x04,0x07,0x00,0x00},/*"]",61*/
|
||||
{0x00,0x04,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x08},/*"_",63*/
|
||||
{0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
|
||||
{0x00,0x40,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"a",65*/
|
||||
{0x04,0xFC,0x20,0x20,0xC0,0x00,0x00,0x03,0x02,0x02,0x01,0x00},/*"b",66*/
|
||||
{0x00,0xC0,0x20,0x20,0x60,0x00,0x00,0x01,0x02,0x02,0x02,0x00},/*"c",67*/
|
||||
{0x00,0xC0,0x20,0x24,0xFC,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"d",68*/
|
||||
{0x00,0xC0,0xA0,0xA0,0xC0,0x00,0x00,0x01,0x02,0x02,0x02,0x00},/*"e",69*/
|
||||
{0x00,0x20,0xF8,0x24,0x24,0x04,0x00,0x02,0x03,0x02,0x02,0x00},/*"f",70*/
|
||||
{0x00,0x40,0xA0,0xA0,0x60,0x20,0x00,0x07,0x0A,0x0A,0x0A,0x04},/*"g",71*/
|
||||
{0x04,0xFC,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"h",72*/
|
||||
{0x00,0x20,0xE4,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00},/*"i",73*/
|
||||
{0x00,0x00,0x20,0xE4,0x00,0x00,0x08,0x08,0x08,0x07,0x00,0x00},/*"j",74*/
|
||||
{0x04,0xFC,0x80,0xE0,0x20,0x20,0x02,0x03,0x02,0x00,0x03,0x02},/*"k",75*/
|
||||
{0x04,0x04,0xFC,0x00,0x00,0x00,0x02,0x02,0x03,0x02,0x02,0x00},/*"l",76*/
|
||||
{0xE0,0x20,0xE0,0x20,0xC0,0x00,0x03,0x00,0x03,0x00,0x03,0x00},/*"m",77*/
|
||||
{0x20,0xE0,0x20,0x20,0xC0,0x00,0x02,0x03,0x02,0x00,0x03,0x02},/*"n",78*/
|
||||
{0x00,0xC0,0x20,0x20,0xC0,0x00,0x00,0x01,0x02,0x02,0x01,0x00},/*"o",79*/
|
||||
{0x20,0xE0,0x20,0x20,0xC0,0x00,0x08,0x0F,0x0A,0x02,0x01,0x00},/*"p",80*/
|
||||
{0x00,0xC0,0x20,0x20,0xE0,0x00,0x00,0x01,0x02,0x0A,0x0F,0x08},/*"q",81*/
|
||||
{0x20,0xE0,0x40,0x20,0x20,0x00,0x02,0x03,0x02,0x00,0x00,0x00},/*"r",82*/
|
||||
{0x00,0x60,0xA0,0xA0,0x20,0x00,0x00,0x02,0x02,0x02,0x03,0x00},/*"s",83*/
|
||||
{0x00,0x20,0xF8,0x20,0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x00},/*"t",84*/
|
||||
{0x20,0xE0,0x00,0x20,0xE0,0x00,0x00,0x01,0x02,0x02,0x03,0x02},/*"u",85*/
|
||||
{0x20,0xE0,0x20,0x80,0x60,0x20,0x00,0x00,0x03,0x01,0x00,0x00},/*"v",86*/
|
||||
{0x60,0x80,0xE0,0x80,0x60,0x00,0x00,0x03,0x00,0x03,0x00,0x00},/*"w",87*/
|
||||
{0x20,0x60,0x80,0x60,0x20,0x00,0x02,0x03,0x00,0x03,0x02,0x00},/*"x",88*/
|
||||
{0x20,0xE0,0x20,0x80,0x60,0x20,0x08,0x08,0x07,0x01,0x00,0x00},/*"y",89*/
|
||||
{0x00,0x20,0xA0,0x60,0x20,0x00,0x00,0x02,0x03,0x02,0x02,0x00},/*"z",90*/
|
||||
{0x00,0x00,0x20,0xDE,0x02,0x00,0x00,0x00,0x00,0x07,0x04,0x00},/*"{",91*/
|
||||
{0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x0F,0x00,0x00},/*"|",92*/
|
||||
{0x00,0x02,0xDE,0x20,0x00,0x00,0x00,0x04,0x07,0x00,0x00,0x00},/*"}",93*/
|
||||
{0x02,0x01,0x02,0x04,0x04,0x02,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
|
||||
};
|
||||
//16*16 ASCII<49>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
const unsigned char asc2_1608[][16]={
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
|
||||
{0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00},/*"!",1*/
|
||||
{0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
|
||||
{0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00},/*"#",3*/
|
||||
{0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00},/*"$",4*/
|
||||
{0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00},/*"%",5*/
|
||||
{0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10},/*"&",6*/
|
||||
{0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
|
||||
{0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00},/*"(",8*/
|
||||
{0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00},/*")",9*/
|
||||
{0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00},/*"*",10*/
|
||||
{0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00},/*"+",11*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00},/*",",12*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01},/*"-",13*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00},/*".",14*/
|
||||
{0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00},/*"/",15*/
|
||||
{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00},/*"0",16*/
|
||||
{0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"1",17*/
|
||||
{0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00},/*"2",18*/
|
||||
{0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00},/*"3",19*/
|
||||
{0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00},/*"4",20*/
|
||||
{0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00},/*"5",21*/
|
||||
{0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00},/*"6",22*/
|
||||
{0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00},/*"7",23*/
|
||||
{0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00},/*"8",24*/
|
||||
{0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00},/*"9",25*/
|
||||
{0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00},/*":",26*/
|
||||
{0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00},/*";",27*/
|
||||
{0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00},/*"<",28*/
|
||||
{0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00},/*"=",29*/
|
||||
{0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00},/*">",30*/
|
||||
{0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00},/*"?",31*/
|
||||
{0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00},/*"@",32*/
|
||||
{0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20},/*"A",33*/
|
||||
{0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00},/*"B",34*/
|
||||
{0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00},/*"C",35*/
|
||||
{0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00},/*"D",36*/
|
||||
{0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00},/*"E",37*/
|
||||
{0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00},/*"F",38*/
|
||||
{0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00},/*"G",39*/
|
||||
{0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20},/*"H",40*/
|
||||
{0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"I",41*/
|
||||
{0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00},/*"J",42*/
|
||||
{0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00},/*"K",43*/
|
||||
{0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00},/*"L",44*/
|
||||
{0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00},/*"M",45*/
|
||||
{0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00},/*"N",46*/
|
||||
{0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00},/*"O",47*/
|
||||
{0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00},/*"P",48*/
|
||||
{0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00},/*"Q",49*/
|
||||
{0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20},/*"R",50*/
|
||||
{0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00},/*"S",51*/
|
||||
{0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00},/*"T",52*/
|
||||
{0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00},/*"U",53*/
|
||||
{0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00},/*"V",54*/
|
||||
{0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00},/*"W",55*/
|
||||
{0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20},/*"X",56*/
|
||||
{0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00},/*"Y",57*/
|
||||
{0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00},/*"Z",58*/
|
||||
{0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00},/*"[",59*/
|
||||
{0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00},/*"\",60*/
|
||||
{0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00},/*"]",61*/
|
||||
{0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},/*"_",63*/
|
||||
{0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
|
||||
{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20},/*"a",65*/
|
||||
{0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00},/*"b",66*/
|
||||
{0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00},/*"c",67*/
|
||||
{0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20},/*"d",68*/
|
||||
{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00},/*"e",69*/
|
||||
{0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"f",70*/
|
||||
{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00},/*"g",71*/
|
||||
{0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20},/*"h",72*/
|
||||
{0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"i",73*/
|
||||
{0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00},/*"j",74*/
|
||||
{0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00},/*"k",75*/
|
||||
{0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00},/*"l",76*/
|
||||
{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F},/*"m",77*/
|
||||
{0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20},/*"n",78*/
|
||||
{0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00},/*"o",79*/
|
||||
{0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00},/*"p",80*/
|
||||
{0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80},/*"q",81*/
|
||||
{0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00},/*"r",82*/
|
||||
{0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00},/*"s",83*/
|
||||
{0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00},/*"t",84*/
|
||||
{0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20},/*"u",85*/
|
||||
{0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00},/*"v",86*/
|
||||
{0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00},/*"w",87*/
|
||||
{0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00},/*"x",88*/
|
||||
{0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00},/*"y",89*/
|
||||
{0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00},/*"z",90*/
|
||||
{0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40},/*"{",91*/
|
||||
{0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00},/*"|",92*/
|
||||
{0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00},/*"}",93*/
|
||||
{0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
|
||||
};
|
||||
//24*24 ASICII<49>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
const unsigned char asc2_2412[][36]={
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x7F,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00},/*"!",1*/
|
||||
{0x00,0x00,0x80,0x60,0x30,0x1C,0x8C,0x60,0x30,0x1C,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
|
||||
{0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x86,0xE6,0x9F,0x86,0x86,0x86,0x86,0xE6,0x9F,0x86,0x00,0x00,0x01,0x1F,0x01,0x01,0x01,0x01,0x01,0x1F,0x01,0x01,0x00},/*"#",3*/
|
||||
{0x00,0x00,0x80,0xC0,0x60,0x20,0xF8,0x20,0xE0,0xC0,0x00,0x00,0x00,0x00,0x03,0x07,0x0C,0x18,0xFF,0x70,0xE1,0x81,0x00,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x7F,0x10,0x0F,0x07,0x00,0x00},/*"$",4*/
|
||||
{0x80,0x60,0x20,0x60,0x80,0x00,0x00,0x00,0xE0,0x20,0x00,0x00,0x0F,0x30,0x20,0x30,0x9F,0x70,0xDC,0x37,0x10,0x30,0xC0,0x00,0x00,0x00,0x10,0x0E,0x03,0x00,0x07,0x18,0x10,0x18,0x07,0x00},/*"%",5*/
|
||||
{0x00,0x00,0xC0,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x1F,0x38,0xE8,0x87,0x03,0xC4,0x3C,0x04,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x0B,0x07,0x0D,0x10,0x10,0x08,0x00},/*"&",6*/
|
||||
{0x00,0x80,0x8C,0x4C,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"'",7*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xE0,0x30,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x18,0x20,0x40,0x00},/*"(",8*/
|
||||
{0x00,0x04,0x08,0x30,0xE0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x0F,0x03,0x00,0x00,0x00,0x00,0x00,0x00},/*")",9*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x66,0x66,0x3C,0x18,0xFF,0x18,0x3C,0x66,0x66,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00},/*"*",10*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00},/*"+",11*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x8C,0x4C,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*",",12*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"-",13*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*".",14*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x0C,0x00,0x00,0x00,0x00,0x00,0x80,0x70,0x1C,0x03,0x00,0x00,0x00,0x00,0x00,0x60,0x38,0x0E,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"/",15*/
|
||||
{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,0x0E,0x07,0x01,0x00},/*"0",16*/
|
||||
{0x00,0x00,0x80,0x80,0x80,0xC0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"1",17*/
|
||||
{0x00,0x80,0x40,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x03,0x03,0x00,0x80,0x40,0x20,0x38,0x1F,0x07,0x00,0x00,0x00,0x1C,0x1A,0x19,0x18,0x18,0x18,0x18,0x18,0x1F,0x00,0x00},/*"2",18*/
|
||||
{0x00,0x80,0xC0,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x03,0x03,0x00,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x00,0x00,0x07,0x0F,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00,0x00},/*"3",19*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xE0,0xF0,0x00,0x00,0x00,0x00,0xC0,0xB0,0x88,0x86,0x81,0x80,0xFF,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x00},/*"4",20*/
|
||||
{0x00,0x00,0xE0,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x00,0x00,0x00,0x00,0x3F,0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x00,0x07,0x0B,0x10,0x10,0x10,0x10,0x1C,0x0F,0x03,0x00,0x00},/*"5",21*/
|
||||
{0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0xE0,0xC0,0x00,0x00,0x00,0xFC,0xFF,0x21,0x10,0x08,0x08,0x08,0x18,0xF0,0xE0,0x00,0x00,0x01,0x07,0x0C,0x18,0x10,0x10,0x10,0x08,0x0F,0x03,0x00},/*"6",22*/
|
||||
{0x00,0x00,0xC0,0xE0,0x60,0x60,0x60,0x60,0x60,0xE0,0x60,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x00,0x00,0x00,0x00,0x00},/*"7",23*/
|
||||
{0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x87,0xEF,0x2C,0x18,0x18,0x30,0x30,0x68,0xCF,0x83,0x00,0x00,0x07,0x0F,0x08,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"8",24*/
|
||||
{0x00,0x00,0xC0,0xC0,0x20,0x20,0x20,0x20,0xC0,0x80,0x00,0x00,0x00,0x1F,0x3F,0x60,0x40,0x40,0x40,0x20,0x10,0xFF,0xFE,0x00,0x00,0x00,0x0C,0x1C,0x10,0x10,0x10,0x08,0x0F,0x03,0x00,0x00},/*"9",25*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x0E,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00},/*":",26*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x38,0x00,0x00,0x00,0x00,0x00},/*";",27*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x40,0x20,0x10,0x00,0x00,0x00,0x10,0x28,0x44,0x82,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x00},/*"<",28*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"=",29*/
|
||||
{0x00,0x00,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x82,0x44,0x28,0x10,0x00,0x00,0x00,0x10,0x08,0x04,0x02,0x01,0x00,0x00,0x00,0x00,0x00},/*">",30*/
|
||||
{0x00,0xC0,0x20,0x20,0x10,0x10,0x10,0x10,0x30,0xE0,0xC0,0x00,0x00,0x03,0x03,0x00,0x00,0xF0,0x10,0x08,0x0C,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,0x1C,0x00,0x00,0x00,0x00,0x00},/*"?",31*/
|
||||
{0x00,0x00,0x00,0xC0,0x40,0x60,0x20,0x20,0x20,0x40,0xC0,0x00,0x00,0xFC,0xFF,0x01,0xF0,0x0E,0x03,0xC1,0xFE,0x03,0x80,0x7F,0x00,0x01,0x07,0x0E,0x08,0x11,0x11,0x10,0x11,0x09,0x04,0x02},/*"@",32*/
|
||||
{0x00,0x00,0x00,0x00,0x80,0xE0,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x7C,0x43,0x40,0x47,0x7F,0xF8,0x80,0x00,0x00,0x10,0x18,0x1F,0x10,0x00,0x00,0x00,0x00,0x13,0x1F,0x1C,0x10},/*"A",33*/
|
||||
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x18,0x2F,0xE7,0x80,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"B",34*/
|
||||
{0x00,0x00,0x80,0xC0,0x40,0x20,0x20,0x20,0x20,0x60,0xE0,0x00,0x00,0xFC,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,0x08,0x04,0x03,0x00},/*"C",35*/
|
||||
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x40,0xC0,0x80,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x18,0x08,0x0E,0x07,0x01,0x00},/*"D",36*/
|
||||
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x20,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"E",37*/
|
||||
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0x60,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,0x01,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"F",38*/
|
||||
{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x40,0xE0,0x00,0x00,0x00,0xFC,0xFF,0x01,0x00,0x00,0x40,0x40,0xC0,0xC1,0x40,0x40,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x10,0x0F,0x0F,0x00,0x00},/*"G",39*/
|
||||
{0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x20,0xE0,0xE0,0x20,0x00,0xFF,0xFF,0x10,0x10,0x10,0x10,0x10,0x10,0xFF,0xFF,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10},/*"H",40*/
|
||||
{0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"I",41*/
|
||||
{0x00,0x00,0x00,0x00,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x60,0xE0,0x80,0x80,0x80,0xC0,0x7F,0x3F,0x00,0x00,0x00},/*"J",42*/
|
||||
{0x20,0xE0,0xE0,0x20,0x00,0x00,0x20,0xA0,0x60,0x20,0x20,0x00,0x00,0xFF,0xFF,0x30,0x18,0x7C,0xE3,0xC0,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x01,0x13,0x1F,0x1C,0x18,0x10},/*"K",43*/
|
||||
{0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x10,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"L",44*/
|
||||
{0x20,0xE0,0xE0,0xE0,0x00,0x00,0x00,0x00,0xE0,0xE0,0xE0,0x20,0x00,0xFF,0x01,0x3F,0xFE,0xC0,0xE0,0x1E,0x01,0xFF,0xFF,0x00,0x10,0x1F,0x10,0x00,0x03,0x1F,0x03,0x00,0x10,0x1F,0x1F,0x10},/*"M",45*/
|
||||
{0x20,0xE0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0x00,0x03,0x07,0x1C,0x78,0xE0,0x80,0x00,0xFF,0x00,0x10,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x1F,0x00},/*"N",46*/
|
||||
{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x18,0x10,0x10,0x18,0x0C,0x07,0x01,0x00},/*"O",47*/
|
||||
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x20,0x20,0x20,0x20,0x20,0x30,0x1F,0x0F,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"P",48*/
|
||||
{0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0x00,0xFE,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x00,0x01,0x07,0x0E,0x11,0x11,0x13,0x3C,0x7C,0x67,0x21,0x00},/*"Q",49*/
|
||||
{0x20,0xE0,0xE0,0x20,0x20,0x20,0x20,0x20,0x60,0xC0,0x80,0x00,0x00,0xFF,0xFF,0x10,0x10,0x30,0xF0,0xD0,0x08,0x0F,0x07,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x03,0x0F,0x1C,0x10,0x10},/*"R",50*/
|
||||
{0x00,0x80,0xC0,0x60,0x20,0x20,0x20,0x20,0x40,0x40,0xE0,0x00,0x00,0x07,0x0F,0x0C,0x18,0x18,0x30,0x30,0x60,0xE0,0x81,0x00,0x00,0x1F,0x0C,0x08,0x10,0x10,0x10,0x10,0x18,0x0F,0x07,0x00},/*"S",51*/
|
||||
{0x80,0x60,0x20,0x20,0x20,0xE0,0xE0,0x20,0x20,0x20,0x60,0x80,0x01,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x00,0x00},/*"T",52*/
|
||||
{0x20,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0x20,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x07,0x0F,0x18,0x10,0x10,0x10,0x10,0x10,0x08,0x07,0x00},/*"U",53*/
|
||||
{0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x07,0x7F,0xF8,0x80,0x00,0x80,0x7C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x1F,0x1C,0x07,0x00,0x00,0x00,0x00},/*"V",54*/
|
||||
{0x20,0xE0,0xE0,0x20,0x00,0xE0,0xE0,0x20,0x00,0x20,0xE0,0x20,0x00,0x07,0xFF,0xF8,0xE0,0x1F,0xFF,0xFC,0xE0,0x1F,0x00,0x00,0x00,0x00,0x03,0x1F,0x03,0x00,0x01,0x1F,0x03,0x00,0x00,0x00},/*"W",55*/
|
||||
{0x00,0x20,0x60,0xE0,0xA0,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x00,0x00,0x03,0x8F,0x7C,0xF8,0xC6,0x01,0x00,0x00,0x00,0x00,0x10,0x18,0x1E,0x13,0x00,0x01,0x17,0x1F,0x18,0x10,0x00},/*"X",56*/
|
||||
{0x20,0x60,0xE0,0xE0,0x20,0x00,0x00,0x00,0x20,0xE0,0x60,0x20,0x00,0x00,0x01,0x07,0x3E,0xF8,0xE0,0x18,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x00,0x00,0x00},/*"Y",57*/
|
||||
{0x00,0x80,0x60,0x20,0x20,0x20,0x20,0xA0,0xE0,0xE0,0x20,0x00,0x00,0x00,0x00,0x00,0xC0,0xF0,0x3E,0x0F,0x03,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x10,0x10,0x10,0x10,0x18,0x06,0x00},/*"Z",58*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0xFC,0x04,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x40,0x40,0x00},/*"[",59*/
|
||||
{0x00,0x00,0x10,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1C,0x60,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x70,0x80,0x00},/*"\",60*/
|
||||
{0x00,0x00,0x04,0x04,0x04,0x04,0x04,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,0x00},/*"]",61*/
|
||||
{0x00,0x00,0x00,0x10,0x08,0x0C,0x04,0x0C,0x08,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"^",62*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},/*"_",63*/
|
||||
{0x00,0x00,0x00,0x04,0x04,0x08,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"`",64*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x98,0xD8,0x44,0x64,0x24,0x24,0xFC,0xF8,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x10,0x08,0x1F,0x1F,0x10,0x18},/*"a",65*/
|
||||
{0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x18,0x08,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x00,0x1F,0x0F,0x18,0x10,0x10,0x10,0x18,0x0F,0x03,0x00},/*"b",66*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x18,0x04,0x04,0x04,0x3C,0x38,0x00,0x00,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,0x08,0x06,0x00,0x00},/*"c",67*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0xE0,0xF8,0x1C,0x04,0x04,0x04,0x08,0xFF,0xFF,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x10,0x08,0x1F,0x0F,0x08,0x00},/*"d",68*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x48,0x44,0x44,0x44,0x4C,0x78,0x70,0x00,0x00,0x00,0x03,0x0F,0x0C,0x18,0x10,0x10,0x10,0x08,0x04,0x00},/*"e",69*/
|
||||
{0x00,0x00,0x00,0x00,0x80,0xC0,0x60,0x20,0x20,0xE0,0xC0,0x00,0x00,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00,0x00},/*"f",70*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0xF8,0x8C,0x04,0x04,0x8C,0xF8,0x74,0x04,0x0C,0x00,0x70,0x76,0xCF,0x8D,0x8D,0x8D,0x89,0xC8,0x78,0x70,0x00},/*"g",71*/
|
||||
{0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x08,0x04,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00},/*"h",72*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"i",73*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x80,0x80,0xC0,0x7F,0x3F,0x00,0x00,0x00},/*"j",74*/
|
||||
{0x00,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x80,0xC0,0xF4,0x1C,0x04,0x04,0x00,0x00,0x00,0x10,0x1F,0x1F,0x11,0x00,0x03,0x1F,0x1C,0x10,0x10,0x00},/*"k",75*/
|
||||
{0x00,0x00,0x20,0x20,0x20,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00},/*"l",76*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x08,0x04,0xFC,0xFC,0x00,0x10,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10,0x00,0x1F,0x1F,0x10},/*"m",77*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x08,0x04,0x04,0xFC,0xF8,0x00,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00,0x00,0x10,0x1F,0x1F,0x10,0x00},/*"n",78*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0x18,0x0C,0x04,0x04,0x0C,0x18,0xF0,0xE0,0x00,0x00,0x03,0x0F,0x0C,0x10,0x10,0x10,0x10,0x0C,0x0F,0x03,0x00},/*"o",79*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFC,0x08,0x04,0x04,0x04,0x0C,0xF8,0xF0,0x00,0x00,0x80,0xFF,0xFF,0x88,0x90,0x10,0x10,0x1C,0x0F,0x03,0x00},/*"p",80*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF8,0x1C,0x04,0x04,0x04,0x08,0xF8,0xFC,0x00,0x00,0x00,0x03,0x0F,0x18,0x10,0x10,0x90,0x88,0xFF,0xFF,0x80,0x00},/*"q",81*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFC,0xFC,0x10,0x08,0x04,0x04,0x0C,0x0C,0x00,0x10,0x10,0x10,0x1F,0x1F,0x10,0x10,0x10,0x00,0x00,0x00,0x00},/*"r",82*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x78,0xCC,0xC4,0x84,0x84,0x84,0x0C,0x1C,0x00,0x00,0x00,0x1E,0x18,0x10,0x10,0x10,0x11,0x19,0x0F,0x06,0x00},/*"s",83*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x1F,0x10,0x10,0x10,0x0C,0x00,0x00},/*"t",84*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x04,0xFC,0xFE,0x00,0x00,0x00,0x00,0x0F,0x1F,0x18,0x10,0x10,0x08,0x1F,0x0F,0x08,0x00},/*"u",85*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,0xFC,0xC4,0x00,0x00,0xC4,0x3C,0x0C,0x04,0x00,0x00,0x00,0x00,0x01,0x0F,0x1E,0x0E,0x01,0x00,0x00,0x00},/*"v",86*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x3C,0xFC,0xC4,0x00,0xE4,0x7C,0xFC,0x84,0x80,0x7C,0x04,0x00,0x00,0x07,0x1F,0x07,0x00,0x00,0x07,0x1F,0x07,0x00,0x00},/*"w",87*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x1C,0x7C,0xE4,0xC0,0x34,0x1C,0x04,0x04,0x00,0x00,0x10,0x10,0x1C,0x16,0x01,0x13,0x1F,0x1C,0x18,0x10,0x00},/*"x",88*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x0C,0x3C,0xFC,0xC4,0x00,0xC4,0x3C,0x04,0x04,0x00,0x00,0x00,0xC0,0x80,0xC1,0x37,0x0E,0x01,0x00,0x00,0x00,0x00},/*"y",89*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x04,0x04,0xC4,0xF4,0x7C,0x1C,0x04,0x00,0x00,0x00,0x00,0x10,0x1C,0x1F,0x17,0x11,0x10,0x10,0x18,0x0E,0x00},/*"z",90*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x0C,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x28,0xEF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x60,0x40,0x00,0x00},/*"{",91*/
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00},/*"|",92*/
|
||||
{0x00,0x00,0x04,0x0C,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xEF,0x28,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x60,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"}",93*/
|
||||
{0x00,0x18,0x06,0x02,0x02,0x04,0x08,0x10,0x20,0x20,0x30,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"~",94*/
|
||||
|
||||
|
||||
|
||||
};
|
||||
const unsigned char Hzk1[][32]={
|
||||
|
||||
|
||||
{0x00,0x00,0x80,0x00,0x00,0xE0,0x02,0x04,0x18,0x00,0x00,0x00,0x40,0x80,0x00,0x00,0x10,0x0C,0x03,0x00,0x00,0x3F,0x40,0x40,0x40,0x40,0x40,0x78,0x00,0x01,0x0E,0x00},/*"<22><>",0*/
|
||||
{0x00,0x14,0xA4,0x44,0x24,0x34,0xAD,0x66,0x24,0x94,0x04,0x44,0xA4,0x14,0x00,0x00,0x08,0x09,0x08,0x08,0x09,0x09,0x09,0xFD,0x09,0x09,0x0B,0x08,0x08,0x09,0x08,0x00},/*"<22><>",1*/
|
||||
{0x00,0x00,0xF8,0x08,0x08,0xF8,0x0C,0x0B,0x08,0xF8,0x08,0x08,0xF8,0x00,0x00,0x00,0x40,0x40,0x7F,0x40,0x40,0x7F,0x40,0x40,0x40,0x7F,0x40,0x40,0x7F,0x40,0x40,0x00},/*"Ѫ",2*/
|
||||
{0x08,0x24,0x23,0x6A,0xAA,0x2A,0xAA,0x6A,0x2A,0x2A,0x2A,0xEA,0x02,0x02,0x00,0x00,0x10,0x11,0x15,0x15,0x15,0xFF,0x15,0x15,0x15,0x11,0x10,0x0F,0x30,0x40,0xF8,0x00},/*"<22><>",3*/
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
const unsigned char Hzk2[][72]={
|
||||
{0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xFC,0x84,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x7F,0x40,0x40,0x40,0x40,0x40,0x40,0xFF,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0xFF,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"<22><>",0*/
|
||||
|
||||
};
|
||||
const unsigned char Hzk3[][128]={
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0xFF,0xFF,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0xFF,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0xFF,0xFF,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"<22><>",0*/
|
||||
|
||||
|
||||
};
|
||||
|
||||
const unsigned char Hzk4[][512]={
|
||||
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0xF8,0xF0,0xF0,0x70,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFE,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0xFF,0xFF,0xFF,0xFF,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x06,0xFF,0xFF,0xFF,0xFF,0x07,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xFF,0xFF,0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*"<22><>",0*/
|
||||
|
||||
};
|
||||
#endif
|
||||
|
227
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/USART2/usart2.c
Normal file
227
程序源码/MAX30102心率血氧传感器资料/1.代码/MAX30102例程/HARDWARE/USART2/usart2.c
Normal file
@ -0,0 +1,227 @@
|
||||
#include "delay.h"
|
||||
#include "usart2.h"
|
||||
#include "stdarg.h"
|
||||
#include "stdio.h"
|
||||
#include "string.h"
|
||||
#include "ble_cfg.h"
|
||||
#include "ble_app.h"
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2014/3/29
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2009-2019
|
||||
//All rights reserved
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//<2F><><EFBFBD>ڷ<EFBFBD><DAB7>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>
|
||||
__align(16) u16 USART2_TX_BUF[USART2_MAX_SEND_LEN]; //<2F><><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD>,<2C><><EFBFBD><EFBFBD>USART2_MAX_SEND_LEN<45>ֽ<EFBFBD>
|
||||
#ifdef USART2_RX_EN //<2F><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD>˽<EFBFBD><CBBD><EFBFBD>
|
||||
//<2F><><EFBFBD>ڽ<EFBFBD><DABD>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD>
|
||||
u8 USART2_RX_BUF[USART2_MAX_RECV_LEN]; //<2F><><EFBFBD>ջ<EFBFBD><D5BB><EFBFBD>,<2C><><EFBFBD><EFBFBD>USART2_MAX_RECV_LEN<45><4E><EFBFBD>ֽ<EFBFBD>.
|
||||
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ<C4A3>£<EFBFBD> timer=10ms
|
||||
//ͨ<><CDA8><EFBFBD>жϽ<D0B6><CFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD>ַ<EFBFBD>֮<EFBFBD><D6AE><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EEB2BB><EFBFBD><EFBFBD>timer<65><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Dz<EFBFBD><C7B2><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
//<2F><><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>timer,<2C><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.Ҳ<><D2B2><EFBFBD>dz<EFBFBD><C7B3><EFBFBD>timerû<72>н<EFBFBD><D0BD>յ<EFBFBD>
|
||||
//<2F>κ<EFBFBD><CEBA><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>ʾ<EFBFBD>˴ν<CBB4><CEBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
//<2F><><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
|
||||
//[15]:0,û<>н<EFBFBD><D0BD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>;1,<2C><><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||
//[14:0]:<3A><><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݳ<EFBFBD><DDB3><EFBFBD>
|
||||
u16 USART2_RX_STA = 0;
|
||||
void USART2_IRQHandler(void)
|
||||
{
|
||||
u8 res;
|
||||
|
||||
if (USART_GetITStatus(USART2, USART_IT_RXNE) != RESET) //<2F><><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
res = USART_ReceiveData(USART2);
|
||||
|
||||
if ((USART2_RX_STA & (1 << 15)) == 0)
|
||||
{
|
||||
if (USART2_RX_STA < USART2_MAX_RECV_LEN) //<2F><><EFBFBD><EFBFBD><EFBFBD>Խ<EFBFBD><D4BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
|
||||
TIM_SetCounter(TIM4, 0); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
if (USART2_RX_STA == 0)TIM4_Set(1); //ʹ<>ܶ<EFBFBD>ʱ<EFBFBD><CAB1>4<EFBFBD><34><EFBFBD>ж<EFBFBD>
|
||||
|
||||
|
||||
USART2_RX_BUF[USART2_RX_STA++] = res; //<2F><>¼<EFBFBD><C2BC><EFBFBD>յ<EFBFBD><D5B5><EFBFBD>ֵ
|
||||
}
|
||||
else
|
||||
{
|
||||
USART2_RX_STA |= 1 << 15; //ǿ<>Ʊ<EFBFBD><C6B1>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
|
||||
//<2F><>ʼ<EFBFBD><CABC>IO <20><><EFBFBD><EFBFBD>2
|
||||
//pclk1:PCLK1ʱ<31><CAB1>Ƶ<EFBFBD><C6B5>(Mhz)
|
||||
//bound:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void usart2_init(u32 bound)
|
||||
{
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);// GPIOAʱ<41><CAB1>
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
|
||||
|
||||
USART_DeInit(USART2); //<2F><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>1
|
||||
//USART2_TX PA.2
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2; //PA.2
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure); //<2F><>ʼ<EFBFBD><CABC>PA2
|
||||
|
||||
//USART2_RX PA.3
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3; //PA.3
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure); //<2F><>ʼ<EFBFBD><CABC>PA3
|
||||
|
||||
USART_InitStructure.USART_BaudRate = bound; //һ<><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ9600;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b; //<2F>ֳ<EFBFBD>Ϊ8λ<38><CEBB><EFBFBD>ݸ<EFBFBD>ʽ
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1; //һ<><D2BB>ֹͣλ
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No; //<2F><><EFBFBD><EFBFBD>żУ<C5BC><D0A3>λ
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;//<2F><>Ӳ<EFBFBD><D3B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; //<2F>շ<EFBFBD>ģʽ
|
||||
|
||||
USART_Init(USART2, &USART_InitStructure); //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//USART2->BRR=(pclk1*1000000)/(bound);// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//USART2->CR1|=0X200C; //1λֹͣ,<2C><>У<EFBFBD><D0A3>λ.
|
||||
USART_DMACmd(USART2, USART_DMAReq_Tx, ENABLE); //ʹ<>ܴ<EFBFBD><DCB4><EFBFBD>2<EFBFBD><32>DMA<4D><41><EFBFBD><EFBFBD>
|
||||
UART_DMA_Config(DMA1_Channel7, (u32)&USART2->DR, (u32)USART2_TX_BUF); //DMA1ͨ<31><CDA8>7,<2C><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>2,<2C>洢<EFBFBD><E6B4A2>ΪUSART2_TX_BUF
|
||||
USART_Cmd(USART2, ENABLE); //ʹ<>ܴ<EFBFBD><DCB4><EFBFBD>
|
||||
|
||||
#ifdef USART2_RX_EN //<2F><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD>˽<EFBFBD><CBBD><EFBFBD>
|
||||
//ʹ<>ܽ<EFBFBD><DCBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
||||
USART_ITConfig(USART2, USART_IT_RXNE, ENABLE);//<2F><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = USART2_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 2 ; //<2F><>ռ<EFBFBD><D5BC><EFBFBD>ȼ<EFBFBD>3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //<2F><><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQͨ<51><CDA8>ʹ<EFBFBD><CAB9>
|
||||
NVIC_Init(&NVIC_InitStructure); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>VIC<49>Ĵ<EFBFBD><C4B4><EFBFBD>
|
||||
|
||||
TIM4_Init(99, 7199); //10ms<6D>ж<EFBFBD>
|
||||
USART2_RX_STA = 0; //<2F><><EFBFBD><EFBFBD>
|
||||
TIM4_Set(0); //<2F>رն<D8B1>ʱ<EFBFBD><CAB1>4
|
||||
#endif
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>2,printf <20><><EFBFBD><EFBFBD>
|
||||
//ȷ<><C8B7>һ<EFBFBD>η<EFBFBD><CEB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD>USART2_MAX_SEND_LEN<45>ֽ<EFBFBD>
|
||||
void u2_printf(char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
vsprintf((char *)USART2_TX_BUF, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
while (DMA1_Channel7->CNDTR != 0); //<2F>ȴ<EFBFBD>ͨ<EFBFBD><CDA8>7<EFBFBD><37><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
UART_DMA_Enable(DMA1_Channel7, strlen((const char *)USART2_TX_BUF)); //ͨ<><CDA8>dma<6D><61><EFBFBD>ͳ<EFBFBD>ȥ
|
||||
}
|
||||
|
||||
//<2F><>ʱ<EFBFBD><CAB1>4<EFBFBD>жϷ<D0B6><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void TIM4_IRQHandler(void)
|
||||
{
|
||||
if (TIM_GetITStatus(TIM4, TIM_IT_Update) != RESET)//<2F>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD>ж<EFBFBD>
|
||||
{
|
||||
|
||||
TIM_ClearITPendingBit(TIM4, TIM_IT_Update ); //<2F><><EFBFBD><EFBFBD>TIMx<4D><78><EFBFBD><EFBFBD><EFBFBD>жϱ<D0B6>־
|
||||
USART2_RX_STA |= 1 << 15; //<2F><><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
TIM4_Set(0); //<2F>ر<EFBFBD>TIM4
|
||||
}
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>TIM4<4D>Ŀ<EFBFBD><C4BF><EFBFBD>
|
||||
//sta:0<><30><EFBFBD>ر<EFBFBD>;1,<2C><><EFBFBD><EFBFBD>;
|
||||
void TIM4_Set(u8 sta)
|
||||
{
|
||||
if (sta)
|
||||
{
|
||||
TIM_SetCounter(TIM4, 0); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
TIM_Cmd(TIM4, ENABLE); //ʹ<><CAB9>TIMx
|
||||
}
|
||||
else TIM_Cmd(TIM4, DISABLE); //<2F>رն<D8B1>ʱ<EFBFBD><CAB1>4
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>TIM4Ԥװ<D4A4><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
|
||||
void TIM4_SetARR(u16 period)
|
||||
{
|
||||
TIM_SetCounter(TIM4, 0); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
TIM4->ARR &= 0x00; //<2F><><EFBFBD><EFBFBD>Ԥװ<D4A4><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵΪ0
|
||||
TIM4->ARR |= period; //<2F><><EFBFBD><EFBFBD>Ԥװ<D4A4><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
|
||||
}
|
||||
//ͨ<>ö<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>жϳ<D0B6>ʼ<EFBFBD><CABC>
|
||||
//<2F><><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>ѡ<EFBFBD><D1A1>ΪAPB1<42><31>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>APB1Ϊ36M
|
||||
//arr<72><72><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>װֵ<D7B0><D6B5>
|
||||
//psc<73><63>ʱ<EFBFBD><CAB1>Ԥ<EFBFBD><D4A4>Ƶ<EFBFBD><C6B5>
|
||||
void TIM4_Init(u16 arr, u16 psc)
|
||||
{
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
|
||||
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM4, ENABLE); //ʱ<><CAB1>ʹ<EFBFBD><CAB9>//TIM4ʱ<34><CAB1>ʹ<EFBFBD><CAB9>
|
||||
|
||||
//<2F><>ʱ<EFBFBD><CAB1>TIM3<4D><33>ʼ<EFBFBD><CABC>
|
||||
TIM_TimeBaseStructure.TIM_Period = arr; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EEB6AF><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>װ<EFBFBD>ؼĴ<D8BC><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>ֵ
|
||||
TIM_TimeBaseStructure.TIM_Prescaler = psc; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪTIMxʱ<78><CAB1>Ƶ<EFBFBD>ʳ<EFBFBD><CAB3><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4>Ƶֵ
|
||||
TIM_TimeBaseStructure.TIM_ClockDivision = TIM_CKD_DIV1; //<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD>ӷָ<D3B7>:TDTS = Tck_tim
|
||||
TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up; //TIM<49><4D><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>ģʽ
|
||||
TIM_TimeBaseInit(TIM4, &TIM_TimeBaseStructure); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>TIMx<4D><78>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
|
||||
|
||||
TIM_ITConfig(TIM4, TIM_IT_Update, ENABLE ); //ʹ<><CAB9>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>TIM4<4D>ж<EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
||||
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = TIM4_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1 ; //<2F><>ռ<EFBFBD><D5BC><EFBFBD>ȼ<EFBFBD>3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 2; //<2F><><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQͨ<51><CDA8>ʹ<EFBFBD><CAB9>
|
||||
NVIC_Init(&NVIC_InitStructure); //<2F><><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>VIC<49>Ĵ<EFBFBD><C4B4><EFBFBD>
|
||||
|
||||
}
|
||||
#endif
|
||||
///////////////////////////////////////USART2 DMA<4D><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><C3B2><EFBFBD>//////////////////////////////////
|
||||
//DMA1<41>ĸ<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD>ǹ̶<C7B9><CCB6><EFBFBD>,<2C><><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ݲ<EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F>Ӵ洢<D3B4><E6B4A2>-><3E><><EFBFBD><EFBFBD>ģʽ/8λ<38><CEBB><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD>/<2F>洢<EFBFBD><E6B4A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
|
||||
//DMA_CHx:DMAͨ<41><CDA8>CHx
|
||||
//cpar:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ
|
||||
//cmar:<3A>洢<EFBFBD><E6B4A2><EFBFBD><EFBFBD>ַ
|
||||
void UART_DMA_Config(DMA_Channel_TypeDef *DMA_CHx, u32 cpar, u32 cmar)
|
||||
{
|
||||
DMA_InitTypeDef DMA_InitStructure;
|
||||
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE); //ʹ<><CAB9>DMA<4D><41><EFBFBD><EFBFBD>
|
||||
DMA_DeInit(DMA_CHx); //<2F><>DMA<4D><41>ͨ<EFBFBD><CDA8>1<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊȱʡֵ
|
||||
DMA_InitStructure.DMA_PeripheralBaseAddr = cpar; //DMA<4D><41><EFBFBD><EFBFBD>ADC<44><43><EFBFBD><EFBFBD>ַ
|
||||
DMA_InitStructure.DMA_MemoryBaseAddr = cmar; //DMA<4D>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>ַ
|
||||
DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralDST; //<2F><><EFBFBD>ݴ<EFBFBD><DDB4>䷽<EFBFBD><EFBFBD><F2A3ACB4>ڴ<EFBFBD><DAB4><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD><EFBFBD>
|
||||
DMA_InitStructure.DMA_BufferSize = 0; //DMAͨ<41><CDA8><EFBFBD><EFBFBD>DMA<4D><41><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С
|
||||
DMA_InitStructure.DMA_PeripheralInc = DMA_PeripheralInc_Disable; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
DMA_InitStructure.DMA_MemoryInc = DMA_MemoryInc_Enable; //<2F>ڴ<EFBFBD><DAB4><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
DMA_InitStructure.DMA_PeripheralDataSize = DMA_PeripheralDataSize_Byte; //<2F><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD>Ϊ8λ
|
||||
DMA_InitStructure.DMA_MemoryDataSize = DMA_MemoryDataSize_Byte; //<2F><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD>Ϊ8λ
|
||||
DMA_InitStructure.DMA_Mode = DMA_Mode_Normal; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
|
||||
DMA_InitStructure.DMA_Priority = DMA_Priority_Medium; //DMAͨ<41><CDA8> xӵ<78><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>
|
||||
DMA_InitStructure.DMA_M2M = DMA_M2M_Disable; //DMAͨ<41><CDA8>xû<78><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>ڴ浽<DAB4>ڴ洫<DAB4><E6B4AB>
|
||||
DMA_Init(DMA_CHx, &DMA_InitStructure); //<2F><><EFBFBD><EFBFBD>DMA_InitStruct<63><74>ָ<EFBFBD><D6B8><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>DMA<4D><41>ͨ<EFBFBD><CDA8>USART1_Tx_DMA_Channel<65><6C><EFBFBD><EFBFBD>ʶ<EFBFBD>ļĴ<C4BC><C4B4><EFBFBD>
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>DMA<4D><41><EFBFBD><EFBFBD>
|
||||
void UART_DMA_Enable(DMA_Channel_TypeDef *DMA_CHx, u16 len)
|
||||
{
|
||||
DMA_Cmd(DMA_CHx, DISABLE ); //<2F>ر<EFBFBD> ָʾ<D6B8><CABE>ͨ<EFBFBD><CDA8>
|
||||
DMA_SetCurrDataCounter(DMA_CHx, len); //DMAͨ<41><CDA8><EFBFBD><EFBFBD>DMA<4D><41><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С
|
||||
DMA_Cmd(DMA_CHx, ENABLE); //<2F><><EFBFBD><EFBFBD>DMA<4D><41><EFBFBD><EFBFBD>
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,46 @@
|
||||
#ifndef __USART2_H
|
||||
#define __USART2_H
|
||||
#include "sys.h"
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
||||
//ALIENTEK STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
||||
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2014/3/29
|
||||
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
||||
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
||||
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2009-2019
|
||||
//All rights reserved
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define USART2_MAX_RECV_LEN 1024 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>
|
||||
#define USART2_MAX_SEND_LEN 512 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD><EFBFBD>
|
||||
#define USART2_RX_EN 1 //0,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;1,<2C><><EFBFBD><EFBFBD>.
|
||||
|
||||
extern u8 USART2_RX_BUF[USART2_MAX_RECV_LEN]; //<2F><><EFBFBD>ջ<EFBFBD><D5BB><EFBFBD>,<2C><><EFBFBD><EFBFBD>USART2_MAX_RECV_LEN<45>ֽ<EFBFBD>
|
||||
extern u16 USART2_TX_BUF[USART2_MAX_SEND_LEN]; //<2F><><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD>,<2C><><EFBFBD><EFBFBD>USART2_MAX_SEND_LEN<45>ֽ<EFBFBD>
|
||||
extern u16 USART2_RX_STA; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
|
||||
|
||||
void usart2_init(u32 bound); //<2F><><EFBFBD><EFBFBD>2<EFBFBD><32>ʼ<EFBFBD><CABC>
|
||||
void TIM4_Set(u8 sta);
|
||||
void TIM4_SetARR(u16 period);
|
||||
void TIM4_Init(u16 arr,u16 psc);
|
||||
void UART_DMA_Config(DMA_Channel_TypeDef*DMA_CHx,u32 cpar,u32 cmar);
|
||||
void UART_DMA_Enable(DMA_Channel_TypeDef*DMA_CHx,u16 len);
|
||||
void u2_printf(char* fmt, ...);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user