AMTS/Mieke/SW/ODD/bluetooth.c

18 lines
378 B
C

#include "bluetooth.h"
void bluetooth_init(void)
{
// Init USART1
usart1_init();
}
void bluetooth_send_gyro_data(uint8_t X, uint8_t Y, uint8_t Z)
{
char __str[128] = {0};
char *str = __str;
// Print data comma-sperated to String
sprintf(str, "%d,%d,%d\r\n", X, Y, Z);
// Send string over USARt to the bluetooth module
USART_SendString(USART1, str);
}