This is an digital video camera program using NKK\'s oLED swtich and 4D Systems\' uCam serial camera. It takes image from the uCam and displays on the IS-C15 switch. Some image processing demos are included. This program uses FatFileSytem, SDFileSystem, and TextLCD library. See http://www.youtube.com/watch?v=fqHTaCRHyQs for how it works. CQ出版社の「mbed/ARM活用事例」第10章シリアル接続カメラと有機ELディスプレイ内蔵スイッチで作るmbedディジタル・カメラの作例です。動作の様子は http://www.youtube.com/watch?v=fqHTaCRHyQs で見れます。

Dependencies:   TextLCD mbed SDFileSystem

Committer:
non
Date:
Thu Oct 13 02:41:04 2011 +0000
Revision:
2:0621feb3adf2
Parent:
0:07d02a20d1cc

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
non 0:07d02a20d1cc 1 /* mbed NKK IS-C15/C01 oLED switch library
non 0:07d02a20d1cc 2 * Copyright (c) 2011, Noriaki Mitsunaga
non 0:07d02a20d1cc 3 *
non 0:07d02a20d1cc 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
non 0:07d02a20d1cc 5 * of this software and associated documentation files (the "Software"), to deal
non 0:07d02a20d1cc 6 * in the Software without restriction, including without limitation the rights
non 0:07d02a20d1cc 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
non 0:07d02a20d1cc 8 * copies of the Software, and to permit persons to whom the Software is
non 0:07d02a20d1cc 9 * furnished to do so, subject to the following conditions:
non 0:07d02a20d1cc 10 *
non 0:07d02a20d1cc 11 * The above copyright notice and this permission notice shall be included in
non 0:07d02a20d1cc 12 * all copies or substantial portions of the Software.
non 0:07d02a20d1cc 13 *
non 0:07d02a20d1cc 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
non 0:07d02a20d1cc 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
non 0:07d02a20d1cc 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
non 0:07d02a20d1cc 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
non 0:07d02a20d1cc 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
non 0:07d02a20d1cc 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
non 0:07d02a20d1cc 20 * THE SOFTWARE.
non 0:07d02a20d1cc 21 */
non 0:07d02a20d1cc 22 #ifndef __ISC15_H__
non 0:07d02a20d1cc 23 #define __ISC15_H__
non 0:07d02a20d1cc 24
non 0:07d02a20d1cc 25 #include "mbed.h"
non 0:07d02a20d1cc 26
non 0:07d02a20d1cc 27 #define ISC15_DEVICE_ISC01 0
non 0:07d02a20d1cc 28 #define ISC15_DEVICE_ISC15 1
non 0:07d02a20d1cc 29
non 0:07d02a20d1cc 30 #define ISC15_DSPMODE_256 0
non 0:07d02a20d1cc 31 #define ISC15_DSPMODE_64K 1
non 0:07d02a20d1cc 32
non 0:07d02a20d1cc 33 #define ISC15_WIDTH 64
non 0:07d02a20d1cc 34 #define ISC15_HEIGHT 48
non 0:07d02a20d1cc 35
non 0:07d02a20d1cc 36 class ISC15 {
non 0:07d02a20d1cc 37 public:
non 0:07d02a20d1cc 38 ISC15( PinName cs, PinName reset, PinName dc, PinName vcc )
non 0:07d02a20d1cc 39 : is_cs(cs), is_reset(reset), is_dc(dc), is_vcc(vcc) {
non 0:07d02a20d1cc 40 DevType = 1;
non 0:07d02a20d1cc 41 spi = NULL;
non 0:07d02a20d1cc 42 }
non 0:07d02a20d1cc 43 void Cls() {
non 0:07d02a20d1cc 44 Fill(0);
non 0:07d02a20d1cc 45 };
non 0:07d02a20d1cc 46 void Disp( int Mode, const unsigned char *dat );
non 0:07d02a20d1cc 47 void Fill( unsigned char c );
non 0:07d02a20d1cc 48 void Init( int DeviceType, SPI *s );
non 0:07d02a20d1cc 49
non 0:07d02a20d1cc 50 private:
non 0:07d02a20d1cc 51 DigitalOut is_cs, is_reset, is_dc, is_vcc;
non 0:07d02a20d1cc 52 int DevType; // 0:ISC01, 1:ISC15
non 0:07d02a20d1cc 53 SPI *spi;
non 0:07d02a20d1cc 54
non 0:07d02a20d1cc 55 void AdrInit( int DevType );
non 0:07d02a20d1cc 56 void DspMode( int DspMode_ );
non 0:07d02a20d1cc 57 void Send( const unsigned char *p, int len );
non 0:07d02a20d1cc 58 void SendCommand( const unsigned char *com );
non 0:07d02a20d1cc 59 void SendData( const unsigned char *dat, int len );
non 0:07d02a20d1cc 60 };
non 0:07d02a20d1cc 61 #endif