久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费
標題:
bc26 NBiot模塊原理圖pcb源碼
[打印本頁]
作者:
zhangsmart1101
時間:
2024-8-21 15:27
標題:
bc26 NBiot模塊原理圖pcb源碼
51hei.png
(13.02 KB, 下載次數: 10)
下載附件
2024-8-23 00:45 上傳
#include "main.h"
#include "usart.h"
#include "timer.h"
#include "BC26.h"
#include "led.h"
#include "SMP.h"
#include "systempz.h"
GPIO_InitTypeDef GPIO_InitStructure;
static __IO uint32_t TimingDelay;
extern int err;
//***與服務器進行交互,模塊可以通過UDP方式傳數據到服務器端,服務器也可以支持下發數據到設備端進行顯示打印*****************/
/* Private function prototypes -----------------------------------------------*/
void Delay(__IO uint32_t nTime);
/** @addtogroup Template_Project
* @{
*/
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
if (SysTick_Config(SystemCoreClock / 1000))//設置24bit定時器 1ms中斷一次
{
/* Capture error */
while (1);
}
LED_Init();
uart1_init(115200);
uart2_init(115200);
uart3_init(115200);
printf("\r\n ############ ############\r\n ############("__DATE__ " - " __TIME__ ")############");
////////液晶屏的顯示驅動//////
GPIO_Configuration();
printf("INIT EINK EINK GPIO\r\n");
MYRESET(); // 電子紙控制器硬件復位
printf("EINK LCD RESET..\r\n");
READBUSY();
printf("EINK BUSY READ..\r\n");
INIT_SSD1673();
printf("EINK DISPLAY BMP PICTURE OK\r\n");
////////////////
Uart1_SendStr("init stm32L COM1 \r\n"); //打印信息
//Uart2_SendStr("init stm32L COM2 \r\n"); //和NBIOT連接
Uart3_SendStr("init stm32L COM3 \r\n"); //用于其他TTL或者485
while(BC26_Init());
BC26_PDPACT();
BC26_ConUDP();
while (1)
{
BC26_Senddata("15","123\r\n");//發數據
Delay(1000);
BC26_RECData();
GPIO_ToggleBits(GPIOC,GPIO_Pin_3);//翻轉LED
}
}
/**
* @brief Inserts a delay time.
* @param nTime: specifies the delay time length, in milliseconds.
* @retval None
*/
void Delay(__IO uint32_t nTime)
{
TimingDelay = nTime;
while(TimingDelay != 0);
}
/**
* @brief Decrements the TimingDelay variable.
* @param None
* @retval None
*/
void TimingDelay_Decrement(void)
{
if (TimingDelay != 0x00)
{
TimingDelay--;
}
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t line)
{
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
/* Infinite loop */
while (1)
{
}
}
#endif
/**
* @}
*/
復制代碼
還未完成,僅供參考:
bc26.7z
(1.96 MB, 下載次數: 3)
2024-8-23 00:48 上傳
點擊文件名下載附件
歡迎光臨 (http://m.zg4o1577.cn/bbs/)
Powered by Discuz! X3.1
主站蜘蛛池模板:
欧美一二
|
欧美视频三区
|
国产精品成人一区二区网站软件
|
欧美日韩亚洲一区二区
|
日日干日日射
|
国产精品久久久久久中文字
|
午夜视频在线播放
|
国产天天操
|
国产有码视频
|
精品一区二区三区三区
|
中文在线免费观看
|
www.在线播放
|
香蕉视频一区二区三区
|
性史性dvd影片农村毛片
|
亚洲超碰在线
|
日韩国产一区二区
|
日本一级片在线观看
|
国产成人91
|
五月婷婷激情综合
|
国产精品成人在线
|
亚洲一区二区三区在线视频
|
9l视频自拍九色9l视频成人
|
欧美日韩国产精品
|
欧美综合在线视频
|
91视频观看
|
青青草伊人网
|
日韩在线精品
|
欧美天天
|
91久久久久国产一区二区
|
日韩视频免费大全中文字幕
|
日韩精品视频在线
|
天堂av片
|
国产又粗又猛又黄又爽无遮挡
|
国产成人免费在线观看
|
3d动漫精品h区xxxxx区
|
日韩在线精品视频
|
国产在线小视频
|
免费一级毛片
|
国产一区二区三区免费
|
国产精品久久久一区二区
|
色呦呦国产精品
|