2023-10-22 16:48:14 +00:00
|
|
|
/*****
|
2024-08-15 00:20:18 +00:00
|
|
|
* Copyright (c) 2024 - Poivron Robotique
|
2023-10-22 16:48:14 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
#include "pico/stdlib.h"
|
2024-08-15 00:20:18 +00:00
|
|
|
#include "Teleplot.h"
|
2023-10-22 16:48:14 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2024-08-15 00:20:18 +00:00
|
|
|
void setup(void);
|
|
|
|
void loop(void);
|
|
|
|
|
2023-10-22 16:48:14 +00:00
|
|
|
void main(void)
|
|
|
|
{
|
2024-08-15 00:20:18 +00:00
|
|
|
setup();
|
2023-10-22 16:48:14 +00:00
|
|
|
while(1){
|
2024-08-15 00:20:18 +00:00
|
|
|
loop();
|
2023-10-22 16:48:14 +00:00
|
|
|
}
|
|
|
|
}
|
2024-08-15 00:20:18 +00:00
|
|
|
|
|
|
|
void setup(void){
|
|
|
|
stdio_init_all();
|
|
|
|
Teleplot_init();
|
|
|
|
}
|
|
|
|
|
|
|
|
void loop(void){
|
|
|
|
printf("Exemple\n");
|
|
|
|
teleplot_udp_send_string("t:2");
|
|
|
|
sleep_ms(1000);
|
|
|
|
}
|