375
  • 2024-08-27STM32或者RSIC-V输出SPWM波形
    直接上代码吧,其余的内容可以到别的地方搜索,包括什么是SPWM /*@NotePWMoutputroutine:TIM1_CH1(PA8)ThisexampledemonstratesthattheTIM_CH1(PA8)pinoutputsPWMinPWMmode1andPWMmode2.*/#include"debug.h"/*PWMOutputModeDefinition*/#definePWM_M
  • 2024-05-10C# Console.Beep
    usingSystem;namespaceConsoleApp{publicclassProgram{publicstaticvoidMain(string[]args){varhz=new[]{392,392,440,392,523,494,392,392,440,392,587,523,392,392,784,659,523,494,440,698,
  • 2023-12-10第 375 场周赛(滑动窗口,区间合并)
     使用差分的思想进行解决classSolution:defcountTestedDevices(self,batteryPercentages:List[int])->int:diff=0forxinbatteryPercentages:ifx>diff:diff+=1returndiff    clas
  • 2023-08-11文盘Rust -- Mutex解决并发写文件乱序问题
    在实际开发过程中,我们可能会遇到并发写文件的场景,如果处理不当很可能出现文件内容乱序问题。下面我们通过一个示例程序描述这一过程并给出解决该问题的方法。usestd::{fs::{self,File,OpenOptions},io::{Write},sync::Arc,time::{SystemTime,UNIX_EPOCH}
  • 2023-01-30尺寸单位
    rem先将1rem设为屏幕宽度的1/20:document.addEventListener('DOMContentLoaded', function (){  document.documentElement.style.fontSize = document.documentE
  • 2022-10-09算法1-c# dotnet core3.1
    usingSystem;namespaceConsoleApp1{classProgram{staticvoidMain(string[]args){Console.WriteLine("HelloWorld!");
  • 2022-09-27iOS开发之各机型屏幕大小与键盘高度整理
    机型屏幕宽屏幕高键盘高iPhone8375667260iPhone8Plus414736271iPhoneX375812336iPhoneXs375812336iPhoneXsMax414896346iP
  • 2022-08-18React--移动端适配
    适配原理选择某个手机的尺寸大小作为基准,其他手机进行等比例缩放一般选择iPhone6(2倍屏幕),屏幕宽度为:375px适配方式rem:需要手动修改html元素的font-s
  • 2022-08-15设置rem
    rem(根元素的字体大小)<script> functionauto(){              /获取当前屏幕宽度/              vardevice