ttt ko
/
NRP2020_main_1_29
aa
main.cpp@0:db8d4af513c0, 2020-01-20 (annotated)
- Committer:
- M_souta
- Date:
- Mon Jan 20 08:46:24 2020 +0000
- Revision:
- 0:db8d4af513c0
- Child:
- 1:5b0303768126
jjjjjj
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
M_souta | 0:db8d4af513c0 | 1 | #include "mbed.h" |
M_souta | 0:db8d4af513c0 | 2 | #include "Motor.h" |
M_souta | 0:db8d4af513c0 | 3 | #include "MCP.h" |
M_souta | 0:db8d4af513c0 | 4 | #include "XBee.h" |
M_souta | 0:db8d4af513c0 | 5 | |
M_souta | 0:db8d4af513c0 | 6 | #define SDA PB_7 |
M_souta | 0:db8d4af513c0 | 7 | #define SCL PB_6 |
M_souta | 0:db8d4af513c0 | 8 | #define MCP_ADDRESS 0x40 |
M_souta | 0:db8d4af513c0 | 9 | |
M_souta | 0:db8d4af513c0 | 10 | MCP MCP(SDA, SCL, MCP_ADDRESS); |
M_souta | 0:db8d4af513c0 | 11 | |
M_souta | 0:db8d4af513c0 | 12 | XBEE::ControllerData *controller; |
M_souta | 0:db8d4af513c0 | 13 | |
M_souta | 0:db8d4af513c0 | 14 | int main() { |
M_souta | 0:db8d4af513c0 | 15 | |
M_souta | 0:db8d4af513c0 | 16 | while(1) { |
M_souta | 0:db8d4af513c0 | 17 | controller = XBEE::Controller::GetData(); |
M_souta | 0:db8d4af513c0 | 18 | |
M_souta | 0:db8d4af513c0 | 19 | /* write ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */ |
M_souta | 0:db8d4af513c0 | 20 | |
M_souta | 0:db8d4af513c0 | 21 | |
M_souta | 0:db8d4af513c0 | 22 | } |
M_souta | 0:db8d4af513c0 | 23 | } |