Skip to content

Commit

Permalink
Merge pull request #276 from brilliantlabsAR/camera-power-saving
Browse files Browse the repository at this point in the history
Camera dphy power saving
  • Loading branch information
siliconwitch authored Oct 8, 2024
2 parents 08f3344 + 402b7ea commit 05037a1
Show file tree
Hide file tree
Showing 6 changed files with 23,316 additions and 23,359 deletions.
3 changes: 3 additions & 0 deletions source/application/lua_libraries/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ static int lua_camera_power_save(lua_State *L)
check_error(i2c_write(CAMERA, 0x3659, 0xFF, 0xFF).fail);
check_error(i2c_write(CAMERA, 0x365A, 0xFF, 0xFF).fail);
check_error(i2c_write(CAMERA, 0x308B, 0xFF, 0x01).fail);
spi_write(FPGA, 0x28, (uint8_t *)"\x01", 1);
}
else
{
Expand All @@ -693,8 +694,10 @@ static int lua_camera_power_save(lua_State *L)
check_error(i2c_write(CAMERA, 0x365A, 0xFF, 0x02).fail);
check_error(i2c_write(CAMERA, 0x308B, 0xFF, 0x00).fail);
check_error(i2c_write(CAMERA, 0x0100, 0xFF, 0x01).fail);
spi_write(FPGA, 0x28, (uint8_t *)"\x00", 1);
camera_is_asleep = false;
}

return 0;
}

Expand Down
Loading

0 comments on commit 05037a1

Please sign in to comment.