mirror of
https://github.com/stasenso/rp_pico_display_engine.git
synced 2026-06-26 21:32:41 +03:00
9 lines
297 B
C
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;
|
|
}
|
|
}
|