<commit_before>/*
 * MyLcd.c
 *
 * Created: 2017/1/19 16:45:50
 *  Author: dusch
 */ 

#include "Device.h"

/************************************************************************/
/* ShuiXianHua and Display                                              */
/************************************************************************/
void my_display_3(uint8_t x, uint8_t y, uint32_t i)
{
	uint8_t display[3];
	i = i * 255 / 255;
	display[0] = i / 100 + 48;
	display[1] = i % 100 / 10 + 48;
	display[2] = i % 10 + 48;
	LocateXY(x, y);
	LCD_Wdat(display[0]);
	LCD_Wdat(display[1]);
	LCD_Wdat(display[2]);
}

void my_display_4(uint8_t x, uint8_t y, uint32_t i)
{
	uint8_t display[4];
	i = i * 255 / 255;
	display[0] = i / 1000 + 48;
	display[1] = i % 1000 / 100 + 48;
	display[2] = i % 100 / 10 + 48;
	display[3] = i % 10 + 48;
	LocateXY(x, y);
	LCD_Wdat(display[0]);
	LCD_Wdat(display[1]);
	LCD_Wdat(display[2]);
	LCD_Wdat(display[3]);
}<commit_msg>Annotations<commit_after>/*
 * MyLcd.c
 *
 * Created: 2017/1/19 16:45:50
 *  Author: dusch
 */ 

#include "Device.h"

/************************************************************************/
/* ShuiXianHua and Display                                              */
/************************************************************************/
void my_display_3(uint8_t x, uint8_t y, uint32_t i)
{
	uint8_t display[3];					//Create an array to hold each digit
	i = i * map_value_3 / 255;				//In order to improve the speed of the calculation of "i = i / 255 * map_value_3;" optimized to "i = i * map_value_3 / 255;"
	display[0] = i / 100 + 48;				//hundreds are stored in display[0]
	display[1] = i % 100 / 10 + 48;				//Ten are stored in display[1]
	display[2] = i % 10 + 48;				//Bit are stored in display[2]
	LocateXY(x, y);						//Determine the coordinates displayed on 1602
	LCD_Wdat(display[0]);					//1602 display
	LCD_Wdat(display[1]);
	LCD_Wdat(display[2]);
}

void my_display_4(uint8_t x, uint8_t y, uint32_t i)
{
	uint8_t display[4];					//Create an array to hold each digit
	i = i * map_value_4 / 1023;				//In order to improve the speed of the calculation of "i = i / 1023 * map_value_4;" optimized to "i = i * map_value_4 / 1023;"
	display[0] = i / 1000 + 48;				//Thousands of bits are stored in display[0]
	display[1] = i % 1000 / 100 + 48;			//Hundreds are stored in display[1]
	display[2] = i % 100 / 10 + 48;				//Ten are stored in display[2]
	display[3] = i % 10 + 48;				//Bit are stored in display[3]
	LocateXY(x, y);						//Determine the coordinates displayed on 1602
	LCD_Wdat(display[0]);					//1602 display
	LCD_Wdat(display[1]);
	LCD_Wdat(display[2]);
	LCD_Wdat(display[3]);
}
{'fraction_non_alphanumeric': 0.243202416918429, 'fraction_numerical': 0.08610271903323263, 'mean_word_length': 3.152037617554859, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4051557', 'n_tokens_mistral': 1181, 'n_tokens_neox': 974, 'n_words': 267}