For this project we will be doing all the communications over serial between the Arduino and the C# program.
We will be confroming to the "AT Commands" or Hayes
In short all serial commands sent to Arduino will be prefeced with
AT+
and serial commands sent from the Arduino to the computer will be prefeced with
+
+TEMP:"value"
Requires a value and the value to be a float.
The Arduino will be sending temperature reading every 10s
+CLAP
Takes no values This command will stop all music from playing
+WHISTLE
Takes no values This command will stop the numbers from being displayed
+NUM_BUTTON
Takes no values This command will start the numbers sequence
+MUSIC_BUTTON
Takes no values Starts playing music
+START_SNAKE
Takes no values Triggered when any buttons have been pressed 3 times within 25 seconds. Starts snake.
AT+RGB="r,g,b"
Takes 3 int values 255
AT+RGB="255,0,0"
AT+SNEAK_DEAD
Takes no values Triggers RGB lights to flash random colors and buzzer to go off.
+SNEAK_RESET
Takes no values