Activity 12.5.2. Verify Tuesday’s wiring, then stage the project.
(a)
Run Tuesday’s
whoami_test.c, unchanged, and confirm it still prints Accelerometer initialized! If it does not, re-seat the wiring against Figure 12.2.4 before you continue.
(b)
Download
lsm303agr_partial.c and accel_test.c and put both into the Src folder of your Accelerometer project.
(c)
Exclude
whoami_test.c from the build: right-click it, choose Resource Configurations → Exclude from Build, click Select All so both Debug and Release exclude the file, then click OK (Figure 12.5.6). lsm303agr_partial.c is not finished yet, so the build will still show errors, just not the multiple definition of 'main' one.
