Skip to content

Instantly share code, notes, and snippets.

@takehaya
Created December 17, 2016 10:11
Show Gist options
  • Save takehaya/e9fb62b1a7c3bda323ac5331565cd917 to your computer and use it in GitHub Desktop.
Save takehaya/e9fb62b1a7c3bda323ac5331565cd917 to your computer and use it in GitHub Desktop.
// デバッグ設定
#define DEBUG // 有効にするとシリアル出力が有効になります。
#ifdef DEBUG
#define Serialbegin Serial.begin
#define Serialprint Serial.print
#define Serialprintln Serial.println
#else
#define Serialbegin
#define Serialprint
#define Serialprintln
#endif
//制御
#define DC_MOTER_IN1_1 15
#define DC_MOTER_IN1_2 14
#define SERVO_IN 12
#define LED_Light 2
//ssid,pass
const char ssid[] = "ESPCar";
const char pass[] = "ESP8266ap";
//////////////// ipaddress ////////////////
// the IP address for the shield:
IPAddress ip(192, 168, 7, 101);
//IPAddress gateway(192, 168, 7, 101);
//IPAddress subnet(255, 255, 255, 0);
const unsigned int localPort = 30000;//port設定
const int OSC_PACKET_SIZE = 256;//パケットサイズ
char packetBuffer[OSC_PACKET_SIZE];//パケットバッファ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment