暂存
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
|
||||
/* private includes ----------------------------------------------------------*/
|
||||
/* add user code begin private includes */
|
||||
#include "vl53l0x_wmd_api.h"
|
||||
#include "by_debug.h"
|
||||
#include "by_led.h"
|
||||
#include "by_measure.h"
|
||||
/* add user code end private includes */
|
||||
|
||||
/* private typedef -----------------------------------------------------------*/
|
||||
@@ -105,25 +105,15 @@ int main(void)
|
||||
/* add user code begin 2 */
|
||||
delay_init();
|
||||
by_led_set(10);
|
||||
delay_ms(1000);
|
||||
VL53L0X_Init();
|
||||
delay_ms(1000);
|
||||
by_measure_init();
|
||||
|
||||
by_led_set(0);
|
||||
/* add user code end 2 */
|
||||
|
||||
while (1) {
|
||||
/* add user code begin 3 */
|
||||
// gpio_bits_write(GPIOB, GPIO_PINS_8, !gpio_output_data_bit_read(GPIOB, GPIO_PINS_8));
|
||||
// gpio_bits_set(GPIOA, GPIO_PINS_4);
|
||||
// delay_ms(250);
|
||||
// gpio_bits_reset(GPIOA, GPIO_PINS_4);
|
||||
// delay_ms(250);
|
||||
by_led_set(40);
|
||||
delay_ms(10);
|
||||
LOGI("distance:%d", VL53L0X_GetValue());
|
||||
by_led_set(0);
|
||||
delay_ms(10);
|
||||
gpio_bits_write(GPIOA, GPIO_PINS_4, !gpio_output_data_bit_read(GPIOA, GPIO_PINS_4));
|
||||
by_measure_run();
|
||||
/* add user code end 3 */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user