File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
libraries/Bluefruit52Lib/examples/Peripheral/image_upload Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ void bleuart_rx_callback(uint16_t conn_hdl)
207
207
// do checksum later
208
208
209
209
// print speed summary
210
- print_speed (totalPixel*3 + 7 , rxLastTime-rxStartTime);
210
+ print_summary (totalPixel*3 + 7 , rxLastTime-rxStartTime);
211
211
212
212
// reset and waiting for new image
213
213
totalPixel = imageWidth = imageHeight = 0 ;
@@ -234,7 +234,7 @@ void connect_callback(uint16_t conn_handle)
234
234
tft.setTextColor (COLOR_WHITE);
235
235
}
236
236
237
- void print_speed (uint32_t count, uint32_t ms)
237
+ void print_summary (uint32_t count, uint32_t ms)
238
238
{
239
239
tft.setCursor (0 , imageHeight+5 );
240
240
tft.print (" Received " );
@@ -251,11 +251,17 @@ void print_speed(uint32_t count, uint32_t ms)
251
251
252
252
tft.println (" seconds" );
253
253
254
- tft.print (" Speed: " );
254
+ tft.print (" Speed " );
255
255
tft.setTextColor (COLOR_YELLOW);
256
256
tft.print ( (count / 1000 .0F ) / (ms / 1000 .0F ), 2 );
257
257
tft.setTextColor (COLOR_WHITE);
258
- tft.println (" KB/s" );
258
+ tft.print (" KB/s with " );
259
+
260
+ tft.setTextColor (COLOR_YELLOW);
261
+ tft.print (imageWidth); tft.print (" x " ); tft.print (imageHeight);
262
+
263
+ tft.setTextColor (COLOR_WHITE);
264
+ tft.println (" Image" );
259
265
260
266
tft.setTextColor (COLOR_GREEN);
261
267
tft.println (" Ready to receive new image" );
You can’t perform that action at this time.
0 commit comments