This repository has been archived on 2019-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
PixelHub/PixelHub-Client/Utilities.h

23 lines
579 B
C++

/**
* Various useful utility functions for the Arduino
*********************************************************
* By Starbeamrainbowlabs <bugs@starbeamrainbowlabs.com> - https://starbeamrainbowlabs.com)
* Originally written for PixelHub - http://git.starbeamrainbowlabs.com/sbrl/PixelHub
*
* Thanks to Rob Miles for getting me into this :-)
*/
#pragma once
#include <stdlib.h>
int findChar(char* str, char targetChar);
int getPosition(const char *array, int size, char c);
class Utilities
{
public:
static void PrintCharsAsHex(char* charArray, size_t length);
};