IJFW - IchigoJamのBASICプログラムをメモリカード(MMCまたは互換カード)に保存したり読み出したりできるプログラム。メモリカードにファームウェアのファイルを置くだけで、電源ON時に自動的に書き換える機能も搭載(一応こちらがメイン)。LPC1114FN28専用。

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers I2CSlave2.h Source File

I2CSlave2.h

00001 #ifndef I2C_SLAVE2_H
00002 #define I2C_SLAVE2_H
00003 
00004 #include "mbed.h"
00005 
00006 class I2CSlave2 : public I2CSlave {
00007 public:
00008 
00009     I2CSlave2(PinName sda, PinName scl);
00010 
00011     int read(char *data, int length);
00012     int read();
00013     int write(const char *data, int length);
00014     int write(int data);
00015     void address(int address, int mask);
00016     int addressFromMaster();
00017     
00018 };
00019 
00020 #endif