mirror of
https://github.com/stasenso/rp_pico_display_engine.git
synced 2026-06-27 05:42:41 +03:00
decomposition
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user