... | ... | @@ -18,7 +18,7 @@ |
|
|
* Input
|
|
|
* [Wii Nunchuck](http://wiki.seeed.cc/Grove-NunChuck) - <code>I2C</code>
|
|
|
* Output
|
|
|
* Serial Monitor <code>UART</code>
|
|
|
* Serial Monitor (Konsole) <code>UART</code>
|
|
|
* [Led](http://wiki.seeed.cc/Grove-LED_Socket_Kit/) - <code>D8</code>
|
|
|
* Input/Output
|
|
|
* [Grove - UART Wi-Fi](http://wiki.seeed.cc/Grove-UART_Wifi/) - <code>UART: 2=Rx, 3=Tx</code>
|
... | ... | @@ -48,17 +48,17 @@ |
|
|
more Infos: SP8266 AT Instruction Set
|
|
|
*/
|
|
|
|
|
|
#define DELAY 20
|
|
|
#define DELAY 20
|
|
|
#define BAUD_RATE_MONITOR 9600
|
|
|
#define BAUD_RATE_WIFI 115200
|
|
|
|
|
|
SoftwareSerial WiFi(2, 3); // Rx, Tx
|
|
|
SoftwareSerial WiFi(2, 3); // Rx, Tx
|
|
|
|
|
|
void setup() {
|
|
|
Serial.begin(BAUD_RATE_MONITOR);
|
|
|
while (!Serial); // wait for monitor UART
|
|
|
while (!Serial); // wait for monitor UART
|
|
|
WiFi.begin(BAUD_RATE_WIFI);
|
|
|
while (!WiFi); // wait for WiFi UART
|
|
|
while (!WiFi); // wait for WiFi UART
|
|
|
Serial.println("Ready - Input AT Commands on Serial Monitor\n");
|
|
|
}
|
|
|
|
... | ... | |