胸毛男
码龄7年
关注
提问 私信
  • 博客:33,466
    社区:1
    问答:23,699
    视频:4,689
    61,855
    总访问量
  • 17
    原创
  • 88,687
    排名
  • 942
    粉丝
  • 0
    铁粉
  • 学习成就
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:吉林省
  • 加入CSDN时间: 2017-12-13
博客简介:

weixin_41376117的博客

查看详细资料
  • 原力等级
    成就
    当前等级
    4
    当前总分
    942
    当月
    7
个人成就
  • 获得98次点赞
  • 内容获得29次评论
  • 获得303次收藏
  • 代码片获得525次分享
创作历程
  • 2篇
    2024年
  • 6篇
    2023年
  • 3篇
    2022年
  • 5篇
    2021年
  • 1篇
    2020年
成就勋章
TA的专栏
  • ESP8266
    1篇
  • STM32
    3篇
  • DSP
  • dsp28335
    1篇
  • GPU编程
  • cuda编程
    1篇
兴趣领域 设置
  • 编程语言
    matlab
  • 开发工具
    visual studio
  • 嵌入式
    stm32物联网
  • 微软技术
    mfc
创作活动更多

HarmonyOS开发者社区有奖征文来啦!

用文字记录下您与HarmonyOS的故事。参与活动,还有机会赢奖,快来加入我们吧!

0人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

用RP2040-Touch-LCD-1.28制作一个手表_添加背景

我之前买了一个 microUSB 转typeC 的线,想把RP2040连接上ESP8266,但是EPS8266无法通过这条线来供电。我尝试了导入bmp格式的图片,他的输出参数选 C语言数组,水平扫描,16位真色彩,240×240,就可以了,点击保存。注意:导入的每个数组,最后数组是 ','结尾的,虽然这样写在c++里报错,但是在arduino好像必须这么写。其中PicSeqSelec(int )函数是切换图片的,我导入了8张图片。功能设定注释掉了陀螺仪,往左划:显示/关闭时间,往右划:切换下一张图片。
原创
发布博客 2024.08.14 ·
271 阅读 ·
5 点赞 ·
0 评论 ·
3 收藏

用RP2040-Touch-LCD-1.28制作一个手表_再次改进

再次优化了手表,显示电量,设置亮度,计时器计时
原创
发布博客 2024.01.03 ·
579 阅读 ·
6 点赞 ·
1 评论 ·
8 收藏

用RP2040-Touch-LCD-1.28制作一个手表_再

发布视频 2024.01.03

用RP2040-Touch-LCD-1.28制作一个手表_改进

添加了功能和修改了界面,还加了电池,程序界面也修改成了黑白的,更大气
原创
发布博客 2023.12.29 ·
512 阅读 ·
7 点赞 ·
1 评论 ·
7 收藏

用RP2040-Touch-LCD-1.28制作一个手表

一个可以调时间的手表,用的自带液晶的rp2040单片机,RP2040-Touch-LCD-1.28 。会用到表盘绘制,触摸回调函数,计时函数。
原创
发布博客 2023.12.19 ·
322 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

设定时间的手表

发布视频 2023.12.19

语音报时 基于esp8266wifi模块 asrpro-01语音模块

说“几点了”就会播报当前几点几分,采用网络授时,esp8266和asrpro结合工作。这样以后在晚上醒来,想知道时间时,问几点了就可以了,不用再解锁手机看了
原创
发布博客 2023.06.25 ·
5858 阅读 ·
12 点赞 ·
3 评论 ·
80 收藏

语音授时

发布视频 2023.06.25

两个ESP8266wifi互连 无线串口通讯

两个esp8266,做一个串口通讯的东西,串口转wifi转串口,可以两个电脑护发,一个服务端一个客户端。不用连接家用wifi。
原创
发布博客 2023.06.09 ·
1544 阅读 ·
4 点赞 ·
4 评论 ·
27 收藏

两个ESP8266互联 不连公共WIFI

两个ESP8266直接互联通信的写法,不用连公用wifi,一个发射wifi,另一个连接wifi
原创
发布博客 2023.04.28 ·
581 阅读 ·
2 点赞 ·
1 评论 ·
8 收藏

MATLAB的GUI界面显示处理后的摄像头

答:

如果你使用的是matlab2015b的话。
一、在GUI上添加一个坐标轴

img


二、把你的显示图片函数脚本放到根目录下

img

三、在初始化中创建计时器

timePeriod = 1.0;
t = timer('TimerFcn',{@timerCallback, handles.axes1}, 'ExecutionMode', 'fixedDelay', 'Period', timePeriod);
% 启动定时器
start(t);

四、自己写计时器函数,你的显示图片函数,在计时器函数里调用

function timerCallback(~, ~, axestemp)
mypic =LoadMyPic('图片\海绵宝宝.jpg');
axes(axestemp);

%这一句只运行一次!!就注释掉
%figure('visible','off');
imshow(mypic);

结果这样:

img

初次运行要运行一次 figure('visible','off'); 要不会一直有个plot的图,运行一次就注释掉。

GUI.m的全部内容

function varargout = untitled(varargin)
% UNTITLED MATLAB code for untitled.fig
%      UNTITLED, by itself, creates a new UNTITLED or raises the existing
%      singleton*.
%
%      H = UNTITLED returns the handle to a new UNTITLED or the handle to
%      the existing singleton*.
%
%      UNTITLED('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in UNTITLED.M with the given input arguments.
%
%      UNTITLED('Property','Value',...) creates a new UNTITLED or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before untitled_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to untitled_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help untitled

% Last Modified by GUIDE v2.5 29-Mar-2023 19:27:15

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @untitled_OpeningFcn, ...
                   'gui_OutputFcn',  @untitled_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before untitled is made visible.
function untitled_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to untitled (see VARARGIN)

% Choose default command line output for untitled
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes untitled wait for user response (see UIRESUME)
% uiwait(handles.figure1);

global t;
% 创建 timer 对象对象的代码
timePeriod = 1.0;
t = timer('TimerFcn',{@timerCallback, handles.axes1}, 'ExecutionMode', 'fixedDelay', 'Period', timePeriod);
% 启动定时器
start(t);


function timerCallback(~, ~, axestemp)
mypic =LoadMyPic('图片\海绵宝宝.jpg');
axes(axestemp);

%这一句只运行一次!!就注释掉
%figure('visible','off');
imshow(mypic);


% --- Outputs from this function are returned to the command line.
function varargout = untitled_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes during object deletion, before destroying properties.
function figure1_DeleteFcn(hObject, eventdata, handles)
% hObject    handle to figure1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global t;
stop(t); delete(t);
回答问题 2023.03.29

matlab调换坐标轴

答:

x=0:0.1:4*pi;
y=x;
[X,Y]=meshgrid(x,y);
Z=X.^2+Y.^2;
mesh(X,Z,Y);
xlabel('x');
ylabel('z');
zlabel('y');

img

回答问题 2023.03.27

MATLAB图像处理

答:

二值化图片黑白反转

回答问题 2023.03.17

JY62陀螺仪的联调用STM32CubeMX

用stm32cubmx开发 JY62陀螺仪,实时读取角度,发给上位机的串口助手
原创
发布博客 2023.01.08 ·
3414 阅读 ·
8 点赞 ·
12 评论 ·
54 收藏

ES08A舵机,stm32,cubemx,联调记录

用stm32驱动ES08A舵机,哈哈哈好开心
原创
发布博客 2022.12.22 ·
1257 阅读 ·
0 点赞 ·
0 评论 ·
13 收藏

多年逐天的多个excal数据月平均

答:

可以批量处理 * 通配名称


%读取路径下所有xls
files = dir('*.xlsx');
filesnames={files.name};
icount = size(files,1);
A_all=[];
for i=1:1:icount
    %读取一个xls
   A= xlsread(filesnames{1,i});
   
    %如果不是日期标签就存起来
    A_all=[A_all,A];
end
回答问题 2022.12.08

matlab gui实现问卷中的复选框问题

答:

这样:
5个复选框弄一个全局变量,k_w_s_k_q=[0,0,0,0,0];每次勾选或取消,都把对应位置的设置为1或0,k_w_s_k_q=[0,1,0,1,0];
打印里头有个循环

global myitems={'课本';’网络‘;’书店‘;'期刊';'其他'};

List={};
for i=1:1:5
  if(k_w_s_k_q(i)==1)
List=[List,myitems{i}'];
  end
end

  set(handles.XXX,''string",List);


回答问题 2022.11.25

Mat lab初学者,打得有问题

答:

先把这个放一放,跳过去,只要不停下,往后照着写,好使就好使,不好使就跳过,不求甚解效率最高。
a(1,1)是把a看成个整型数组,每个地方放的是数字,'cellclass'是个字符串,放不进去
a{1,1}='cellclass'就行,a是元胞数组,就能塞字符串了
a(1,2)=[1,2,2];不行,你不能在一个位置放一个数组,要不你就这么改 a(1,1:3) = [1,2,2];
a{1,1}=[1,2,2];虽然行,但是没有这么写的,会有歧义啊,你到底给数组还是字符串啊,内容是[1,2,2]这用法太特殊了

回答问题 2022.11.18

matlab自定义函数拟合

答:

我发现,x,y只要转置一下就好了

clc,clear
syms t
x=[2 3 4 5 7 8 10 11 14 15 16 18 19];
y=[106.42 108.26 109.58 109.50 110.0 109.93 110.49 110.59 110.6 110.9 110.76 110.0 111.20];

f=fittype('a+b*log(t)','independent','t','coefficients',{'a','b'});  %fittype是自定义拟合函数
x=x';
y=y';
cfun=fit(x,y,f) %根据自定义拟合函数f来拟合数据x,y
xi=0:0.1:20;
yi=cfun(xi);
plot(x,y,'r*',xi,yi,'b-');

img

回答问题 2022.11.18

Undefined function 'comp_model' for input arguments of type 'cell'.

答:

data 或者dat.textdata 类型是 cell他说错了 所以要转一下类型,比如dat.textdata = cell2mat(dat.textdata);

回答问题 2022.11.09
加载更多