久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 791|回復: 0
打印 上一主題 下一主題
收起左側

bc26 NBiot模塊原理圖pcb源碼

[復制鏈接]
跳轉到指定樓層
樓主
ID:312272 發(fā)表于 2024-8-21 15:27 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式


  1. #include "main.h"
  2. #include "usart.h"
  3. #include "timer.h"
  4. #include "BC26.h"
  5. #include "led.h"
  6. #include "SMP.h"
  7. #include "systempz.h"
  8. GPIO_InitTypeDef GPIO_InitStructure;
  9. static __IO uint32_t TimingDelay;
  10. extern int err;
  11. //***與服務器進行交互,模塊可以通過UDP方式傳數(shù)據(jù)到服務器端,服務器也可以支持下發(fā)數(shù)據(jù)到設備端進行顯示打印*****************/
  12.         /* Private function prototypes -----------------------------------------------*/
  13.         void Delay(__IO uint32_t nTime);
  14. /** @addtogroup Template_Project
  15.   * @{
  16.   */

  17. /**
  18.   * @brief  Main program.
  19.   * @param  None
  20.   * @retval None
  21.   */
  22. int main(void)
  23. {
  24.     if (SysTick_Config(SystemCoreClock / 1000))//設置24bit定時器 1ms中斷一次
  25.     {
  26.         /* Capture error */
  27.         while (1);
  28.     }
  29.     LED_Init();
  30.     uart1_init(115200);
  31.     uart2_init(115200);
  32.     uart3_init(115200);
  33.     printf("\r\n ############  ############\r\n ############("__DATE__ " - " __TIME__ ")############");
  34.     ////////液晶屏的顯示驅動//////
  35.     GPIO_Configuration();
  36.     printf("INIT EINK EINK GPIO\r\n");
  37.     MYRESET();                   // 電子紙控制器硬件復位
  38.     printf("EINK LCD RESET..\r\n");
  39.     READBUSY();
  40.     printf("EINK BUSY READ..\r\n");
  41.     INIT_SSD1673();
  42.     printf("EINK DISPLAY BMP PICTURE OK\r\n");
  43.     ////////////////

  44.     Uart1_SendStr("init stm32L COM1 \r\n"); //打印信息
  45.     //Uart2_SendStr("init stm32L COM2 \r\n"); //和NBIOT連接
  46.     Uart3_SendStr("init stm32L COM3 \r\n"); //用于其他TTL或者485
  47.     while(BC26_Init());
  48.     BC26_PDPACT();
  49.     BC26_ConUDP();

  50.     while (1)
  51.     {
  52.         BC26_Senddata("15","123\r\n");//發(fā)數(shù)據(jù)
  53.         Delay(1000);
  54.         BC26_RECData();
  55.         GPIO_ToggleBits(GPIOC,GPIO_Pin_3);//翻轉LED  
  56.         
  57.     }
  58. }




  59. /**
  60.   * @brief  Inserts a delay time.
  61.   * @param  nTime: specifies the delay time length, in milliseconds.
  62.   * @retval None
  63.   */
  64. void Delay(__IO uint32_t nTime)
  65. {
  66.     TimingDelay = nTime;

  67.     while(TimingDelay != 0);
  68. }

  69. /**
  70.   * @brief  Decrements the TimingDelay variable.
  71.   * @param  None
  72.   * @retval None
  73.   */
  74. void TimingDelay_Decrement(void)
  75. {
  76.     if (TimingDelay != 0x00)
  77.     {
  78.         TimingDelay--;
  79.     }
  80. }
  81. #ifdef  USE_FULL_ASSERT

  82. /**
  83.   * @brief  Reports the name of the source file and the source line number
  84.   *         where the assert_param error has occurred.
  85.   * @param  file: pointer to the source file name
  86.   * @param  line: assert_param error line source number
  87.   * @retval None
  88.   */
  89. void assert_failed(uint8_t* file, uint32_t line)
  90. {
  91.     /* User can add his own implementation to report the file name and line number,
  92.      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  93.     /* Infinite loop */
  94.     while (1)
  95.     {
  96.     }
  97. }
  98. #endif

  99. /**
  100.   * @}
  101.   */
復制代碼

還未完成,僅供參考: bc26.7z (1.96 MB, 下載次數(shù): 3)
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 午夜在线视频观看日韩17c | 日本黄色免费 | 久操福利视频 | 天堂中文资源在线 | 九九热在线观看 | 欧美视频区| 日韩精品在线观看视频 | 亚洲激情在线播放 | 性欧美69| 亚洲国产精品一区二区三区 | 天天爽天天干 | 日韩少妇视频 | 久操国产 | 国产欧美激情 | 成人激情在线 | 黄色网址视频 | 久久999 | 国产区视频在线观看 | 成人黄色小视频 | av老司机在线 | 国产免费无遮挡 | 午夜视频网| 中文字幕av在线 | 一区视频 | 国产麻豆91| 99在线视频观看 | 天天色视频| 色妞网站 | 夜夜骑夜夜操 | 99精品网站 | 在线观看欧美日韩视频 | 精品视频久久 | 午夜免费av | 青草av在线 | 999国产视频| 亚洲欧美日本在线 | 国产精品美女久久久 | www久久久| 亚洲黄色三级 | 谁有毛片网址 | 日韩一区二区免费视频 |