uart_init(BIT_RATE_115200, BIT_RATE_115200);uart0_sendStr("\r\nesp8266 ws2812 driver\r\n");// int opm = wifi_get_opmode();// if( opm == 1 ) need_to_switch_opmode = 120;// wifi_set_opmode_current(2);//Uncomment this to force a system restore.// system_restore();CSSetti...
UART0是串口,Send是发送,Str即是string字符串 这个函数是用串口发送字符串的意思
pthread_create (&quitOut_thread, NULL, quitOutThead, NULL );inti =0;while(1) {if( workMode == SENDWORKMODE || workMode ==SENDANDRECVWORKMODE ) { sprintf ( sendString,"%03d: %s\r\n", i++, argv[4] ); uart_send ( serial_fd, sendString, strlen ( sendString ) ); } usleep (...