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.
Camera.h
00001 #ifndef _CAMERA_H 00002 #define _CAMERA_H 00003 00004 #include "mbed.h" 00005 00006 //La periode de clk doit etre dans 0.5us - 200us 00007 //Le parametre periode passé en paramètre ds le constructeur et le setter corresponds a 1/4 de la période de la CLK!! 00008 00009 class Camera 00010 { 00011 public: 00012 Camera(PinName pin_si, PinName pin_clk, PinName pin_ao, int periode_us); 00013 void capture(unsigned short *valeurs); 00014 void setPeriod(int periode); 00015 private: 00016 int periode; 00017 00018 AnalogIn ao; 00019 DigitalOut clk; 00020 DigitalOut si; 00021 }; 00022 00023 #endif
Generated on Wed Jul 13 2022 20:35:19 by
1.7.2