<commit_before>#include "RASDemo.h"

#include <RASLib/inc/common.h>
#include <RASLib/inc/servo.h>

tServo *servo;

void initServo(void) {
    servo = InitializeServo(PIN_B0);
}

void servoDemo(void) {
	// 2012 Servo Demo code
	Printf("Press:\n  a-'up' 0.10\n  w-'up' 0.01\n  s-'down' 0.01\n");
	Printf("  d-'down' 0.10\n  enter-quit\n");
	
	{   float position = 0;
		char newline = 13;
		char ch;
		
		Printf("position: %f ", position);
		ch = Getc();
        
		while(ch != newline) {
			if (ch == 'w')
				position += 0.01f;
			else if (ch == 's')
				position -= 0.01f;	 
			else if (ch == 'a')
				position += 0.10f;
			else if (ch == 'd')
				position -= 0.10f;
            
			SetServo(servo, position);
            
			Printf("\rposition: %f ",position);	 
			ch = Getc();
		}
				 
		Printf("\n");
	}
}
<commit_msg>changed more pins and formatting<commit_after>#include "RASDemo.h"

#include <RASLib/inc/common.h>
#include <RASLib/inc/servo.h>

tServo *servo;

void initServo(void) {
    servo = InitializeServo(PIN_B1);
}

void servoDemo(void) {
	// 2012 Servo Demo code
	Printf("Press:\n  a-'up' 0.10\n  w-'up' 0.01\n  s-'down' 0.01\n");
	Printf("  d-'down' 0.10\n  enter-quit\n");
	
	{   float position = 0;
		char newline = 13;
		char ch;
		
		Printf("position: %f ", position);
		ch = Getc();
        
		while(ch != newline) {
			if (ch == 'w')
				position += 0.01f;
			else if (ch == 's')
				position -= 0.01f;	 
			else if (ch == 'a')
				position += 0.10f;
			else if (ch == 'd')
				position -= 0.10f;
            
			SetServo(servo, position);
            
			Printf("\rposition: %f ",position);	 
			ch = Getc();
		}
				 
		Printf("\n");
	}
}

{'fraction_non_alphanumeric': 0.1885885885885886, 'fraction_numerical': 0.03843843843843844, 'mean_word_length': 2.2730844793713163, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4396881', 'n_tokens_mistral': 835, 'n_tokens_neox': 694, 'n_words': 154}