ttt ko
/
NRP2020_main_1_29
aa
Diff: main.cpp
- Revision:
- 0:db8d4af513c0
- Child:
- 1:5b0303768126
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 20 08:46:24 2020 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "Motor.h" +#include "MCP.h" +#include "XBee.h" + +#define SDA PB_7 +#define SCL PB_6 +#define MCP_ADDRESS 0x40 + +MCP MCP(SDA, SCL, MCP_ADDRESS); + +XBEE::ControllerData *controller; + +int main() { + + while(1) { + controller = XBEE::Controller::GetData(); + + /* write ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */ + + + } +}