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.
i2c_mbed_fpga.h
- Committer:
- wuliqunyy
- Date:
- 2021-01-22
- Revision:
- 5:daab0e0e67e2
- Parent:
- 0:fe3c7dde9771
- Child:
- 6:019ab407ac3c
File content as of revision 5:daab0e0e67e2:
#ifndef I2C_MBED_FPGA_H #define I2C_MBED_FPGA_H #define i2c_slave_addr 0x18<<1 //Class delclarations class i2c_mbed_fpga { public: /*constructor*/ i2c_mbed_fpga(): i2c_master(p9, p10){ i2c_master.frequency(35000); }; int i2c_word_write(char *word); int i2c_word_read(char *word); int i2c_window_open(); int i2c_motor_start(); private: I2C i2c_master; }; #endif