Error Asteroid Attack

I have accessed the Education Shield library and I am trying to complete the 'Asteroid Attack' lesson as part of the CTC 101 education pack.

This is the error message:

Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

AsteroidAttack:14:1: error: 'IMU' does not name a type

IMU imu; // the IMU

^~~

C:\Users\username\Documents\Arduino\libraries\EducationShield\examples\Block5-Space(101-only)\Projects\AsteroidAttack\AsteroidAttack.ino: In function 'void setup()':

AsteroidAttack:26:3: error: 'imu' was not declared in this scope

imu.begin();

^~~

C:\Users\username\Documents\Arduino\libraries\EducationShield\examples\Block5-Space(101-only)\Projects\AsteroidAttack\AsteroidAttack.ino: In function 'void loop()':

AsteroidAttack:37:3: error: 'imu' was not declared in this scope

imu.run();

^~~

exit status 1

'IMU' does not name a type

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Post your code... can't help without that.

(post deleted by author)

The code the OP is trying to compile is an example from the library for the Arduino Education Shield.

Someone else asked about this a few months ago, and one reply stated that the library examples that needed the IMU or BLE (bluetooth) are intended for the Arduino 101.
https://forum.arduino.cc/t/does-not-name-a-type/851412/8

Hi, @mta101
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

As has been mentioned, we need to see the code you are using.
What model Arduino are you using?

Tom... :smiley: :+1: :coffee: :australia: