mirror of
https://github.com/EranMorkon/AMTS.git
synced 2023-12-28 16:48:38 +00:00
Software
This commit is contained in:
parent
4093cd295f
commit
dc99dcf6e8
41 changed files with 1775 additions and 19 deletions
14
Mieke/SW/ODD/bluetooth.c
Normal file
14
Mieke/SW/ODD/bluetooth.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "bluetooth.h"
|
||||
|
||||
void bluetooth_init(void)
|
||||
{
|
||||
usart1_init();
|
||||
}
|
||||
|
||||
void bluetooth_send_gyro_data(uint8_t X, uint8_t Y, uint8_t Z)
|
||||
{
|
||||
char __str[128] = {0};
|
||||
char *str = __str;
|
||||
sprintf(str, "%d,%d,%d\r\n", X, Y, Z);
|
||||
USART_SendString(USART1, str);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue