Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsharith
373 Mobile 3D Printing
Commits
c11cc683
Commit
c11cc683
authored
Apr 22, 2019
by
wyattc
Browse files
Bluetooth reception to global variables
parent
b09f21d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
LCD_DISPLAY_FINAL/SoftConsole/MSS_LCD_MSS_CM3_0/MSS_LCD_MSS_CM3_0_app/main.c
View file @
c11cc683
...
...
@@ -24,6 +24,7 @@ void __FINISHED_INTERRUPT_HANDLER__() {
uint8_t
arrow_pos
=
0
;
uint8_t
tab_state
=
0
;
int
progress
=
0
;
int
temp
=
0
;
uint8_t
g_rx_buff
[
6
];
//clock/baudrate/16-1
#define BAUD_VALUE_115200 53
...
...
@@ -74,13 +75,9 @@ uint8_t tab_state = 0;
for
(
i
=
0
;
i
<
500000
;
++
i
);
MSS_UART_get_rx
(
this_uart
,
g_rx_buff
,
sizeof
(
g_rx_buff
)
);
erase_block
(
BARSTART_X
,
BARSTART_Y
,
BARSTART_X
+
100
,
BAREND_Y
);
if
(
atoi
(
g_rx_buff
[
0
])
<
100
)
fill
(
BARSTART_X
,
BARSTART_X
+
atoi
(
g_rx_buff
[
0
]));
else
if
(
atoi
(
g_rx_buff
[
0
])
>=
100
){
fill
(
BARSTART_X
,
BARSTART_X
+
100
);
display_completed
();
}
write_temp
(
g_rx_buff
[
1
]);
progress
=
g_rx_buff
[
0
];
temp
=
g_rx_buff
[
1
];
signed
char
odox
=
g_rx_buff
[
2
];
signed
char
odoy
=
g_rx_buff
[
3
];
signed
char
mousex
=
g_rx_buff
[
4
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment