Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <Arduino.h>
#include "corgi85_blynk.h"
void CORGI85_BLINK::loop(void)
{
switch (mode)
{
case stop:
/* code */
break;
case setup:
/* code */
Blynk.begin(auth, ssid, pass);
break;
case run:
/* code */
break;
default:
break;
}
}
void CORGI85_BLINK::get(void)
{
switch (mode)
{
case none:
/* code */
break;
case setup:
/* code */
Blynk.begin(auth, ssid, pass);
break;
case run:
/* code */
break;
default:
break;
}
}
#ifndef CORGI85_BLYNK_H
#define CORGI85_BLYNK_H
enum corgi85_blynk_mode
{
stop,
setup,
run
};
class CORGI85_BLINK
{
public:
char auth[] = "YourAuthToken";
void loop(void);
uint8_t get ()
private:
corgi85_blynk_mode mode = none;
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment