Main program for robot
Dependencies: mbed vl53l0x_api
main.cpp@1:3594e2a33f3a, 2018-01-12 (annotated)
- Committer:
- kokmaestro
- Date:
- Fri Jan 12 13:01:07 2018 +0000
- Revision:
- 1:3594e2a33f3a
- Parent:
- 0:dd842bac0bc0
sa
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kokmaestro | 1:3594e2a33f3a | 1 | #include <mbed.h> |
kokmaestro | 1:3594e2a33f3a | 2 | #include <VL53L0X.h> |
kokmaestro | 1:3594e2a33f3a | 3 | |
kokmaestro | 1:3594e2a33f3a | 4 | I2C i2c(PB_9,PB_8); |
kokmaestro | 1:3594e2a33f3a | 5 | Timer timer(); |
kokmaestro | 1:3594e2a33f3a | 6 | VL53L0X sensor(*i2c,*timer); |
kokmaestro | 1:3594e2a33f3a | 7 | |
kokmaestro | 1:3594e2a33f3a | 8 | uint8_t addr; |
kokmaestro | 1:3594e2a33f3a | 9 | int main() |
kokmaestro | 1:3594e2a33f3a | 10 | { |
kokmaestro | 1:3594e2a33f3a | 11 | |
kokmaestro | 1:3594e2a33f3a | 12 | sensor.getAddress(); |
kokmaestro | 1:3594e2a33f3a | 13 | } |