/**
 * @license Licensed under the Apache License, Version 2.0 (the "License"):
 *          https://www.apache.org/licenses/LICENSE-2.0
 */

/**
 * @fileOverview English strings for test blocks. All names have the postfix
 *     BLOCKS_{category} from the blocks_config.json data.
 */
'use strict';

goog.require('Blockly.Msg.en');

/**
 * Due to the frequency of long strings, the 80-column wrap rule need not apply
 * to message files.
 */
/// Toolbox category name
Blockly.Msg.BLOCKS_CATEGORY_COMMS = 'Serial';

/// Serial
Blockly.Msg.BLOCKS_CATEGORY_SERIAL = "Serial";
Blockly.Msg.ARD_SERIAL_BPS = "bps";
Blockly.Msg.ARD_SERIAL_PRINT_MSG = "%1 print %2 %3 add new line";
Blockly.Msg.ARD_SERIAL_PRINT = "send";
Blockly.Msg.ARD_SERIAL_WRITE = "write";
Blockly.Msg.ARD_SERIAL_PRINT_NEWLINE = "return";
Blockly.Msg.ARD_SERIAL_PRINT_TIP = "Send text to terminal/serial port";
Blockly.Msg.ARD_SERIAL_PRINT_WARN = "A setup block for %1 must be added to the workspace to use this block!";
Blockly.Msg.ARD_MATH_BIN = 'binary';
Blockly.Msg.ARD_MATH_DEC = 'decimal';
Blockly.Msg.ARD_MATH_OCT = 'octal';
Blockly.Msg.ARD_MATH_HEX = 'hex';
Blockly.Msg.ARD_SERIAL_PRINT_HEX_TOOLTIP = "Print the specified text, number or other value.";
Blockly.Msg.ARD_SERIAL_SETUP = "setup";
Blockly.Msg.ARD_SERIAL_SETUP_TIP = "Selects the speed for a specific Serial peripheral";
Blockly.Msg.ARD_SERIAL_SPEED = "serial speed";
Blockly.Msg.ARD_SERIAL_AVAILABLE_MSG = "characters available from serial %1";
Blockly.Msg.ARD_SERIAL_AVAILABLE_TIP = "Get characters from software serial port";
Blockly.Msg.ARD_SERIAL_READ_CHAR_MSG = "Read one character from serial %1";
Blockly.Msg.ARD_SERIAL_READ_CHAR_TIP = "Read one characters from serial port";
Blockly.Msg.ARD_SERIAL_READ_STRING_MSG = "Read string from serial %1";
Blockly.Msg.ARD_SERIAL_READ_STRING_TIP = "Read string from serial port";

//Bluetooth
Blockly.Msg.BLOCKS_CATEGORY_BLUETOOTH = "Bluetooth";
Blockly.Msg.ARD_SERIAL_BLUETOOTH = "Bluetooth";
Blockly.Msg.ARD_SERIAL_TX_PIN = "Rx Pin";
Blockly.Msg.ARD_SERIAL_RX_PIN = "Tx Pin";
Blockly.Msg.ARD_SERIAL_BAUDRATE = "Baud Rate";
Blockly.Msg.ARD_SERIAL_BLE_AVAILABLE_MSG = "characters available from bluetooth?";
Blockly.Msg.ARD_SERIAL_BLE_READ_STRING_MSG = "Read string from bluetooth";
Blockly.Msg.ARD_SERIAL_BLE_READ_MSG = "Get characters from bluetooth";
Blockly.Msg.ARD_SERIAL_BLE_WRITE_MSG = "Write characters to bluetooth";
Blockly.Msg.ARD_SERIAL_BLE_WRITE = "Write string to bluetooth";
Blockly.Msg.ARD_SERIAL_BLE_AT_CMD_MSG = "Send AT command ";
Blockly.Msg.ARD_SERIAL_BLE_AT_CMD_AS = " as ";

//SoftwareSerial
Blockly.Msg.BLOCKS_CATEGORY_SOFTWARESERIAL = "Software serial";
Blockly.Msg.ARD_SOFTWARESERIAL_SETUP_MSG = "Setup software serial";
Blockly.Msg.ARD_SOFTWARESERIAL_SETUP_TIP = "Setup software serial port";
Blockly.Msg.ARD_SOFTWARESERIAL_PRINT_MSG = "Print %2 %3 add newline to software serial %1 ";
Blockly.Msg.ARD_SOFTWARESERIAL_PRINT_TIP = "Print text to software serial port";
Blockly.Msg.ARD_SOFTWARESERIAL_AVAILABLE_MSG = "characters available from software serial %1";
Blockly.Msg.ARD_SOFTWARESERIAL_AVAILABLE_TIP = "Get characters available from software serial port";
Blockly.Msg.ARD_SOFTWARESERIAL_READ_MSG = "one characters from software serial %1";
Blockly.Msg.ARD_SOFTWARESERIAL_READ_TIP = "Read one characters from software serial port";
Blockly.Msg.ARD_SOFTWARESERIAL_READ_STRING_MSG = "Read string from software serial %1";
Blockly.Msg.ARD_SOFTWARESERIAL_READ_STRING_TIP = "Read string from software serial port";

// PS2
Blockly.Msg.BLOCKS_CATEGORY_PS2 = "PS2";
Blockly.Msg.ARD_PS2 = "PS2 GamePad";
Blockly.Msg.ARD_PS2_SETUP = "Initial PS2.";
Blockly.Msg.ARD_PS2_PIN1 = "Clock Pin";
Blockly.Msg.ARD_PS2_PIN2 = "Attention Pin";
Blockly.Msg.ARD_PS2_PIN3 = "Command Pin";
Blockly.Msg.ARD_PS2_PIN4 = "Data Pin";
Blockly.Msg.ARD_PS2_START_READ = "Start read PS2 press button";
Blockly.Msg.ARD_PS2_READ = "read";
Blockly.Msg.ARD_PS2_BUT = "button";
Blockly.Msg.ARD_PS2_STATUS = "status";
Blockly.Msg.ARD_PS2_TRIANGLE = "Triangle";
Blockly.Msg.ARD_PS2_CIRCLE = "Circle";
Blockly.Msg.ARD_PS2_CROSS = "Cross";
Blockly.Msg.ARD_PS2_SQUARE = "Square";
Blockly.Msg.ARD_PS2_GREEN = "Green";
Blockly.Msg.ARD_PS2_RED = "Red";
Blockly.Msg.ARD_PS2_BLUE = "Blue";
Blockly.Msg.ARD_PS2_PINK = "Pink";
Blockly.Msg.ARD_PS2_LEFT = "Left";
Blockly.Msg.ARD_PS2_RIGHT= "Right";
Blockly.Msg.ARD_PS2_UP = "Up";
Blockly.Msg.ARD_PS2_DOWN = "Down";
Blockly.Msg.ARD_PS2_BUTTON = "Pressed held";
Blockly.Msg.ARD_PS2_BUTTON_PRESSED = "Pressed";
Blockly.Msg.ARD_PS2_BUTTON_RELEASED = "Released";
Blockly.Msg.ARD_PS2_NEW_BUTTON_STATUS = "Status change";
Blockly.Msg.ARD_PS2_PSS_LX = "Left X value";
Blockly.Msg.ARD_PS2_PSS_LY = "Left Y value";
Blockly.Msg.ARD_PS2_PSS_RX = "Right X value";
Blockly.Msg.ARD_PS2_PSS_RY = "Right Y value";
