Added processing of the temperature sensor

This commit is contained in:
Stanislav N Mikhailov
2025-01-12 21:11:47 +03:00
parent 1726b92ae4
commit 14a1a0fcf5
6 changed files with 101 additions and 6 deletions
+3 -3
View File
@@ -21,6 +21,7 @@ int main() {
float x=0.0;
float freq=1.0;
bool minmax=false;
wchar_t buffer[100];
while (x<500)
{
data = multicore_fifo_pop_blocking();
@@ -28,9 +29,8 @@ int main() {
fillBufer(frame_buffer,reverse(0x4A69));//
grid(20,20,40,0x634d);
generate_sine_wave_points(num_points, 50, freq, 0, HEIGHT / 2,x);
draw_string(20,110,L"Кириллица работает!!!",0b1111111111111111); //
draw_string(50,130,L"Does Latin work?",0b0000000000011111); //Does Latin work?
draw_string(20,150,L"Проверка 0123456789!",0b1111100000000000); //Does Latin work?
swprintf(buffer, sizeof(buffer) / sizeof(buffer[0]), L"Value of pi: %.2f", temperature);
draw_string(20,110,buffer,0b1111111111111111); //
multicore_fifo_push_blocking(0); //Экран 0 нарисован
x+=0.03;
if (minmax)