STM32 LL库 TIM3定时器多通道捕获输入采集

为什么不用HAL库,使用HAL库捕获输入一个通道还尚可,多通道捕获由于HAL的回调函数不符合我的要求,干脆直接切换到LL库。网上找了许多,代码处理写的不符合我的要求,这里记录一下我的调试过程。
TIM2输出1路PWM信号,使用1分3杜邦线接到TIM3的CH2-CH3-CH4通道进行捕获输入。
在这里插入图片描述
在这里插入图片描述


#include "tim.h"/* TIM2 init function */
void MX_TIM2_Init(void)
{LL_TIM_InitTypeDef TIM_InitStruct = {0};LL_TIM_OC_InitTypeDef TIM_OC_InitStruct = {0};LL_GPIO_InitTypeDef GPIO_InitStruct = {0};/* Peripheral clock enable */LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_TIM2);TIM_InitStruct.Prescaler = 63;TIM_InitStruct.CounterMode = LL_TIM_COUNTERMODE_UP;TIM_InitStruct.Autoreload = 9999;TIM_InitStruct.ClockDivision = LL_TIM_CLOCKDIVISION_DIV1;LL_TIM_Init(TIM2, &TIM_InitStruct);LL_TIM_DisableARRPreload(TIM2);LL_TIM_SetClockSource(TIM2, LL_TIM_CLOCKSOURCE_INTERNAL);LL_TIM_OC_EnablePreload(TIM2, LL_TIM_CHANNEL_CH2);TIM_OC_InitStruct.OCMode = LL_TIM_OCMODE_PWM1;TIM_OC_InitStruct.OCState = LL_TIM_OCSTATE_DISABLE;TIM_OC_InitStruct.OCNState = LL_TIM_OCSTATE_DISABLE;TIM_OC_InitStruct.CompareValue = 5000;TIM_OC_InitStruct.OCPolarity = LL_TIM_OCPOLARITY_HIGH;LL_TIM_OC_Init(TIM2, LL_TIM_CHANNEL_CH2, &TIM_OC_InitStruct);LL_TIM_OC_DisableFast(TIM2, LL_TIM_CHANNEL_CH2);LL_TIM_SetTriggerOutput(TIM2, LL_TIM_TRGO_RESET);LL_TIM_DisableMasterSlaveMode(TIM2);/* USER CODE BEGIN TIM2_Init 2 *//* USER CODE END TIM2_Init 2 */LL_IOP_GRP1_EnableClock(LL_IOP_GRP1_PERIPH_GPIOB);/**TIM2 GPIO ConfigurationPB3     ------> TIM2_CH2*/GPIO_InitStruct.Pin = LL_GPIO_PIN_3;GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE;GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;GPIO_InitStruct.Alternate = LL_GPIO_AF_2;LL_GPIO_Init(GPIOB, &GPIO_InitStruct);//-------------------------------------------LL_TIM_OC_SetCompareCH2(TIM2,2000);LL_TIM_CC_EnableChannel(TIM2,LL_TIM_CHANNEL_CH2);LL_TIM_EnableCounter(TIM2);}
/* TIM3 init function */
void MX_TIM3_Init(void)
{LL_TIM_InitTypeDef TIM_InitStruct = {0};LL_GPIO_InitTypeDef GPIO_InitStruct = {0};/* Peripheral clock enable */LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_TIM3);LL_IOP_GRP1_EnableClock(LL_IOP_GRP1_PERIPH_GPIOA);LL_IOP_GRP1_EnableClock(LL_IOP_GRP1_PERIPH_GPIOB);/**TIM3 GPIO ConfigurationPA7   ------> TIM3_CH2PB0   ------> TIM3_CH3PB1   ------> TIM3_CH4*/GPIO_InitStruct.Pin = LL_GPIO_PIN_7;GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE;GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;GPIO_InitStruct.Alternate = LL_GPIO_AF_1;LL_GPIO_Init(GPIOA, &GPIO_InitStruct);GPIO_InitStruct.Pin = LL_GPIO_PIN_0;GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE;GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;GPIO_InitStruct.Alternate = LL_GPIO_AF_1;LL_GPIO_Init(GPIOB, &GPIO_InitStruct);GPIO_InitStruct.Pin = LL_GPIO_PIN_1;GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE;GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;GPIO_InitStruct.Alternate = LL_GPIO_AF_1;LL_GPIO_Init(GPIOB, &GPIO_InitStruct);/* TIM3 interrupt Init */NVIC_SetPriority(TIM3_IRQn, 0);NVIC_EnableIRQ(TIM3_IRQn);/* USER CODE BEGIN TIM3_Init 1 *//* USER CODE END TIM3_Init 1 */TIM_InitStruct.Prescaler = 63;TIM_InitStruct.CounterMode = LL_TIM_COUNTERMODE_UP;TIM_InitStruct.Autoreload = 65535;TIM_InitStruct.ClockDivision = LL_TIM_CLOCKDIVISION_DIV1;LL_TIM_Init(TIM3, &TIM_InitStruct);LL_TIM_DisableARRPreload(TIM3);LL_TIM_SetClockSource(TIM3, LL_TIM_CLOCKSOURCE_INTERNAL);LL_TIM_SetTriggerOutput(TIM3, LL_TIM_TRGO_RESET);LL_TIM_DisableMasterSlaveMode(TIM3);LL_TIM_IC_SetActiveInput(TIM3, LL_TIM_CHANNEL_CH2, LL_TIM_ACTIVEINPUT_DIRECTTI);LL_TIM_IC_SetPrescaler(TIM3, LL_TIM_CHANNEL_CH2, LL_TIM_ICPSC_DIV1);LL_TIM_IC_SetFilter(TIM3, LL_TIM_CHANNEL_CH2, LL_TIM_IC_FILTER_FDIV1);LL_TIM_IC_SetPolarity(TIM3, LL_TIM_CHANNEL_CH2, LL_TIM_IC_POLARITY_RISING);LL_TIM_IC_SetActiveInput(TIM3, LL_TIM_CHANNEL_CH3, LL_TIM_ACTIVEINPUT_DIRECTTI);LL_TIM_IC_SetPrescaler(TIM3, LL_TIM_CHANNEL_CH3, LL_TIM_ICPSC_DIV1);LL_TIM_IC_SetFilter(TIM3, LL_TIM_CHANNEL_CH3, LL_TIM_IC_FILTER_FDIV1);LL_TIM_IC_SetPolarity(TIM3, LL_TIM_CHANNEL_CH3, LL_TIM_IC_POLARITY_RISING);LL_TIM_IC_SetActiveInput(TIM3, LL_TIM_CHANNEL_CH4, LL_TIM_ACTIVEINPUT_DIRECTTI);LL_TIM_IC_SetPrescaler(TIM3, LL_TIM_CHANNEL_CH4, LL_TIM_ICPSC_DIV1);LL_TIM_IC_SetFilter(TIM3, LL_TIM_CHANNEL_CH4, LL_TIM_IC_FILTER_FDIV1);LL_TIM_IC_SetPolarity(TIM3, LL_TIM_CHANNEL_CH4, LL_TIM_IC_POLARITY_RISING);/* USER CODE BEGIN TIM3_Init 2 */LL_TIM_EnableIT_UPDATE(TIM3);//更新中断使能LL_TIM_EnableIT_CC2(TIM3);//捕获通道2使能LL_TIM_EnableIT_CC3(TIM3);//捕获通道3使能LL_TIM_EnableIT_CC4(TIM3);//捕获通道4使能LL_TIM_CC_EnableChannel(TIM3,LL_TIM_CHANNEL_CH2);//通道2使能LL_TIM_CC_EnableChannel(TIM3,LL_TIM_CHANNEL_CH3);//通道3使能LL_TIM_CC_EnableChannel(TIM3,LL_TIM_CHANNEL_CH4);//通道4使能LL_TIM_EnableCounter(TIM3);/* USER CODE END TIM3_Init 2 */}uint32_t  TIM3_OverCnt = 0;
int32_t  Value_Temp2 = 0;
int32_t  Value_Temp3 = 0;
int32_t  Value_Temp4 = 0;uint32_t  TIM3_CH2_Capture_FristValue_1; 
uint32_t  TIM3_CH2_Capture_FristValue_2; 
uint32_t  TIM3_CH2_Capture_FristValue_3; 
uint32_t  TIM3_CH2_Capture_HighLevel; 
uint32_t  TIM3_CH2_Capture_LowLevel; 
uint8_t   TIM3_CH2_CaptureNumber;
//uint32_t  TIM3_CH2_Freq = 0;
//float 	  TIM3_CH2_Duty = 0;uint32_t  TIM3_CH3_Capture_FristValue_1; 
uint32_t  TIM3_CH3_Capture_FristValue_2; 
uint32_t  TIM3_CH3_Capture_FristValue_3; 
uint32_t  TIM3_CH3_Capture_HighLevel; 
uint32_t  TIM3_CH3_Capture_LowLevel; 
uint8_t   TIM3_CH3_CaptureNumber;
//uint32_t  TIM3_CH3_Freq = 0;
//float 	  TIM3_CH3_Duty = 0;uint32_t  TIM3_CH4_Capture_FristValue_1; 
uint32_t  TIM3_CH4_Capture_FristValue_2; 
uint32_t  TIM3_CH4_Capture_FristValue_3; 
uint32_t  TIM3_CH4_Capture_HighLevel; 
uint32_t  TIM3_CH4_Capture_LowLevel; 
uint8_t   TIM3_CH4_CaptureNumber;void TIM3_CallBack(void)
{	//------------------------------------------CC2if(LL_TIM_IsActiveFlag_CC2(TIM3)){		LL_TIM_ClearFlag_CC2(TIM3);if(TIM3_CH2_CaptureNumber == 0){TIM3_OverCnt = 0;TIM3_CH2_CaptureNumber = 1;	
//					  LL_TIM_SetCounter(TIM3,0);	}elseif(TIM3_CH2_CaptureNumber == 1){	TIM3_CH2_Capture_FristValue_1 = LL_TIM_IC_GetCaptureCH2(TIM3);	// 获取当前的捕获值. 即CCRx2  //设置下降沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH2,LL_TIM_IC_POLARITY_FALLING);						TIM3_CH2_CaptureNumber = 2;TIM3_OverCnt = 0;						}elseif(TIM3_CH2_CaptureNumber == 2){TIM3_CH2_Capture_FristValue_2 = LL_TIM_IC_GetCaptureCH2(TIM3);	// 获取当前的捕获值. 即CCRx2  if(TIM3_OverCnt >= 1){								 						TIM3_CH2_Capture_HighLevel = TIM3_OverCnt * 65535 + TIM3_CH2_Capture_FristValue_2 - TIM3_CH2_Capture_FristValue_1;			}else{Value_Temp2 = TIM3_CH2_Capture_FristValue_2 - TIM3_CH2_Capture_FristValue_1;Value_Temp2 = Value_Temp2>0?Value_Temp2:0;							TIM3_CH2_Capture_HighLevel = TIM3_OverCnt * 65535 + Value_Temp2;}											//设置上升沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH2,LL_TIM_IC_POLARITY_RISING);		TIM3_CH2_CaptureNumber = 3;TIM3_OverCnt = 0;}elseif(TIM3_CH2_CaptureNumber == 3){TIM3_CH2_Capture_FristValue_3 = LL_TIM_IC_GetCaptureCH2(TIM3);	// 获取当前的捕获值. 即CCRx2  if(TIM3_OverCnt >= 1){TIM3_CH2_Capture_LowLevel = TIM3_OverCnt * 65535 + TIM3_CH2_Capture_FristValue_3 - TIM3_CH2_Capture_FristValue_2;							}else{Value_Temp2 = TIM3_CH2_Capture_FristValue_3 - TIM3_CH2_Capture_FristValue_2;Value_Temp2 = Value_Temp2>0?Value_Temp2:0;TIM3_CH2_Capture_LowLevel = TIM3_OverCnt * 65535 + Value_Temp2;							}//					//设置    沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH2,LL_TIM_IC_POLARITY_FALLING);				TIM3_CH2_CaptureNumber = 4;TIM3_OverCnt = 0;}		elseif(TIM3_CH2_CaptureNumber == 4){//					//设置    沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH2,LL_TIM_IC_POLARITY_RISING);				TIM3_CH2_CaptureNumber = 1;TIM3_OverCnt = 0;}					}		//------------------------------------------CC3if(LL_TIM_IsActiveFlag_CC3(TIM3)){	LL_TIM_ClearFlag_CC3(TIM3);if(TIM3_CH3_CaptureNumber == 0){TIM3_OverCnt = 0;TIM3_CH3_CaptureNumber = 1;	
//					  LL_TIM_SetCounter(TIM3,0);	}elseif(TIM3_CH3_CaptureNumber == 1){TIM3_OverCnt = 0;TIM3_CH3_Capture_FristValue_1 = LL_TIM_IC_GetCaptureCH3(TIM3);	// 获取当前的捕获值. 即CCRx2  //设置下降沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH3,LL_TIM_IC_POLARITY_FALLING);						TIM3_CH3_CaptureNumber = 2;					}elseif(TIM3_CH3_CaptureNumber == 2){TIM3_CH3_Capture_FristValue_2 = LL_TIM_IC_GetCaptureCH3(TIM3);	// 获取当前的捕获值. 即CCRx2  if(TIM3_OverCnt >= 1){			TIM3_CH3_Capture_HighLevel = TIM3_OverCnt * 65535 + TIM3_CH3_Capture_FristValue_2 - TIM3_CH3_Capture_FristValue_1;							}	else{Value_Temp3 = TIM3_CH3_Capture_FristValue_2 - TIM3_CH3_Capture_FristValue_1;Value_Temp3 = Value_Temp3>0?Value_Temp3:0;						TIM3_CH3_Capture_HighLevel = TIM3_OverCnt * 65535 + Value_Temp3;}	//设置上升沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH3,LL_TIM_IC_POLARITY_RISING);			TIM3_CH3_CaptureNumber = 3;TIM3_OverCnt = 0;}elseif(TIM3_CH3_CaptureNumber == 3){TIM3_CH3_Capture_FristValue_3 = LL_TIM_IC_GetCaptureCH3(TIM3);	// 获取当前的捕获值. 即CCRx2  if(TIM3_OverCnt >= 1){					TIM3_CH3_Capture_LowLevel = TIM3_OverCnt * 65535 + TIM3_CH3_Capture_FristValue_3 - TIM3_CH3_Capture_FristValue_2;								}	else{Value_Temp3 = TIM3_CH3_Capture_FristValue_3 - TIM3_CH3_Capture_FristValue_2;Value_Temp3 = Value_Temp3>0?Value_Temp3:0;							TIM3_CH3_Capture_LowLevel = TIM3_OverCnt * 65535 + Value_Temp3;}	//					//设置    沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH3,LL_TIM_IC_POLARITY_FALLING);	TIM3_CH3_CaptureNumber = 4;TIM3_OverCnt = 0;}		elseif(TIM3_CH3_CaptureNumber == 4){//					//设置    沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH3,LL_TIM_IC_POLARITY_RISING);		TIM3_CH3_CaptureNumber = 1;TIM3_OverCnt = 0;}				}//------------------------------------------CC4if(LL_TIM_IsActiveFlag_CC4(TIM3)){	LL_TIM_ClearFlag_CC4(TIM3);if(TIM3_CH4_CaptureNumber == 0){TIM3_OverCnt = 0;TIM3_CH4_CaptureNumber = 1;	
//					   LL_TIM_SetCounter(TIM3,0);	}elseif(TIM3_CH4_CaptureNumber == 1){TIM3_OverCnt = 0;TIM3_CH4_Capture_FristValue_1 = LL_TIM_IC_GetCaptureCH4(TIM3);	// 获取当前的捕获值. 即CCRx2  //设置下降沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH4,LL_TIM_IC_POLARITY_FALLING);			TIM3_CH4_CaptureNumber = 2;}elseif(TIM3_CH4_CaptureNumber == 2){TIM3_CH4_Capture_FristValue_2 = LL_TIM_IC_GetCaptureCH4(TIM3);	// 获取当前的捕获值. 即CCRx2  if(TIM3_OverCnt >= 1){					TIM3_CH4_Capture_HighLevel = TIM3_OverCnt * 65535 + TIM3_CH4_Capture_FristValue_2 - TIM3_CH4_Capture_FristValue_1;								}	else{Value_Temp4 = TIM3_CH4_Capture_FristValue_2 - TIM3_CH4_Capture_FristValue_1;Value_Temp4 = Value_Temp4>0?Value_Temp4:0;							TIM3_CH4_Capture_HighLevel = TIM3_OverCnt * 65535 + Value_Temp4;}	//设置上升沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH4,LL_TIM_IC_POLARITY_RISING);			TIM3_CH4_CaptureNumber = 3;TIM3_OverCnt = 0;}elseif(TIM3_CH4_CaptureNumber == 3){TIM3_CH4_Capture_FristValue_3 = LL_TIM_IC_GetCaptureCH4(TIM3);	// 获取当前的捕获值. 即CCRx2  if(TIM3_OverCnt >= 1){									TIM3_CH4_Capture_LowLevel = TIM3_OverCnt * 65535 + TIM3_CH4_Capture_FristValue_3 - TIM3_CH4_Capture_FristValue_2; 								}	else{Value_Temp4 = TIM3_CH4_Capture_FristValue_3 - TIM3_CH4_Capture_FristValue_2;Value_Temp4 = Value_Temp4>0?Value_Temp4:0;							TIM3_CH4_Capture_LowLevel = TIM3_OverCnt * 65535 + Value_Temp4; }	//					//设置    沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH4,LL_TIM_IC_POLARITY_FALLING);	TIM3_CH4_CaptureNumber = 4;TIM3_OverCnt = 0;}		elseif(TIM3_CH4_CaptureNumber == 4){//					//设置    沿触发LL_TIM_IC_SetPolarity(TIM3,LL_TIM_CHANNEL_CH4,LL_TIM_IC_POLARITY_RISING);		TIM3_CH4_CaptureNumber = 1;TIM3_OverCnt = 0;}				} //------------------------------------------Updateif(LL_TIM_IsActiveFlag_UPDATE(TIM3)){	LL_TIM_ClearFlag_UPDATE(TIM3); //每次溢出时间为65536usTIM3_OverCnt++;}}
#ifndef __TIM_H__
#define __TIM_H__#ifdef __cplusplus
extern "C" {
#endif/* Includes ------------------------------------------------------------------*/
#include "main.h"void MX_TIM2_Init(void);
void MX_TIM3_Init(void);
void TIM3_CallBack(void);#ifdef __cplusplus
}
#endif#endif /* __TIM_H__ */
#include "main.h"
#include "tim.h"
#include "gpio.h"void SystemClock_Config(void);int main(void)
{HAL_Init();SystemClock_Config();MX_GPIO_Init();MX_TIM2_Init();MX_TIM3_Init();while (1){}}
/*** @brief This function handles TIM3 global interrupt.*/
void TIM3_IRQHandler(void)
{TIM3_CallBack();}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/180361.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

<MySQL> 查询数据进阶操作 -- 联合查询

目录 一、什么是笛卡尔积? 二、什么是联合查询? 三、内连接 3.1 简介 3.2 语法 3.3 更多的表 3.4 操作演示 四、外连接 4.1 简介 4.2 语法 4.3 操作演示 五、自连接 5.1 简介 5.2 自连接非必要不使用 六、子查询(嵌套查询) 6.1 简介 6.…

计算机毕业设计选题推荐-二手交易跳蚤市场微信小程序/安卓APP-项目实战

✨作者主页:IT毕设梦工厂✨ 个人简介:曾从事计算机专业培训教学,擅长Java、Python、微信小程序、Golang、安卓Android等项目实战。接项目定制开发、代码讲解、答辩教学、文档编写、降重等。 ☑文末获取源码☑ 精彩专栏推荐⬇⬇⬇ Java项目 Py…

机器人导航+OPENCV透视变换示例代码

透视变换又称四点变换,所以不能用于5边形这样的图形变换,不是真正的透视变换,但是这个方法可以把机器人看到的图像转换为俯视图,这样就可以建立地图,要不然怎么建立地图呢。 void CrelaxMyFriendDlg::OnBnClickedOk()…

力扣刷题篇之数与位2

系列文章目录 目录 系列文章目录 前言 数值计算 总结 前言 本系列是个人力扣刷题汇总,本文是数与位。刷题顺序按照[力扣刷题攻略] Re:从零开始的力扣刷题生活 - 力扣(LeetCode) 数值计算 415. 字符串相加 - 力扣(…

WordPress 媒体库文件夹管理插件 FileBird v5.5.4和谐版下载

FileBird是一款WordPress 按照文件夹管理方式的插件。 拖放界面 拖放功能现已成为现代软件和网站的标配。本机拖动事件(包括仅在刀片中将文件移动到文件夹以及将文件夹移动到文件夹)极大地减少了完成任务所需的点击次数。 一流设计的文件夹树展示 我们…

物联网主机E6000:动环监控的新革命

多协议、多接口的全能主机 在物联网时代,数据的采集和处理已经成为了企业运营的重要环节。而物联网主机E6000,就是这个时代的全能选手。它支持多种协议和接口,无论是视频、设备还是DCS系统的数据,都能轻松接入并进行采集处理。这种…

如何克服微服务测试的挑战并最大化收益?

多年来,微服务一直是行业趋势,但组织却未能从该方法中获益,并因发布失败而苦苦挣扎。这些失败通常归结为测试服务之间的接口以获得预期的质量、安全性和性能的困难。 最终,未能以足够稳健的方式测试这些 API。一线希望是遗留 SOA…

51单片机应用从零开始(三)

51单片机应用从零开始(一)-CSDN博客 51单片机应用从零开始(二)-CSDN博客 详解 KEIL C51 软件的使用建立工程-CSDN博客 详解 KEIL C51 软件的使用设置工程编绎与连接程序-CSDN博客 目录 1. 用单片机控制第一个灯亮 2. 认识单片…

正版软件|Soundop 专业音频编辑器,实现无缝的音频制作工作流程

关于Soundop Soundop 音频编辑器 直观而专业的音频编辑软件,用于录制、编辑、混合和掌握音频内容。 Soundop 是一款适用于 Windows 的专业音频编辑器,可在具有高级功能的直观灵活的工作区中录制、编辑和掌握音频并混音轨道。音频文件编辑器支持波形和频谱…

第十九章 Java绘图

第十九章 java绘图 19.1 java绘图类 绘图时高级程序设计中非常重要的技术,例如,应用程序可以绘制闪屏图片,背景图片,组件外观等等,Web程序可以绘制统计图,数据库存储图片资源等,真骨耸为“一…

挑战字节软件测试岗,原来这么轻松...

当前就业环境,裁员、失业消息满天飞,好像有一份工作就不错了,更别说高薪了。其实这只是一方面,而另一方面,各大企业依然求贤若渴,高技术人才依然紧缺,只要你技术过硬,拿个年薪50w不是…

第十九章总结

Java绘图类 Graphics 类 Grapics 类是所有图形上下文的抽象基类,它允许应用程序在组件以及闭屏图像上进行绘制。Graphics 类封装了Java 支持的基本绘图操作所需的状态信息,主要包括颜色、字体、画笔、文本、图像等。 Graphics 类提供了绘图常用的…