hautot hautot
/
carte_mesure
CNA ltc1655 et adg715
branche_capt.h@0:fbc63633ebee, 2015-06-10 (annotated)
- Committer:
- denishautot
- Date:
- Wed Jun 10 07:20:17 2015 +0000
- Revision:
- 0:fbc63633ebee
Projet sts2 lycee victor hugo Besesancon
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
denishautot | 0:fbc63633ebee | 1 | int branche_capteur (char num_capteur) |
denishautot | 0:fbc63633ebee | 2 | { |
denishautot | 0:fbc63633ebee | 3 | char data[1]; |
denishautot | 0:fbc63633ebee | 4 | data[0]=0x03; |
denishautot | 0:fbc63633ebee | 5 | const int addr = 0x90; |
denishautot | 0:fbc63633ebee | 6 | i2c.write( addr, data,1); |
denishautot | 0:fbc63633ebee | 7 | } |