将Attiny添加到Arduino IDE - 缺少attiny \ variants \ platform.txt文件

我跟着本指南使用Arduino作为ISP编程AtTiny。问题是它丢失了一些文件:

java.io.FileNotFoundException: C:\...\arduino-1.6.8\hardware\attiny\variants\platform.txt

attiny目录是克隆此存储库。我如何使其工作?

2

2 答案

  • Open the "Preferences" dialog in the Arduino IDE.

  • Click on the symbol next to "Additional Board Manager URLs"

    Additional Board Manager URLs

  • Paste the following into the box (possibly on a new line under any existing URLs), then click OK.

    https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
    

    Add board URL

    Note that you can click on the circled link for a list of boards. This will open in your web browser. You may have to switch to your browser to notice it.

List of unofficial boards

  • Click OK to close the Preferences dialog box.

  • In the Tools menu/Board select the Boards Manager:

    Boards Manager

  • Scroll down until you see the Attiny entry (or the one for the board you want), click on it to select it, and then click "Install".

    Install Attiny

  • Once done, close the Board Manager dialog box.

  • You should now be able to select Attiny from the Boards menu:

    Select Attiny

  • Now in the Tools menu you can select which Attiny you want to use:

    Which Attiny

  • Notice you can also select the appropriate clock speed in an adjacent menu item.

  • To program the Attiny you will need a suitable ISP (In System Programmer) such as the AVRISP programmer, or the USBtinyISP programmer.

1
额外

在新版本中添加板的方式已经改变。

尝试查找1.6的教程,或下载较旧的 1.0版

0
额外
我试图找到最新的教程,我发现的内容与我的问题相关联。我认为这个答案更有资格作为评论,因为它只是链接,但没有链接......
额外 作者 Damo,
本教程使用的是1.0版,而使用的是1.6.8。这就是你得到错误的原因。这就是答案。 PS该教程已超过4年,github回购是从2011年开始的。
额外 作者 Al.,