Skip to content

Instantly share code, notes, and snippets.

View nickfox-taterli's full-sized avatar
😰
想哭

Tater Li nickfox-taterli

😰
想哭
View GitHub Profile
@nickfox-taterli
nickfox-taterli / MainAcitivy.java
Created April 25, 2025 15:28
Android蓝牙心率演示,配合默认CH579测试程序.
package com.example.bleapplication;
import android.annotation.SuppressLint;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.bluetooth.BluetoothGattService;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
@nickfox-taterli
nickfox-taterli / STM32F103.md
Created April 24, 2025 06:36
这是一个从闲鱼购买的STM32F103VE开发板,原始资料缺失。本README记录了目前已还原的硬件接口信息和测试程序。

STM32F103VE 开发板资料

概述

这是一个从闲鱼购买的STM32F103VE开发板,原始资料缺失。本README记录了目前已还原的硬件接口信息和测试程序。

硬件接口

主芯片

  • STM32F103VE
@nickfox-taterli
nickfox-taterli / android_orm_db.md
Created April 23, 2025 09:11
安卓数据库操作简化笔记

简化ImageDbHelper操作。

1. 使用Room实现

1.1 定义Entity类

@Entity(tableName = "images")
public class ImageInfo {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "_id")
@nickfox-taterli
nickfox-taterli / d213ecv.md
Created March 26, 2025 05:46
D213ECV RTC 寄存器分析

RTC寄存器总表

寄存器名称 偏移地址 R/W属性 功能描述
RTC_REG_CTL 0x0000 R/W 控制寄存器
RTC_REG_INIT 0x0004 WO 初始化触发寄存器
RTC_REG_IRQ_EN 0x0008 R/W 中断使能寄存器
RTC_REG_IRQ_STA 0x000C R/W1C 中断状态寄存器
RTC_REG_TIME0 0x0020 R/W 时间设置寄存器0(低8位)
RTC_REG_TIME1 0x0024 R/W 时间设置寄存器1(次低8位)
RTC_REG_TIME2 0x0028 R/W 时间设置寄存器2(次高8位)
@nickfox-taterli
nickfox-taterli / demo.c
Created March 16, 2025 07:20
MicroPython C模块实现笔记
#include <stdio.h>
#include "py/runtime.h"
#include "py/mphal.h"
STATIC mp_obj_t pytest_test(void)
{
printf("pytest module");
return mp_obj_new_int(0);
}
@nickfox-taterli
nickfox-taterli / demo.py
Created March 14, 2025 15:37
GridSearchCV + Keras Sequential
import numpy as np
import os
from tensorflow import keras
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.callbacks import EarlyStopping, TensorBoard
from scikeras.wrappers import KerasClassifier
from sklearn.model_selection import GridSearchCV
from datetime import datetime
@nickfox-taterli
nickfox-taterli / eval_on_board.py
Created March 13, 2025 04:20
RKNPU 训练,转换,测试
import cv2
import numpy as np
import platform
from synset_label import labels
from rknnlite.api import RKNNLite
def preprocess_image(image_path):
"""预处理单张图片"""
img = cv2.imread(image_path)
img = cv2.resize(img, (224, 224)) # 调整大小
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickfox-taterli
nickfox-taterli / intel.txt
Created March 3, 2025 05:26
Intel 3000 PAC
# PTP Test Points
set_location_assignment PIN_AM33 -to TP_51
set_location_assignment PIN_AN33 -to TP_52
set_location_assignment PIN_AR35 -to TP_53
set_location_assignment PIN_AN34 -to PPS_MAX10
set_instance_assignment -name IO_STANDARD 1.8V -to TP_51
set_instance_assignment -name IO_STANDARD 1.8V -to TP_52
set_instance_assignment -name IO_STANDARD 1.8V -to TP_53
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.