SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
Diff: Hardwares/ArduCAM.h
- Revision:
- 40:be98219930e4
- Parent:
- 38:0fb273b28cee
- Child:
- 41:7b21c5e3599e
diff -r 218012c00cb6 -r be98219930e4 Hardwares/ArduCAM.h --- a/Hardwares/ArduCAM.h Wed Mar 22 21:54:31 2017 +0000 +++ b/Hardwares/ArduCAM.h Wed Mar 22 23:43:24 2017 +0000 @@ -58,12 +58,14 @@ #define ARDUCHIP_CAP_CTRL 0x01 //Capture Control Register -#define ARDUCHIP_MODE 0x02 //Mode register -//#define MCU2LCD_MODE 0x00 -//#define CAM2LCD_MODE 0x01 -#define MCU2LCD_MODE 0x01 -#define CAM2LCD_MODE 0x02 -//#define LCD2MCU_MODE 0x04 +#if defined(ARDUCAM_SHIELD) + #define ARDUCHIP_MODE 0x02 //Mode register + //#define MCU2LCD_MODE 0x00 + //#define CAM2LCD_MODE 0x01 + #define MCU2LCD_MODE 0x01 + #define CAM2LCD_MODE 0x02 + //#define LCD2MCU_MODE 0x04 +#endif #define ARDUCHIP_FIFO 0x04 //FIFO and I2C control #define FIFO_CLEAR_MASK 0x01 @@ -80,8 +82,6 @@ bool ardu_cam_init(); -void ardu_cam_set_mode(uint8_t mode); - void ardu_cam_start_capture(); uint32_t ardu_cam_get_fifo_length();