taiyou komazawa
/
2017_Bteam_I2CTransporter
i2c_test
main.cpp@1:c3420082c0f7, 2017-08-18 (annotated)
- Committer:
- Komazawa_sun
- Date:
- Fri Aug 18 04:48:42 2017 +0000
- Revision:
- 1:c3420082c0f7
- Parent:
- 0:73478410a9c1
- Child:
- 2:55ba3d5a43a4
hoge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Komazawa_sun | 0:73478410a9c1 | 1 | #include "mbed.h" |
Komazawa_sun | 0:73478410a9c1 | 2 | |
Komazawa_sun | 1:c3420082c0f7 | 3 | #include "GammaTransporter.h" |
Komazawa_sun | 1:c3420082c0f7 | 4 | #include "DataPool.h" |
Komazawa_sun | 1:c3420082c0f7 | 5 | |
Komazawa_sun | 1:c3420082c0f7 | 6 | Serial pc(USBTX,USBRX); |
Komazawa_sun | 0:73478410a9c1 | 7 | |
Komazawa_sun | 0:73478410a9c1 | 8 | int main() { |
Komazawa_sun | 1:c3420082c0f7 | 9 | DataPool *gamma; |
Komazawa_sun | 1:c3420082c0f7 | 10 | gamma = new GammaTransporter; |
Komazawa_sun | 0:73478410a9c1 | 11 | while(1) { |
Komazawa_sun | 1:c3420082c0f7 | 12 | gamma->set(); |
Komazawa_sun | 1:c3420082c0f7 | 13 | pc.printf("%d\r\n",gamma->read(1)); |
Komazawa_sun | 1:c3420082c0f7 | 14 | wait(0.05); |
Komazawa_sun | 0:73478410a9c1 | 15 | } |
Komazawa_sun | 0:73478410a9c1 | 16 | } |