AD5272.h@0:0af3d83fc568, 2017-05-11 (annotated)
- Committer:
- hamzaaday
- Date:
- Thu May 11 16:48:58 2017 +0000
- Revision:
- 0:0af3d83fc568
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hamzaaday | 0:0af3d83fc568 | 1 | |
hamzaaday | 0:0af3d83fc568 | 2 | #include "mbed.h" |
hamzaaday | 0:0af3d83fc568 | 3 | |
hamzaaday | 0:0af3d83fc568 | 4 | |
hamzaaday | 0:0af3d83fc568 | 5 | |
hamzaaday | 0:0af3d83fc568 | 6 | class AD5272 { |
hamzaaday | 0:0af3d83fc568 | 7 | public: |
hamzaaday | 0:0af3d83fc568 | 8 | AD5272(PinName sda, PinName scl); |
hamzaaday | 0:0af3d83fc568 | 9 | void initPot(); |
hamzaaday | 0:0af3d83fc568 | 10 | unsigned short getPot(); |
hamzaaday | 0:0af3d83fc568 | 11 | void setPot(unsigned short); |
hamzaaday | 0:0af3d83fc568 | 12 | |
hamzaaday | 0:0af3d83fc568 | 13 | |
hamzaaday | 0:0af3d83fc568 | 14 | private: |
hamzaaday | 0:0af3d83fc568 | 15 | I2C i2c; |
hamzaaday | 0:0af3d83fc568 | 16 | int addresse; |
hamzaaday | 0:0af3d83fc568 | 17 | }; |
hamzaaday | 0:0af3d83fc568 | 18 | |
hamzaaday | 0:0af3d83fc568 | 19 | |
hamzaaday | 0:0af3d83fc568 | 20 |