Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions hmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
*/
#ifndef __HMI_H__
#define __HMI_H__

// To also support the growing community of Particle devices (www.particle.io)
#if defined(SPARK) || defined(PLATFORM_ID)
#include "application.h"

typedef USARTSerial HMISerial;

extern char* itoa(int a, char* buffer, unsigned char radix);
#else // not a Particle device
#include "arduino.h"

/**
Expand All @@ -20,6 +29,9 @@ typedef SoftwareSerial HMISerial;
typedef HardwareSerial HMISerial;
#endif /* #ifdef HMI_SOFTWARE_SERIAL */

#endif // Arduino


/**
* HMI class.
*
Expand Down