![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Dependencies: Hepta2_9axis HeptaBattery Hepta_Serial HeptaTemp HeptaXbee SDHCFileSystem mbed
Fork of HEPTA2_ALL by
main.cpp
- Committer:
- hepta2ume
- Date:
- 2017-07-19
- Revision:
- 1:890188e041da
- Parent:
- 0:0482779cd78e
- Child:
- 2:726072016da1
File content as of revision 1:890188e041da:
#include "mbed.h" #include "SDHCFileSystem.h" #include "HeptaSerial.h" #define USE_JPEG_HIGH_RESOLUTION 1 //static const int CAPTURE_FRAMES = 3; //static char buf[256+1]; //static FILE *fp_jpeg; SDFileSystem sd(p5, p6, p7, p8, "fs"); HeptaSerial camera(p13, p14); DigitalOut AS2(p25);//CAM_control DigitalOut AS1(p24);//GPS_control int main() { AS1 = 0; AS2=1; printf("\r\n"); printf("==========\r\n"); printf("CameraC1098\r\n"); printf("==========\r\n"); camera.Sync();//Synchronization camera.initialize(HeptaSerial::Baud115200, HeptaSerial::JpegResolution320x240);//initialize camera.test_jpeg_snapshot_data(); return 0; }