Pico_2CH_RS232.ino 464 B

12345678910111213141516171819
  1. #include "WS_UART.h"
  2. uint32_t Simulated_time=0; // Analog time counting
  3. uint8_t Port_Data[20] = "hello World"; // Data storage area
  4. void setup() {
  5. // put your setup code here, to run once:
  6. Extension_Init();
  7. }
  8. void loop() {
  9. // put your main code here, to run repeatedly:
  10. Extension_Loop();
  11. Simulated_time++;
  12. if(Simulated_time ==10000){
  13. Simulated_time = 0;
  14. SetData2(Port_Data,12);
  15. SetData3(Port_Data,12);
  16. }
  17. }