![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Hepta_CAM&GPS
Dependencies: FatFileSystem HeptaSerial mbed
Fork of CameraC1098_Sample by
main.cpp@1:890188e041da, 2017-07-19 (annotated)
- Committer:
- hepta2ume
- Date:
- Wed Jul 19 09:25:34 2017 +0000
- Revision:
- 1:890188e041da
- Parent:
- 0:0482779cd78e
Hepta2_Cam&GPS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sunifu | 0:0482779cd78e | 1 | |
sunifu | 0:0482779cd78e | 2 | #include "mbed.h" |
hepta2ume | 1:890188e041da | 3 | #include "SDHCFileSystem.h" |
hepta2ume | 1:890188e041da | 4 | #include "HeptaSerial.h" |
sunifu | 0:0482779cd78e | 5 | #define USE_JPEG_HIGH_RESOLUTION 1 |
sunifu | 0:0482779cd78e | 6 | |
hepta2ume | 1:890188e041da | 7 | //static const int CAPTURE_FRAMES = 3; |
hepta2ume | 1:890188e041da | 8 | //static char buf[256+1]; |
hepta2ume | 1:890188e041da | 9 | //static FILE *fp_jpeg; |
sunifu | 0:0482779cd78e | 10 | |
hepta2ume | 1:890188e041da | 11 | SDFileSystem sd(p5, p6, p7, p8, "fs"); |
hepta2ume | 1:890188e041da | 12 | HeptaSerial camera(p13, p14); |
hepta2ume | 1:890188e041da | 13 | DigitalOut AS2(p25);//CAM_control |
hepta2ume | 1:890188e041da | 14 | DigitalOut AS1(p24);//GPS_control |
sunifu | 0:0482779cd78e | 15 | |
sunifu | 0:0482779cd78e | 16 | int main() { |
hepta2ume | 1:890188e041da | 17 | AS1 = 0; |
hepta2ume | 1:890188e041da | 18 | AS2=1; |
sunifu | 0:0482779cd78e | 19 | printf("\r\n"); |
sunifu | 0:0482779cd78e | 20 | printf("==========\r\n"); |
sunifu | 0:0482779cd78e | 21 | printf("CameraC1098\r\n"); |
sunifu | 0:0482779cd78e | 22 | printf("==========\r\n"); |
hepta2ume | 1:890188e041da | 23 | camera.Sync();//Synchronization |
hepta2ume | 1:890188e041da | 24 | camera.initialize(HeptaSerial::Baud115200, HeptaSerial::JpegResolution320x240);//initialize |
hepta2ume | 1:890188e041da | 25 | camera.test_jpeg_snapshot_data(); |
sunifu | 0:0482779cd78e | 26 | |
sunifu | 0:0482779cd78e | 27 | return 0; |
sunifu | 0:0482779cd78e | 28 | } |