找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2857|回复: 3
收起左侧

STM32单片机的IIC读取AHT20 AHT21温湿度 源程序

[复制链接]
ID:298182 发表于 2022-3-10 14:37 | 显示全部楼层 |阅读模式
51hei.png
  1. #include "stm32f10x.h"
  2. #include "AHT20-21_DEMO_V1_3.h"




  3. void Delay_N10us(uint32_t t)//延时函数
  4. {
  5.   uint32_t k;

  6.    while(t--)
  7.   {
  8.     for (k = 0; k < 2; k++);//110
  9.   }
  10. }

  11. void SensorDelay_us(uint32_t t)//延时函数
  12. {
  13.                
  14.         for(t = t-2; t>0; t--)
  15.         {
  16.                 Delay_N10us(1);
  17.         }
  18. }

  19. void Delay_4us(void)                //延时函数
  20. {        
  21.         Delay_N10us(1);
  22.         Delay_N10us(1);
  23.         Delay_N10us(1);
  24.         Delay_N10us(1);
  25. }
  26. void Delay_5us(void)                //延时函数
  27. {        
  28.         Delay_N10us(1);
  29.         Delay_N10us(1);
  30.         Delay_N10us(1);
  31.         Delay_N10us(1);
  32.         Delay_N10us(1);

  33. }

  34. void Delay_1ms(uint32_t t)                //延时函数
  35. {
  36.    while(t--)
  37.   {
  38.     SensorDelay_us(1000);//////延时1ms
  39.   }
  40. }


  41. void AHT20_Clock_Init(void)                //延时函数
  42. {
  43.         RCC_APB2PeriphClockCmd(CC_APB2Periph_GPIOB,ENABLE);
  44. }

  45. void SDA_Pin_Output_High(void)   //将PB15配置为输出 , 并设置为高电平, PB15作为I2C的SDA
  46. {
  47.         GPIO_InitTypeDef  GPIO_InitStruct;
  48.         GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;//推挽输出
  49.         GPIO_InitStruct.GPIO_Pin = GPIO_Pin_15;
  50.         GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  51.         GPIO_Init(GPIOB,& GPIO_InitStruct);
  52.         GPIO_SetBits(GPIOB,GPIO_Pin_15);
  53. }

  54. void SDA_Pin_Output_Low(void)  //将P15配置为输出  并设置为低电平//SDA配置为浮空输出
  55. {

  56.         GPIO_InitTypeDef  GPIO_InitStruct;
  57.         GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;//推挽输出
  58.         GPIO_InitStruct.GPIO_Pin = GPIO_Pin_15;
  59.         GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  60.         GPIO_Init(GPIOB,& GPIO_InitStruct);
  61.         GPIO_ResetBits(GPIOB,GPIO_Pin_15);
  62. }

  63. void SDA_Pin_IN_FLOATING(void)  //SDA配置为浮空输入
  64. {

  65.         GPIO_InitTypeDef  GPIO_InitStruct;
  66.         GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN_FLOATING;//
  67.         GPIO_InitStruct.GPIO_Pin = GPIO_Pin_15;
  68.         GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  69.         GPIO_Init( GPIOB,&GPIO_InitStruct);
  70. }

  71. void SCL_Pin_Output_High(void) //SCL输出高电平,P14作为I2C的SCL
  72. {
  73.         GPIO_SetBits(GPIOB,GPIO_Pin_14);
  74. }

  75. void SCL_Pin_Output_Low(void) //SCL输出低电平
  76. {
  77.         GPIO_ResetBits(GPIOB,GPIO_Pin_14);
  78. }

  79. void Init_I2C_Sensor_Port(void) //初始化I2C接口,输出为高电平
  80. {        
  81.         GPIO_InitTypeDef  GPIO_InitStruct;
  82.         GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;//推挽输出
  83.         GPIO_InitStruct.GPIO_Pin = GPIO_Pin_15;
  84.         GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  85.         GPIO_Init(GPIOB,& GPIO_InitStruct);
  86.         GPIO_SetBits(GPIOB,GPIO_Pin_15);//输出高电平
  87.         
  88.         GPIO_InitTypeDef  GPIO_InitStruct;
  89.         GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;//推挽输出
  90.         GPIO_InitStruct.GPIO_Pin = GPIO_Pin_14;
  91.         GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  92.         GPIO_Init(GPIOB,& GPIO_InitStruct);
  93.         GPIO_SetBits(GPIOB,GPIO_Pin_15);//输出高电平
  94.         
  95. }
  96. void I2C_Start(void)                 //I2C主机发送START信号
  97. {
  98.         SDA_Pin_Output_High();
  99.         SensorDelay_us(8);
  100.         SCL_Pin_Output_High();
  101.         SensorDelay_us(8);
  102.         SDA_Pin_Output_Low();
  103.         SensorDelay_us(8);
  104.         SCL_Pin_Output_Low();
  105.         SensorDelay_us(8);   
  106. }


  107. void AHT20_WR_Byte(uint8_t Byte) //往AHT20写一个字节
  108. {
  109.         uint8_t Data,N,i;        
  110.         Data=Byte;
  111.         i = 0x80;
  112.         for(N=0;N<8;N++)
  113.         {
  114.                 SCL_Pin_Output_Low();
  115.                 Delay_4us();        
  116.                 if(i&Data)
  117.                 {
  118.                         SDA_Pin_Output_High();
  119.                 }
  120.                 else
  121.                 {
  122.                         SDA_Pin_Output_Low();
  123.                 }        
  124.                         
  125.     SCL_Pin_Output_High();
  126.                 Delay_4us();
  127.                 Data <<= 1;
  128.                  
  129.         }
  130.         SCL_Pin_Output_Low();
  131.         SensorDelay_us(8);   
  132.         SDA_Pin_IN_FLOATING();
  133.         SensorDelay_us(8);        
  134. }        


  135. uint8_t AHT20_RD_Byte(void)//从AHT20读取一个字节
  136. {
  137.         uint8_t Byte,i,a;
  138.         Byte = 0;
  139.         SCL_Pin_Output_Low();
  140.         SDA_Pin_IN_FLOATING();
  141.         SensorDelay_us(8);        
  142.         for(i=0;i<8;i++)
  143.         {
  144.     SCL_Pin_Output_High();               
  145.                 Delay_5us();
  146.                 a=0;
  147.                 if(GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_15)) a=1;
  148.                 Byte = (Byte<<1)|a;
  149.                 SCL_Pin_Output_Low();
  150.                 Delay_5us();
  151.         }
  152.   SDA_Pin_IN_FLOATING();
  153.         SensorDelay_us(8);        
  154.         return Byte;
  155. }


  156. uint8_t Receive_ACK(void)   //看AHT20是否有回复ACK
  157. {
  158.         uint16_t CNT;
  159.         CNT = 0;
  160.         SCL_Pin_Output_Low();        
  161.         SDA_Pin_IN_FLOATING();
  162.         SensorDelay_us(8);        
  163.         SCL_Pin_Output_High();        
  164.         SensorDelay_us(8);        
  165.         while((GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_15))  && CNT < 100)
  166.         CNT++;
  167.         if(CNT == 100)
  168.         {
  169.                 return 0;
  170.         }
  171.          SCL_Pin_Output_Low();        
  172.         SensorDelay_us(8);        
  173.         return 1;
  174. }

  175. void Send_ACK(void)                  //主机回复ACK信号
  176. {
  177.         SCL_Pin_Output_Low();        
  178.         SensorDelay_us(8);        
  179.         SDA_Pin_Output_Low();
  180.         SensorDelay_us(8);        
  181.         SCL_Pin_Output_High();        
  182.         SensorDelay_us(8);
  183.         SCL_Pin_Output_Low();        
  184.         SensorDelay_us(8);
  185.         SDA_Pin_IN_FLOATING();
  186.         SensorDelay_us(8);
  187. }

  188. void Send_NOT_ACK(void)        //主机不回复ACK
  189. {
  190.         SCL_Pin_Output_Low();        
  191.         SensorDelay_us(8);
  192.         SDA_Pin_Output_High();
  193.         SensorDelay_us(8);
  194.         SCL_Pin_Output_High();        
  195.         SensorDelay_us(8);               
  196.         SCL_Pin_Output_Low();        
  197.         SensorDelay_us(8);
  198.     SDA_Pin_Output_Low();
  199.         SensorDelay_us(8);
  200. }

  201. void Stop_I2C(void)          //一条协议结束
  202. {
  203.         SDA_Pin_Output_Low();
  204.         SensorDelay_us(8);
  205.         SCL_Pin_Output_High();        
  206.         SensorDelay_us(8);
  207.         SDA_Pin_Output_High();
  208.         SensorDelay_us(8);
  209. }

  210. uint8_t AHT20_Read_Status(void)//读取AHT20的状态寄存器
  211. {

  212.         uint8_t Byte_first;        
  213.         I2C_Start();
  214.         AHT20_WR_Byte(0x71);
  215.         Receive_ACK();
  216.         Byte_first = AHT20_RD_Byte();
  217.         Send_NOT_ACK();
  218.         Stop_I2C();
  219.         return Byte_first;
  220. }

  221. uint8_t AHT20_Read_Cal_Enable(void)  //查询cal enable位有没有使能
  222. {
  223.         uint8_t val = 0;//ret = 0,
  224.   val = AHT20_Read_Status();
  225.          if((val & 0x68)==0x08)
  226.                  return 1;
  227.    else  return 0;
  228. }

  229. void AHT20_SendAC(void) //向AHT20发送AC命令
  230. {

  231.         I2C_Start();
  232.         AHT20_WR_Byte(0x70);
  233.         Receive_ACK();
  234.         AHT20_WR_Byte(0xac);//0xAC采集命令
  235.         Receive_ACK();
  236.         AHT20_WR_Byte(0x33);
  237.         Receive_ACK();
  238.         AHT20_WR_Byte(0x00);
  239.         Receive_ACK();
  240.         Stop_I2C();

  241. }

  242. //CRC校验类型:CRC8/MAXIM
  243. //多项式:X8+X5+X4+1
  244. //Poly:0011 0001  0x31
  245. //高位放到后面就变成 1000 1100 0x8c
  246. //C现实代码:
  247. uint8_t Calc_CRC8(uint8_t *message,uint8_t Num)
  248. {
  249.         uint8_t i;
  250.         uint8_t byte;
  251.         uint8_t crc=0xFF;
  252.   for(byte=0; byte<Num; byte++)
  253.   {
  254.     crc^=(message[byte]);
  255.     for(i=8;i>0;--i)
  256.     {
  257.       if(crc&0x80) crc=(crc<<1)^0x31;
  258.       else crc=(crc<<1);
  259.     }
  260.   }
  261.         return crc;
  262. }

  263. void AHT20_Read_CTdata(uint32_t *ct) //没有CRC校验,直接读取AHT20的温度和湿度数据
  264. {
  265.         volatile uint8_t  Byte_1th=0;
  266.         volatile uint8_t  Byte_2th=0;
  267.         volatile uint8_t  Byte_3th=0;
  268.         volatile uint8_t  Byte_4th=0;
  269.         volatile uint8_t  Byte_5th=0;
  270.         volatile uint8_t  Byte_6th=0;
  271.          uint32_t RetuData = 0;
  272.         uint16_t cnt = 0;
  273.         AHT20_SendAC();//向AHT10发送AC命令
  274.         Delay_1ms(80);//延时80ms左右        
  275.     cnt = 0;
  276.         while(((AHT20_Read_Status()&0x80)==0x80))//直到状态bit[7]为0,表示为空闲状态,若为1,表示忙状态
  277.         {
  278.                 SensorDelay_us(1508);
  279.                 if(cnt++>=100)
  280.                 {
  281.                  break;
  282.                  }
  283.         }
  284.         I2C_Start();
  285.         AHT20_WR_Byte(0x71);
  286.         Receive_ACK();
  287.         Byte_1th = AHT20_RD_Byte();//状态字,查询到状态为0x98,表示为忙状态,bit[7]为1;状态为0x1C,或者0x0C,或者0x08表示为空闲状态,bit[7]为0
  288.         Send_ACK();
  289.         Byte_2th = AHT20_RD_Byte();//湿度
  290.         Send_ACK();
  291.         Byte_3th = AHT20_RD_Byte();//湿度
  292.         Send_ACK();
  293.         Byte_4th = AHT20_RD_Byte();//湿度/温度
  294.         Send_ACK();
  295.         Byte_5th = AHT20_RD_Byte();//温度
  296.         Send_ACK();
  297.         Byte_6th = AHT20_RD_Byte();//温度
  298.         Send_NOT_ACK();
  299.         Stop_I2C();

  300.         RetuData = (RetuData|Byte_2th)<<8;
  301.         RetuData = (RetuData|Byte_3th)<<8;
  302.         RetuData = (RetuData|Byte_4th);
  303.         RetuData =RetuData >>4;
  304.         ct[0] = RetuData;//湿度
  305.         RetuData = 0;
  306.         RetuData = (RetuData|Byte_4th)<<8;
  307.         RetuData = (RetuData|Byte_5th)<<8;
  308.         RetuData = (RetuData|Byte_6th);
  309.         RetuData = RetuData&0xfffff;
  310.         ct[1] =RetuData; //温度

  311. }


  312. void AHT20_Read_CTdata_crc(uint32_t *ct) //CRC校验后,读取AHT20的温度和湿度数据
  313. {
  314.         volatile uint8_t  Byte_1th=0;
  315.         volatile uint8_t  Byte_2th=0;
  316.         volatile uint8_t  Byte_3th=0;
  317.         volatile uint8_t  Byte_4th=0;
  318.         volatile uint8_t  Byte_5th=0;
  319.         volatile uint8_t  Byte_6th=0;
  320.         volatile uint8_t  Byte_7th=0;
  321.          uint32_t RetuData = 0;
  322.          uint16_t cnt = 0;
  323.         // uint8_t  CRCDATA=0;
  324.          uint8_t  CTDATA[6]={0};//用于CRC传递数组
  325.         
  326.         AHT20_SendAC();//向AHT10发送AC命令
  327.         Delay_1ms(80);//延时80ms左右        
  328.     cnt = 0;
  329.         while(((AHT20_Read_Status()&0x80)==0x80))//直到状态bit[7]为0,表示为空闲状态,若为1,表示忙状态
  330.         {
  331.                 SensorDelay_us(1508);
  332.                 if(cnt++>=100)
  333.                 {
  334.                  break;
  335.                 }
  336.         }
  337.         
  338.         I2C_Start();

  339.         AHT20_WR_Byte(0x71);
  340.         Receive_ACK();
  341.         CTDATA[0]=Byte_1th = AHT20_RD_Byte();//状态字,查询到状态为0x98,表示为忙状态,bit[7]为1;状态为0x1C,或者0x0C,或者0x08表示为空闲状态,bit[7]为0
  342.         Send_ACK();
  343.         CTDATA[1]=Byte_2th = AHT20_RD_Byte();//湿度
  344.         Send_ACK();
  345.         CTDATA[2]=Byte_3th = AHT20_RD_Byte();//湿度
  346.         Send_ACK();
  347.         CTDATA[3]=Byte_4th = AHT20_RD_Byte();//湿度/温度
  348.         Send_ACK();
  349.         CTDATA[4]=Byte_5th = AHT20_RD_Byte();//温度
  350.         Send_ACK();
  351.         CTDATA[5]=Byte_6th = AHT20_RD_Byte();//温度
  352.         Send_ACK();
  353.         Byte_7th = AHT20_RD_Byte();//CRC数据
  354.         Send_NOT_ACK();                           //注意: 最后是发送NAK
  355.         Stop_I2C();
  356.         
  357.         if(Calc_CRC8(CTDATA,6)==Byte_7th)
  358.         {
  359.         RetuData = (RetuData|Byte_2th)<<8;
  360.         RetuData = (RetuData|Byte_3th)<<8;
  361.         RetuData = (RetuData|Byte_4th);
  362.         RetuData =RetuData >>4;
  363.         ct[0] = RetuData;//湿度
  364.         RetuData = 0;
  365.         RetuData = (RetuData|Byte_4th)<<8;
  366.         RetuData = (RetuData|Byte_5th)<<8;
  367.         RetuData = (RetuData|Byte_6th);
  368.         RetuData = RetuData&0xfffff;
  369.         ct[1] =RetuData; //温度
  370.                
  371.         }
  372.         else
  373.         {
  374.                 ct[0]=0x00;
  375.                 ct[1]=0x00;//校验错误返回值,客户可以根据自己需要更改
  376.         }//CRC数据
  377. }


  378. void AHT20_Init(void)   //初始化AHT20
  379. {        
  380.         Init_I2C_Sensor_Port();
  381.         I2C_Start();
  382.         AHT20_WR_Byte(0x70);
  383.         Receive_ACK();
  384.         AHT20_WR_Byte(0xa8);//0xA8进入NOR工作模式
  385.         Receive_ACK();
  386.         AHT20_WR_Byte(0x00);
  387.         Receive_ACK();
  388.         AHT20_WR_Byte(0x00);
  389.         Receive_ACK();
  390.         Stop_I2C();

  391.         Delay_1ms(10);//延时10ms左右

  392.         I2C_Start();
  393.         AHT20_WR_Byte(0x70);
  394.         Receive_ACK();
  395.         AHT20_WR_Byte(0xbe);//0xBE初始化命令,AHT20的初始化命令是0xBE,   AHT10的初始化命令是0xE1
  396.         Receive_ACK();
  397.         AHT20_WR_Byte(0x08);//相关寄存器bit[3]置1,为校准输出
  398.         Receive_ACK();
  399.         AHT20_WR_Byte(0x00);
  400.         Receive_ACK();
  401.         Stop_I2C();
  402.         Delay_1ms(10);//延时10ms左右
  403. }
  404. void JH_Reset_REG(uint8_t addr)
  405. {
  406.         
  407.         uint8_t Byte_first,Byte_second,Byte_third,Byte_fourth;
  408.         I2C_Start();
  409.         AHT20_WR_Byte(0x70);//原来是0x70
  410.         Receive_ACK();
  411.         AHT20_WR_Byte(addr);
  412.         Receive_ACK();
  413.         AHT20_WR_Byte(0x00);
  414.         Receive_ACK();
  415.         AHT20_WR_Byte(0x00);
  416.         Receive_ACK();
  417.         Stop_I2C();

  418.         Delay_1ms(5);//延时5ms左右
  419.         I2C_Start();
  420.         AHT20_WR_Byte(0x71);//
  421.         Receive_ACK();
  422.         Byte_first = AHT20_RD_Byte();
  423.         Send_ACK();
  424.         Byte_second = AHT20_RD_Byte();
  425.         Send_ACK();
  426.         Byte_third = AHT20_RD_Byte();
  427.         Send_NOT_ACK();
  428.         Stop_I2C();
  429.         
  430.     Delay_1ms(10);//延时10ms左右
  431.         I2C_Start();
  432.         AHT20_WR_Byte(0x70);///
  433.         Receive_ACK();
  434.         AHT20_WR_Byte(0xB0|addr);////寄存器命令
  435.         Receive_ACK();
  436.         AHT20_WR_Byte(Byte_second);
  437.         Receive_ACK();
  438.         AHT20_WR_Byte(Byte_third);
  439.         Receive_ACK();
  440.         Stop_I2C();
  441.         
  442.         Byte_second=0x00;
  443.         Byte_third =0x00;
  444. }

  445. void AHT20_Start_Init(void)
  446. {
  447.         JH_Reset_REG(0x1b);
  448.         JH_Reset_REG(0x1c);
  449.         JH_Reset_REG(0x1e);
  450. }

  451. int32_t main(void)
  452. {
  453.     uint32_t CT_data[2];
  454.         volatile int  c1,t1;
  455.         /***********************************************************************************/
  456.         /**///①刚上电,产品芯片内部就绪需要时间,延时100~500ms,建议500ms
  457.         /***********************************************************************************/
  458.         Delay_1ms(500);
  459.         /***********************************************************************************/
  460.         /**///②上电第一次发0x71读取状态字,判断状态字是否为0x18,如果不是0x18,进行寄存器初始化
  461.         /***********************************************************************************/
  462.         if((AHT20_Read_Status()&0x18)!=0x18)
  463.         {
  464.         AHT20_Start_Init(); //重新初始化寄存器
  465.         Delay_1ms(10);
  466.         }
  467.         
  468.         /***********************************************************************************/
  469.         /**///③根据客户自己需求发测量命令读取温湿度数据,当前while(1)循环发测量命令读取温湿度数据,仅供参考
  470.         /***********************************************************************************/
  471.         while(1)
  472.         {
  473.          AHT20_Read_CTdata(CT_data);       //不经过CRC校验,直接读取AHT20的温度和湿度数据    推荐每隔大于1S读一次
  474.     //AHT20_Read_CTdata_crc(CT_data);  //crc校验后,读取AHT20的温度和湿度数据
  475.         

  476.          c1 = CT_data[0]*100*10/1024/1024;  //计算得到湿度值c1(放大了10倍)
  477.          t1 = CT_data[1]*200*10/1024/1024-500;//计算得到温度值t1(放大了10倍)
  478.         ////下一步客户处理显示数据,
  479.          }

  480. }        
复制代码
  1. #ifndef _AHT20_DEMO_
  2. #define _AHT20_DEMO_

  3. #include "stm32f10x.h"  

  4. void Delay_N10us(uint32_t t);//延时函数
  5. void SensorDelay_us(uint32_t t);//延时函数
  6. void Delay_4us(void);                //延时函数
  7. void Delay_5us(void);                //延时函数
  8. void Delay_1ms(uint32_t t);        
  9. void AHT20_Clock_Init(void);                //延时函数
  10. void SDA_Pin_Output_High(void)  ; //将PB15配置为输出 , 并设置为高电平, PB15作为I2C的SDA
  11. void SDA_Pin_Output_Low(void);  //将P15配置为输出  并设置为低电平
  12. void SDA_Pin_IN_FLOATING(void);  //SDA配置为浮空输入

  13. void SCL_Pin_Output_High(void); //SCL输出高电平,P14作为I2C的SCL
  14. void SCL_Pin_Output_Low(void); //SCL输出低电平
  15. void Init_I2C_Sensor_Port(void); //初始化I2C接口,输出为高电平
  16. void I2C_Start(void);                 //I2C主机发送START信号
  17. void AHT20_WR_Byte(uint8_t Byte); //往AHT20写一个字节
  18. uint8_t AHT20_RD_Byte(void);//从AHT20读取一个字节
  19. uint8_t Receive_ACK(void);   //看AHT20是否有回复ACK
  20. void Send_ACK(void)        ;          //主机回复ACK信号
  21. void Send_NOT_ACK(void);        //主机不回复ACK
  22. void Stop_I2C(void);          //一条协议结束
  23. uint8_t AHT20_Read_Status(void);//读取AHT20的状态寄存器
  24. uint8_t AHT20_Read_Cal_Enable(void);  //查询cal enable位有没有使能
  25. void AHT20_SendAC(void); //向AHT20发送AC命令
  26. uint8_t Calc_CRC8(uint8_t *message,uint8_t Num);
  27. void AHT20_Read_CTdata(uint32_t *ct); //没有CRC校验,直接读取AHT20的温度和湿度数据
  28. void AHT20_Read_CTdata_crc(uint32_t *ct); //CRC校验后,读取AHT20的温度和湿度数据
  29. void AHT20_Init(void);   //初始化AHT20
  30. void JH_Reset_REG(uint8_t addr);///重置寄存器
  31. void AHT20_Start_Init(void);///上电初始化进入正常测量状态
复制代码

评分

参与人数 1黑币 +50 收起 理由
admin + 50 共享资料的黑币奖励!

查看全部评分

回复

使用道具 举报

ID:87063 发表于 2022-6-27 16:14 | 显示全部楼层
亲测可以用,非常棒!!!!!!!!!
回复

使用道具 举报

ID:87063 发表于 2022-6-27 16:15 | 显示全部楼层
移植非常方便,完美!
回复

使用道具 举报

ID:87063 发表于 2022-6-27 16:16 | 显示全部楼层
亲测可以用,方便移植程序,非常棒!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表