potion_party_leds/main/shared.h

31 lines
591 B
C

///
//
// shared.h contains some shared settings and functionality
//
///
#ifndef _shared_h
#define _shared_h
#include <stdio.h>
#include <string.h>
#include <esp_wifi.h>
#include "esp_system.h"
// wifi configuration
#define SSID "ESP8266"
#define PASSW "XR-Lab2023"
static const char* APP_TAG="CINEKID_LEDS";
// print a line with the app tag as a prefix to easilly separate our own logging from system logging
#define LOGLN(...) do {\
printf("%s | ", APP_TAG);\
printf(__VA_ARGS__);\
printf("\n");\
} while(0)
#define GLOBAL(__a) (uint8_t)(__a|0xE0)
#endif // !_shared_h