Files
rp_pico_test/SetPixel.c
T
Stanislav N Mikhailov e89eb58de4 decomposition
2025-01-02 00:12:20 +03:00

9 lines
297 B
C

#include "SetPixel.h"
#include "Thread.h"
// Установка пикселя в буфере (с проверкой границ)
void set_pixel(uint16_t x, uint16_t y, uint16_t color) {
if (x >= 0 && x < WIDTH && y >= 0 && y < HEIGHT) {
frame_buffer[y * WIDTH + x] = color;
}
}