Skip to content

Instantly share code, notes, and snippets.

View MobileRez's full-sized avatar

Mitch Muenster MobileRez

View GitHub Profile
@MobileRez
MobileRez / ParticleIotHubDemo.ino
Created September 13, 2016 15:29
Completed particle code for LED color Changing code. Connection string must be added if code is to be reused
// The Spark preprocessor is very poor at obeying the C standard and C/C++ interaction
// We simply need to disable it.
//#pragma SPARK_NO_PREPROCESSOR
// This #include statement was automatically added by the Particle IDE.
#include "httpsclient-particle/httpsclient-particle.h"
#include "azure_c_shared_utility/platform.h"
#include "azure_iothub_client/iothub_client_ll.h"
#include "azure_iothub_client/iothub_message.h"
#include "azure_c_shared_utility/crt_abstractions.h"
@MobileRez
MobileRez / XamarinLedControl.ino
Last active September 12, 2016 17:39
Xamarin Photon Led Control file for the particle cloud
// This #include statement was automatically added by the Particle IDE.
#include "neopixel/neopixel.h"
SYSTEM_MODE(AUTOMATIC);
// IMPORTANT: Set pixel COUNT, PIN and TYPE
#define PIXEL_PIN D2
#define PIXEL_COUNT 288
#define PIXEL_TYPE WS2812B
// The Spark preprocessor is very poor at obeying the C standard and C/C++ interaction
// We simply need to disable it.
#pragma SPARK_NO_PREPROCESSOR
// This #include statement was automatically added by the Particle IDE.
#include "azure_c_shared_utility/platform.h"
#include "azure_iothub_client/iothub_client_ll.h"
#include "azure_iothub_client/iothub_message.h"
#include "azure_c_shared_utility/crt_abstractions.h"
#include "azure_iothub_client/iothubtransportmqtt.h"