Com: Implement proper communications
Implement a set of functions to create messages following the protocols defined in the README for communication. Handle HID, which is used to communicate with the interactive application. Update README with details on the message structures.
This commit is contained in:
parent
8d80dd2604
commit
bedd1f4f95
5 changed files with 126 additions and 7 deletions
20
include/Com.h
Normal file
20
include/Com.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// Created by Teo-CD on 24/09/23.
|
||||
//
|
||||
|
||||
#ifndef JIN_BARBAPAPA_COM_H
|
||||
#define JIN_BARBAPAPA_COM_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <cstring>
|
||||
|
||||
/**
|
||||
* Handle communication with a connected device and provide convenience
|
||||
* functions for the fixed protocols.
|
||||
*/
|
||||
namespace Com {
|
||||
void sendFigUpdate(int8_t event);
|
||||
void sendComment(const char* message, ...);
|
||||
}
|
||||
|
||||
#endif //JIN_BARBAPAPA_COM_H
|
Loading…
Add table
Add a link
Reference in a new issue