Merge remote-tracking branch 'refs/remotes/origin/main'

# Conflicts:
#	source/main.c
This commit is contained in:
neon443 committed 2025-08-11 04:41:08 -04:00
commit 10ddfa0825
1 file changed
+9
+9
View File
@@ -68,6 +68,15 @@ void takePicture(u8 *buf) {
CAMU_Activate(SELECT_NONE);
}
void getColor(void *fb, int row, int col) {
u8 *fb_8 = (u8*) fb;
u32 v = ((HEIGHT - col) + (row*HEIGHT)) * 3;
uint8_t r = fb_8[v];
uint8_t g = fb_8[v+1];
uint8_t b = fb_8[v+2];
printf("\n---RGB2---%u %u %u\n", r, g, b);
}
int main(int argc, char* argv[])
{
u8 *buf = malloc(BUFSIZE);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.