Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sw/sensor_config/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CC = gcc
C_FLAGS = -O3
LD_FLAGS = -lc -ljpeg -llogi

all: grab
all: conf_mt9v034

clean:
rm -f *.a *.o conf_mt9v034
Expand Down
2 changes: 1 addition & 1 deletion sw/sensor_config/conf_mt9v034_logi_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int main(int argc, char ** argv){
i2c_set_register(0x03, 480); //window height
i2c_set_register(0x01, 1); // col start
i2c_set_register(0x02, 4); //row start
i2c_set_register(0x0D, (1 << 4));
i2c_set_register(0x0D, ((1 << 4)|(1 << 5)));
i2c_set_register(0x07, ((1 << 3)|(1 << 8)|(1 << 9)));//chip control, disable parallel output, other are default
i2c_set_register(0x72, 0x0000); //sync ctrl
//i2c_set_register(0x7F, ((1 << 13) | (1 << 10) | (1 << 5))); //test pattern
Expand Down