<commit_before>/**
  ******************************************************************************
  * @file    main.c
  * @author  Ac6
  * @version V1.0
  * @date    01-December-2013
  * @brief   Default main function.
  ******************************************************************************
*/


#include "stm32f4xx.h"

#include "lib/ledSuit.h"
#include "lib/rs485.h"


void Delay(uint32_t time)
{
	time *= 10000;
	while(time--);
}

int main(void)
{
	SystemInit();


	ledSuit_init();
	rs485_init(38400);

	rgbLed colors[4] = {
			{ .r = 255, .g = 0, .b = 0 },
			{ .r = 0, .g = 255, .b = 0 },
			{ .r = 0, .g = 0, .b = 255 },
			{ .r = 255, .g = 0, .b = 0 } };

	ledSuit_colorAllColorFade(4, colors, 1);

	ledSuit_enableAllAutoRotate(1);
	//ledSuit_enableAllStrobe(1);

	while(1) {
		//rs485_requestSensorData(leftArmSensor);
		Delay(1000);
	}
}

<commit_msg>Added demo program for mid term presentation<commit_after>/**
  ******************************************************************************
  * @file    main.c
  * @author  Ac6
  * @version V1.0
  * @date    01-December-2013
  * @brief   Default main function.
  ******************************************************************************
*/


#include "stm32f4xx.h"

#include "lib/ledSuit.h"
#include "lib/rs485.h"


void Delay(uint32_t time)
{
	time *= 10000;
	while(time--);
}

int main(void)
{
	SystemInit();

	ledSuit_init();
	rs485_init(38400);

	rgbLed fadeColors[4] = {
				{ .r = 255, .g = 0, .b = 0 },
				{ .r = 0, .g = 255, .b = 0 },
				{ .r = 0, .g = 0, .b = 255 },
				{ .r = 255, .g = 0, .b = 0 } };

	rgbLed pulseColors[5] = {
				{ .r = 10, .g = 0, .b = 0 },
				{ .r = 50, .g = 0, .b = 0 },
				{ .r = 255, .g = 0, .b = 0 },
				{ .r = 50, .g = 0, .b = 0 },
				{ .r = 10, .g = 0, .b = 0 } };

	ledSuit_color(LEFT_LEG, 0, 0, white, 1);
	ledSuit_setStrobePeriod(1);
	ledSuit_enableStrobe(LEFT_LEG, 1);

	ledSuit_configureAutoColorFade(RIGHT_LEG, 3, fadeColors, 255);
	ledSuit_enableAutoColorFade(RIGHT_LEG, 1);

	ledSuit_colorFade(RIGHT_ARM, 4, fadeColors, 1);
	ledSuit_color(LEFT_ARM, 0, 0, black, 0);
	ledSut_colorArray(LEFT_ARM, 0, 5, pulseColors, 1);
	ledSuit_configureAutoRotate(RIGHT_ARM + LEFT_ARM, forwards, 255);
	ledSuit_enableAutoRotate(RIGHT_ARM + LEFT_ARM, 1);

	while(1) {
		//rs485_requestSensorData(leftArmSensor);
		Delay(1000);
	}
}


{'fraction_non_alphanumeric': 0.29241261722080136, 'fraction_numerical': 0.07075873827791987, 'mean_word_length': 3.3869158878504675, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3865004', 'n_tokens_mistral': 1126, 'n_tokens_neox': 931, 'n_words': 196}