Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
furrtek committed Nov 1, 2015
1 parent 2137cd2 commit 63db839
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 1 deletion.
Binary file modified Release/GBCamcorder.bin
Binary file not shown.
Binary file added bitmaps/icon_camnok.bmp
Binary file not shown.
Binary file added bitmaps/icon_camok.bmp
Binary file not shown.
Binary file added bitmaps/icon_rec.bmp
Binary file not shown.
Binary file added bitmaps/icon_sdnok.bmp
Binary file not shown.
Binary file added bitmaps/icon_sdok.bmp
Binary file not shown.
Binary file added case/shell1.SLDPRT
Binary file not shown.
Binary file added case/shell1.STL
Binary file not shown.
Binary file added schematic.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion src/main.c
Expand Up @@ -243,6 +243,7 @@ int main(void) {
// Init SD FAT
FCLK_SLOW();
if (f_mount(&FatFs, "", 1) == FR_OK) {
//for(;;) LPC_GPIO1->DATA ^= (1<<5); // Red LED
can_record = 1;
FCLK_LCD();
lcd_paint(16, 10, icon_sdok);
Expand Down Expand Up @@ -325,7 +326,7 @@ int main(void) {
while(!(gbcam_get(0xA000) & 1)); // Could freeze !

// Auto-exposure (progressive): 128*112*3 (all pixels white) /2 = 21504
exposure_diff = ((21504 - mean) >> 7);
exposure_diff = ((21504 - mean) >> 9);

// Cap and alert
if ((int32_t)exposure + exposure_diff > MAX_EXPOSURE) {
Expand Down

0 comments on commit 63db839

Please sign in to comment.