这是一个从闲鱼购买的STM32F103VE开发板,原始资料缺失。本README记录了目前已还原的硬件接口信息和测试程序。
- STM32F103VE
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; |
#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); | |
} |
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 |
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)) # 调整大小 |
# 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 |