Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MARY_CAMERA NokiaLCD mbed
Diff: main.cpp
- Revision:
- 6:f5b4e088087b
- Parent:
- 4:5e1828a8e238
- Child:
- 7:380026dd09fd
diff -r 5e1828a8e238 -r f5b4e088087b main.cpp --- a/main.cpp Fri Feb 14 14:20:08 2014 +0000 +++ b/main.cpp Mon Feb 17 05:57:33 2014 +0000 @@ -4,21 +4,23 @@ MARMEX_OB_oled oled1( p5, p7, p20, p16, p15 ); // mosi, sclk, cs, rst, power_control -- maple-mini-type-b-slot1 -MARY_CAMERA camera( p5, p6, p7, p22, p9, p26, p28, p27 ); // mosi, miso, sclk, cs, vsync, reset, I2C_SDA, I2C_SCL +MARY_CAMERA camera( p5, p6, p7, p22, p26, p28, p27 ); // mosi, miso, sclk, cs, reset, I2C_SDA, I2C_SCL +BusOut led( LED3, LED4 ); #define X_OFFSET 24 #define Y_OFFSET 8 int main() { + led = 0x3; + oled1.cls(); short buf[ 128 ]; - camera.init(); - - printf( "init done\r\n" ); while ( 1 ) { + + led = 0x1; camera.open_transfer(); for ( int line = 0; line < 128; line++ ) { @@ -27,5 +29,8 @@ } camera.close_transfer(); + led = 0x2; + wait_ms( 1 ); } } +