Then you open up the Arduino Serial Monitor, type in LED, and watch it turn on! In the serial monitor, the console will tell you what the available commands are when you type anything in. If you type ...
NOTE: We will use Serial Monitor (built-in) as the Virtual Terminal / Bluetooth substitute. if (cmd == "TEMP") Serial.println("TEMP:" + String(readTemp(), 2)); else ...
Arduino Unoでは、PA4、PA5をI2Cに使用するので、I2C通信を使う場合は、アナログ入力としてはこれらを使用できません。 shieldで良く使われるSPI。 ICSP(In Circuit Serial Programming) Pinは、PD11 - PD13と物理的に繋がっており、SPI通信に使われています。 SPIを使用する時は ...