first publish
Dependents: eeprom_test eeprom_test MCP3204_test
24LC1025.h@0:8047024a08c2, 2019-11-20 (annotated)
- Committer:
- sashida_h
- Date:
- Wed Nov 20 03:55:16 2019 +0000
- Revision:
- 0:8047024a08c2
- Child:
- 1:41cf2e3bb7f3
initial commit; ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sashida_h | 0:8047024a08c2 | 1 | #include "mbed.h" |
sashida_h | 0:8047024a08c2 | 2 | // 24LC64 の書き込み、読み込みテスト |
sashida_h | 0:8047024a08c2 | 3 | |
sashida_h | 0:8047024a08c2 | 4 | class I2CEEprom : public I2C |
sashida_h | 0:8047024a08c2 | 5 | { |
sashida_h | 0:8047024a08c2 | 6 | private: |
sashida_h | 0:8047024a08c2 | 7 | unsigned char addr; |
sashida_h | 0:8047024a08c2 | 8 | public: |
sashida_h | 0:8047024a08c2 | 9 | I2CEEprom(); |
sashida_h | 0:8047024a08c2 | 10 | I2CEEprom(PinName data, PinName clock, int address); |
sashida_h | 0:8047024a08c2 | 11 | void write(unsigned int address, unsigned char data); |
sashida_h | 0:8047024a08c2 | 12 | unsigned char read(unsigned int address); |
sashida_h | 0:8047024a08c2 | 13 | }; |