mirror of
https://github.com/EranMorkon/AMTS.git
synced 2023-12-28 16:48:38 +00:00
Comments to source code
This commit is contained in:
parent
d109bae8d7
commit
9a18bd88f0
22 changed files with 286 additions and 122 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
void bluetooth_init(void)
|
||||
{
|
||||
// Init USART1
|
||||
usart1_init();
|
||||
}
|
||||
|
||||
|
@ -9,6 +10,8 @@ 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue