aa

Dependencies:   mbed MCP23017

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?

UserRevisionLine numberNew 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 }