Lab_interaccio/2016/LASERS/Z_OSC/Z_OSCcommon/Z_OSCcommon.h

66 lines
903 B
C
Raw Normal View History

2025-02-25 21:29:42 +01:00
/*
Z_OSC - OSC Library for Arduino.
This library seems to work with Arduino firmware 0022.
Copyright 2011, Jérôme Dupraz. All Rights Reserved
Based on the ArdOSC of recotana( http://recotana.com )
-------- License -----------
Z_OSC
The MIT License see readme.txt
Copyright © 2011 Jérôme Dupraz
*/
#ifndef Z_OSCcommon_h
#define Z_OSCcommon_h
//======== user define ==============
//#define _DEBUG_
#define _USE_FLOAT_
#define _USE_STRING_
//======== user define end ========
#define kMaxAugument 16
#define kMaxRecieveData 100
#define kMaxZ_OSCAdrCharactor 255
#define kMaxStringCharactor 255
extern "C" {
#include <inttypes.h>
}
#ifdef _DEBUG_
#include "HardwareSerial.h"
#endif
#ifdef _DEBUG_
#define DBG_LOGLN(...) Serial.println(__VA_ARGS__)
#define DBG_LOG(...) Serial.print(__VA_ARGS__)
#else
#define DBG_LOGLN
#define DBG_LOG
#endif
#endif