mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
put yuv mode into the ov2640 driver directly
This commit is contained in:
parent
19e9bcb104
commit
d7aafc6c50
1 changed files with 4 additions and 0 deletions
|
|
@ -155,6 +155,10 @@ impl Ov2640 {
|
||||||
}
|
}
|
||||||
self.resolution = resolution;
|
self.resolution = resolution;
|
||||||
|
|
||||||
|
// Setup YUV output mode
|
||||||
|
self.poke(&mut i2c, 0xFF, 0x00);
|
||||||
|
self.poke(&mut i2c, 0xDA, 0x01); // YUV LE
|
||||||
|
|
||||||
// set sync polarity
|
// set sync polarity
|
||||||
let vsync_pol = 0;
|
let vsync_pol = 0;
|
||||||
let hsync_pol = match resolution {
|
let hsync_pol = match resolution {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue