Arduino Yun cheat sheet: Difference between revisions

Line 423: Line 423:
ICSP 端子からデバイスの接続を抜くと avrdude は成功する。プログラムを送信後、再度デバイスを ICSP 端子に接続して reset-mcu する。
ICSP 端子からデバイスの接続を抜くと avrdude は成功する。プログラムを送信後、再度デバイスを ICSP 端子に接続して reset-mcu する。
:私はマイコンのプログラムは通常 HALT/SLEEP で、処理は割り込み駆動で書くべきだとおもっているので YUN の場合 USB での avrdude は使わない・使えない。
:私はマイコンのプログラムは通常 HALT/SLEEP で、処理は割り込み駆動で書くべきだとおもっているので YUN の場合 USB での avrdude は使わない・使えない。
[https://www.arduino.cc/en/Main/ArduinoBoardYun https://www.arduino.cc/en/Main/ArduinoBoardYun]
の Documentation -> Input and Output -> SPI によると、
<syntaxhighlight lang="text" enclose="div">
SPI: on the ICSP header. These pins support SPI communication using the SPI library. Note that the SPI pins are not connected to any of the digital I/O pins as they are on the Uno, They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Yún's 6-pin ICSP header, the shield will not work. The SPI pins are also connected to the AR9331 gpio pins, where it has been implemented in software the SPI interface. This means that the ATMega32u4 and the AR9331 can also communicate using the SPI protocol.
</syntaxhighlight>
AR9331 の GPIO と共有しているらしい。そりゃ avrdude 動かないわ。


== DS3234 の SQW と Alarm ==
== DS3234 の SQW と Alarm ==