source: rtos_arduino/trunk/arduino_lib/libraries/Firmata/examples/StandardFirmataEthernetPlus/ethernetConfig.h@ 224

Last change on this file since 224 was 224, checked in by ertl-honda, 8 years ago

1.7.10のファイルに更新

File size: 2.1 KB
Line 
1/*==============================================================================
2 * NETWORK CONFIGURATION
3 *
4 * You must configure your particular hardware. Follow the steps below.
5 *
6 * Currently StandardFirmataEthernetPlus is configured as a client. An option to
7 * configure as a server may be added in the future.
8 *============================================================================*/
9
10/*
11 * Only WIZ5100-based shields and boards are currently supported for
12 * StandardFirmataEthernetPlus.
13 */
14#define WIZ5100_ETHERNET
15
16#ifdef WIZ5100_ETHERNET
17#include <SPI.h>
18#include <Ethernet.h>
19EthernetClient client;
20#endif
21
22// STEP 1 [REQUIRED for all boards and shields]
23// replace with IP of the server you want to connect to, comment out if using 'remote_host'
24#define remote_ip IPAddress(10, 0, 0, 3)
25// *** REMOTE HOST IS NOT YET WORKING ***
26// replace with hostname of server you want to connect to, comment out if using 'remote_ip'
27// #define remote_host "server.local"
28
29// STEP 2 [REQUIRED]
30// Replace with the port that your server is listening on
31#define remote_port 3030
32
33// STEP 3 [REQUIRED unless using DHCP]
34// Replace with your board or ethernet shield's IP address
35// Comment out if you want to use DHCP
36#define local_ip IPAddress(10, 0, 0, 15)
37
38// STEP 4 [REQUIRED]
39// replace with ethernet shield mac. Must be unique for your network
40const byte mac[] = {0x90, 0xA2, 0xDA, 0x00, 0x53, 0xE5};
41
42/*==============================================================================
43 * CONFIGURATION ERROR CHECK (don't change anything here)
44 *============================================================================*/
45
46#if defined remote_ip && defined remote_host
47#error "cannot define both remote_ip and remote_host at the same time in ethernetConfig.h"
48#endif
49
50/*==============================================================================
51 * PIN IGNORE MACROS (don't change anything here)
52 *============================================================================*/
53
54// ignore SPI pins, pin 10 (Ethernet SS) and pin 4 (SS for SD-Card on Ethernet shield)
55#define IS_IGNORE_ETHERNET_SHIELD(p) ((IS_PIN_SPI(p) || (p) == 4) || (p) == 10)
Note: See TracBrowser for help on using the repository browser.