Sketch for Turn & Avoid for ZUMO 32U4

Hi there,
I get the following error messages when I compile:

L3G' does not name a type
 extern L3G gyro;
LSM303' does not name a type; did you mean 'CS30'?
 LSM303 lsm303; // Accelerometer
lsm303' was not declared in this scope
   lsm303.init();
303' was not declared in this scope
   lsm303.read();

I am using the GitHub 1. zumo_32u4_examples

# MoveAndAvoid

Can somebody please help?

Hello.

Please note that the GitHub repository you’re referencing is not made or maintained by us; is it a 3rd party resource. It sounds like it was made to work with an older version of the Zumo32U4 library; prior to release version 2.0.0, the L3G and LSM303 libraries were bundled with it. You might try rolling back your Zumo32U4 library version to 1.2.0 (which is the version just prior to 2.0.0) using the Arduino Library Manager and seeing if that fixes the problem.

Brandon

Hello Brandon,

Thank you very much for your help with this.

I gathered as much as I had to change the code from LCD to match the OLED display that I have.

Will let you know how it goes.

Kind Regards,

Terence