/*
* LAB Name: Raspberry Pi Pico Serial Plotter (C/C++ SDK)
* Author: Khaled Magdy
* For More Info Visit: www.DeepBlueMbedded.com
*/
#include <stdio.h>
#include "pico/stdlib.h"
#include "math.h"
#define PI 3.1415926
int i = 0;
int main()
{
stdio_init_all();
while (1)
{
for (i = 0; i < 360; i += 1)
{
float Sine1 = 100 * sin(i * PI / 180);
float Sine2 = 75 * sin((i+120) * PI / 180);
float Sine3 = 50 * sin((i+240) * PI / 180);
printf("%f,%f,%f\n", Sine1, Sine2, Sine3);
sleep_ms(10);
}
}
}