obus/lib/obus_module.h

30 lines
660 B
C
Raw Normal View History

2020-08-26 19:13:16 +00:00
#ifndef OBUS_MODULE_H
#define OBUS_MODULE_H
#include "Arduino.h"
#include <obus_can.h>
#define OBUS_PUZZLE_ID_DEVELOPMENT 255
#define OBUS_NEEDY_ID_DEVELOPMENT 255
#define OBUS_INFO_ID_DEVELOPMENT 255
2020-08-26 19:13:16 +00:00
namespace obus_module {
void setup(uint8_t type, uint8_t id);
bool loopPuzzle(obus_can::message* message, void (*callback_game_start)(), void (*callback_game_stop)());
bool loopNeedy(obus_can::message* message, void (*callback_game_start)(), void (*callback_game_stop)());
2020-08-27 03:30:22 +00:00
bool loopInfo(obus_can::message* message, int (*info_generator)(char*));
2020-08-26 19:13:16 +00:00
void strike();
void solve();
2020-08-27 03:30:22 +00:00
bool is_active();
2020-08-26 19:13:16 +00:00
}
#endif /* end of include guard: OBUS_MODULE_H */