### Configuring Example Projects in KEIL IDE Source: https://www.gd32mcu.com/cn/detail/74?page=2 When using example projects, ensure the correct example configuration is defined in the 'example.h' file. This is crucial for compiling and running specific functionalities like UART. ```c #define EVB_EXAMPLE_UART ``` -------------------------------- ### GD32 Matter SDK for Lighting App Source: https://www.gd32mcu.com/cn/detail/562 This snippet demonstrates the setup and usage of the GD32 Matter SDK for a lighting application. It outlines the prerequisites, the process of downloading and running the lighting-app example code, and how to commission the device using the Tuya Smart App. ```text 1. 在GD32VW553H-EVAL开发板上成功下载并运行**lighting-app示例代码** 且正确连接AP后,开发板的LCD屏幕上将显示配网二维码。 **注意:** 在手机上安装涂鸦智能App后 ,手机需和开发板接入到同一IP网络中。 2. 然后打开涂鸦智能App,点击App右上角的“+”,使用扫一扫功能扫描开发板屏幕上的配网二维码,开始commission配网 ,使用APP扫一扫添加新设备。 3. 当Commissioning成功,可以在涂鸦智能App中看到配网成功的提示。此时,GD32VW553H-EVAL开发板作为Matter设备接入系统。 4. 用户可以通过App对该Matter设备进行控制,例如操作LED灯的开关、调节亮度或更改颜色等 ``` -------------------------------- ### Using Internal Timer for Counting Source: https://www.gd32mcu.com/download/down/document_id/225/path_type/2 Example code for creating an N300FD project and using the internal timer for counting. This snippet is related to a reported issue with timer accuracy. ```c 分享于 135 天前 分类:NucleiStudio讨论专区 __1373 __2 使用核内timer计数出错 创建N300FD工程,用qemu仿真跑如下代码: ``` -------------------------------- ### MPU9150 Initialization and DMP Setup Source: https://www.gd32mcu.com/cn/detail/173 Initializes the MPU9150 sensor, configures measurement ranges, sets sampling rate, loads the DMP, and starts attitude fusion. Ensure correct gyroscope and accelerometer ranges are set based on expected motion. ```c mpu_init(); mpu_set_sensors(INV_XYZ_GYRO | INV_XYZ_ACCEL); mpu_set_gyro_range(INV_ROT_500DPS); mpu_set_accel_range(INV_ONE_G); mpu_configure_fifo(INV_XYZ_GYRO | INV_XYZ_ACCEL); mpu_set_sample_rate(100); mpu_configure_tap_source(0x00); mpu_configure_tap_engine(0x00, 0x00); mpu_configure_tap_filter(0, 0); mpu_configure_motion_event(0x00); mpu_configure_sign_motion_detection(0, 0); mpu_configure_hierarchical_motion_detection(0x00); mpu_configure_free_fall_detection(0, 0); mpu_configure_eoc_time(0); mpu_set_fifo_rate(0); mpu_set_int_level(0); mpu_set_dmp_low_pass_filter(0); mpu_set_dmp_state(1); dmp_set_fifo_rate(100); dmp_enable_feature(DMP_FEATURE_6X_LP_QUAT | DMP_FEATURE_SEND_RAW_ACCEL | DMP_FEATURE_SEND_CAL_GYRO | DMP_FEATURE_GYRO_CAL); dmp_set_orientation(inv_orientation_matrix_use); dmp_enable_euler_output(0, 0); dmp_enable_motion_nt(0); dmp_set_fifo_priority(0); dmp_set_gyro_bias_reg(gyro_bias); dmp_set_accel_bias(accel_bias); mpu_configure_dmp(0); mpu_set_dmp_state(1); mpu_reset_fifo(); dmp_reset_fifo(); dmp_enable_feature(DMP_FEATURE_6X_LP_QUAT | DMP_FEATURE_SEND_RAW_ACCEL | DMP_FEATURE_SEND_CAL_GYRO | DMP_FEATURE_GYRO_CAL); dmp_set_orientation(inv_orientation_matrix_use); dmp_enable_euler_output(0, 0); dmp_enable_motion_nt(0); dmp_set_fifo_priority(0); dmp_set_gyro_bias_reg(gyro_bias); dmp_set_accel_bias(accel_bias); mpu_configure_dmp(0); mpu_set_dmp_state(1); mpu_reset_fifo(); dmp_reset_fifo(); ``` -------------------------------- ### Download GD32F307E-START Board Files Source: https://www.gd32mcu.com/cn/detail/371 Link to download specific development board files for the GD32F307E-START board. Essential for users utilizing this particular development platform. ```text http://www.gd32mcu.com/cn/download/8?kw=GD32F3END ``` -------------------------------- ### Download GD32F30x Demo Suites Source: https://www.gd32mcu.com/cn/detail/371 Link to download demo suites for the GD32F30x series. These suites offer example projects and code to facilitate development. ```text http://www.gd32mcu.com/cn/download/8?kw=GD32F3 ```