With the new environment, I needed to update the Boards Manager to add support for the latest and greatest boards. Adafruit has introduced some nice boards including their Feather line, which I want to work with. So I update the Adafruit AVR boards, then the ESP8266 Boards. The ESP support requires a download of 153.5 megabytes. Wow. I mistakenly interrupted the download to do something else. Mistake!
When I needed to program an ESP device, I redid the ESP board support. But every time I tried to program any sketch, I got the error message:
Board generic (platform esp8266, package esp8266) is unknown
Uninstalling and reinstalling the IDE did not help. I finally resorted to a Google search and found this Wordpress blog post. Thank you!
So for Windows:
- Close the Arduino IDE windows that may be open.
- Go to the directory C:\Users\yourusername\AppData\Local where yourusername is the user name you are logged into.
- Copy the preferences.txt file in the Arduino15 subdirectory somewhere like your Desktop
- Rename your Arduino15 directory to Arduino15-old. Create a new Arduino15 directory and copy back the preferences.txt file into the new (now clean) Arduino15 directory.
- Now you can open the Arduino IDE and it will be clean of any board preferences. Go to Tools -> Board -> Boards Manager and add support for the boards you want to use (such as ESP8266, etc.)
Now, if you by chance don't see the ability to add ESP8266 support or Adafruit support, you need to add something to your preferences. Open File -> Preferences. On the line Additional Boards Manager URLs: add the following text all on the same line:
Press the Ok button.
Now close the Arduino IDE and reopen it. You should now see the additional boards that you may want to use.
Again, thanks to the ESP8266Hints blog for the pointers.