2017 hongo b team
Dependencies: I2C_slave MotorDriver mbed
Diff: main.cpp
- Revision:
- 0:2c99fa8dad2a
- Child:
- 1:d00affd925c2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Sep 08 04:06:59 2017 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +#include "Alpha_ApprI2C_ID.h" +#include "ApprI2CSlave.h" + +#define SDA PB_7 +#define SCL PB_6 + +Serial pc(USBTX, USBRX); + +I2CSlave *slave; + +int main() { + slave = new I2CSlave(SDA, SCL); + ApprI2CSlave test(alpha_a::sht_pwr, alpha_a::unsig, alpha_a::s2_addr, slave); + while(1) { + pc.printf("%d",test.read()); + } +}