Library Search
结果页

02-time-series-and-io

在 技术栈 中找到 8 个匹配结果。

返回文档库
技术栈

技术栈

8 个
查看全部
STM32 HAL/LL ```c // 读取按键(带软件消抖) uint8_t read_button(void) { if (HAL_GPIO_ReadPin(BTN_GPIO_Port, BTN_Pin) == GPIO_PIN_RESET) { HAL_Delay(20); // 消抖 if (HAL_GPIO_ReadPin(BTN_GPIO_Port, BTN_Pin)… 2% ROS 2 def generate_launch_description(): return LaunchDescription([ DeclareLaunchArgument('sensor_id', default_value='sensor_01'), DeclareLaunchArgument('publish_rate', default_value='2.… 2% JAX ```bash pip install jax jaxlib python jax_demo.py ``` ## 预期输出 ``` x: [1. 2. 3. 4.] sin(x): [0.8415 0.9093 0.1411 -0.7568] f(2) = 14.0 f'(2) = 21.0 (期望: 3*4 + 4*2 + 1 = 21) f''(2) = 16.0 (期望: 6*2 +… 2% Arduino 1. 在 Arduino IDE **库管理器**安装:`DHT sensor library`、`Adafruit SSD1306`、`Adafruit GFX` 2. 按硬件表接线 3. 编译上传,打开串口监视器(9600 波特率) 4. 按按键切换显示模式 ## 预期输出 - OLED 实时显示温湿度(2 秒刷新) - 串口同步输出读数 - 按键切换 4 种模式:双排紧凑 → 大字温度… 2% ESP-IDF /* ── 传感器数据结构(队列元素) ── */ typedef struct { int64_t timestamp_us; float temperature; float humidity; float pressure; uint32_t sequence; } sensor_data_t; /* ── 队列句柄 ── */ stat… 1% InfluxDB // 写入 const point = new Point('temperature') .tag('location', 'lab') .floatField('value', 23.5); writeApi.writePoint(point); writeApi.flush().then(() => console.log('写入完成')); // 查询 const que… 1% Grafana ```yaml # datasources/prometheus.yaml apiVersion: 1 datasources: - name: Prometheus type: prometheus url: http://prometheus:9090 access: proxy isDefault: true # dashboards/dashboard… 1% Verilog / SystemVerilog ```verilog // counter_4bit.v — 同步复位 + 使能的 4 位计数器 module counter_4bit ( input wire clk, // 时钟 input wire rst_n, // 异步复位(低有效) input wire enable, //… 1%