摘要: 网上给的答案大多让你打开Safari的开发者,然后改用户代理换ua,一点用都没有,用一会儿就变回去了。 这是永久的方法 Mac的终端输入 ```bash defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Macintosh 阅读全文
posted @ 2023-04-16 09:46 松果工作室 阅读(623) 评论(0) 推荐(0)
摘要: void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { if (htim->Instance == TIM10) { switch (KeyState) { case KEY_CHECK: if (HAL_GPIO_ReadPin( 阅读全文
posted @ 2023-01-28 21:00 松果工作室 阅读(56) 评论(0) 推荐(0)
摘要: /* * SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ #include <stdio.h> #include "sdkcon 阅读全文
posted @ 2023-01-13 21:33 松果工作室 阅读(542) 评论(0) 推荐(0)
摘要: /** 开引脚的时钟:RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE); */ #define I2C_SCL GPIO_Pin_6 #define I2C_SDA GPIO_Pin_7 #define GPIO_I2C GPIOB #defin 阅读全文
posted @ 2023-01-05 17:03 松果工作室 阅读(89) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/ledc.h" #include "esp_err.h" #include "string.h" #includ 阅读全文
posted @ 2023-01-02 19:57 松果工作室 阅读(120) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/ledc.h" #include "esp_err.h" #include "string.h" #includ 阅读全文
posted @ 2023-01-02 19:38 松果工作室 阅读(76) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/ledc.h" #include "esp_err.h" #include "string.h" #includ 阅读全文
posted @ 2023-01-02 19:02 松果工作室 阅读(179) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/ledc.h" #include "esp_err.h" #include "string.h" #includ 阅读全文
posted @ 2022-12-31 20:56 松果工作室 阅读(32) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/ledc.h" #include "esp_err.h" #include "string.h" #define 阅读全文
posted @ 2022-12-31 20:10 松果工作室 阅读(112) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #include <unistd.h> #include "esp_timer.h" #include "esp_log.h" #include "esp_sleep.h" #include "sdkconfig.h" s 阅读全文
posted @ 2022-12-31 18:17 松果工作室 阅读(194) 评论(0) 推荐(0)