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.
handle/handleCamera.h@6:f0248eb6714d, 2014-04-03 (annotated)
- Committer:
- dylanembed123
- Date:
- Thu Apr 03 16:27:23 2014 +0000
- Revision:
- 6:f0248eb6714d
- Parent:
- 4:c75d5e5e6bfc
Fix compile errors;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 4:c75d5e5e6bfc | 1 | #ifndef _TAKEIMAGE_H_ |
dylanembed123 | 4:c75d5e5e6bfc | 2 | #define _TAKEIMAGE_H_ |
dylanembed123 | 4:c75d5e5e6bfc | 3 | |
dylanembed123 | 4:c75d5e5e6bfc | 4 | #include "adapt/usb.h" |
dylanembed123 | 4:c75d5e5e6bfc | 5 | #include "adapt/camera.h" |
dylanembed123 | 6:f0248eb6714d | 6 | #include <algorithm> |
dylanembed123 | 4:c75d5e5e6bfc | 7 | class ImageHandle{ |
dylanembed123 | 4:c75d5e5e6bfc | 8 | private: |
dylanembed123 | 4:c75d5e5e6bfc | 9 | Camera cam; |
dylanembed123 | 4:c75d5e5e6bfc | 10 | bool initialized; |
dylanembed123 | 4:c75d5e5e6bfc | 11 | |
dylanembed123 | 4:c75d5e5e6bfc | 12 | /// \brief Setup the camera. |
dylanembed123 | 4:c75d5e5e6bfc | 13 | void setup(); |
dylanembed123 | 4:c75d5e5e6bfc | 14 | /// \brief Take an image and send it over USB |
dylanembed123 | 4:c75d5e5e6bfc | 15 | void take(); |
dylanembed123 | 4:c75d5e5e6bfc | 16 | /// \brief Check if an image must be taken |
dylanembed123 | 4:c75d5e5e6bfc | 17 | bool check(); |
dylanembed123 | 4:c75d5e5e6bfc | 18 | public: |
dylanembed123 | 4:c75d5e5e6bfc | 19 | /// \brief Constructor |
dylanembed123 | 4:c75d5e5e6bfc | 20 | ImageHandle():initialized(false){} |
dylanembed123 | 4:c75d5e5e6bfc | 21 | /// \brief Run an instance of this |
dylanembed123 | 4:c75d5e5e6bfc | 22 | void run(); |
dylanembed123 | 4:c75d5e5e6bfc | 23 | }; |
dylanembed123 | 4:c75d5e5e6bfc | 24 | |
dylanembed123 | 4:c75d5e5e6bfc | 25 | #endif |