#include <avr/wdt.h> Error Message Using the Create App for Chromebook

My students are trying to code Tetrix robots. We are the using the create app on chromebooks. We keep getting the error that tell us #include <avr/wdt.h>.

Any guidance on where to find that in a library (I assumed it would be in the Tetrix Prizm Library we imported. Any solutions are welcome!

Thank you!

avr/wdt.h is part of the toolchain for the AVR architecture. If you are using a board with a microcontroller of the AVR architecture (e.g., ATmega328P on the Uno), then you will already have that library pre-installed. If you are using a board with a microcontroller of a different architecture then you can't use the library at all. So there is no use in trying to find the library.

I found this page on the "TETRIX PRIZM":
https://www.pitsco.com/TETRIX-PRIZM-Robotics-Controller
which says:

  • ATmega328P processor with Arduino Optiboot bootloader installed

So I'm not sure why you would be getting this error.

Please post the full and exact text of the error output you are getting. I will provide the instructions for doing that when using the standard Arduino Web Editor. I haven't used the Chrome app so I don't know whether it will be directly applicable or not, but even if not you should be able to adapt it:

  1. From the menu on the left side of the Arduino Web Editor window, click "Preferences".
  2. Check the box next to " Always show output panel".
  3. Check the box next to " Console: Show verbose output".
  4. In the sketch pane, click the :heavy_check_mark: (verify) button.
  5. After the compilation fails, click the icon in the top right corner of the black console window at the bottom of the Arduino Web Editor window that looks like two pieces of paper.
  6. In a forum reply here, click on the reply field.
  7. Click the </> button on the forum toolbar. This will add the forum's code block markup (```) to your reply to make sure the compilation output is correctly formatted.
    codetags
  8. Press Ctrl+V. This will paste the compilation output between the code tags.
  9. Move the cursor outside of the code tags before you add any additional text to your reply.
  10. Click the Reply button to post the output.

When you setup the Arduino IDE, what board do you select?

We keep getting the error that tell us #include <avr/wdt.h>.

Could you clarify the error?
Does your code have a line: #include <avr/wdt.h>
and it can't find it?

Or Is the error telling you it needs that line added?