<commit_before>#include "mbed.h"
#include "motor.h"
#include "QEI.h"

Motor left_motor(PB_6, PA_7);
Motor right_motor(PB_10, PC_7);

QEI left_encoder(PA_15, PB_3, NC, 12, QEI::X4_ENCODING);
QEI right_encoder(PA_1, PC_4, NC, 12, QEI::X4_ENCODING);

//Serial serial(USBTX, USBRX);

int main()
{
    left_encoder.reset();
    right_encoder.reset();
    while(right_encoder.getPulses() > -10 && right_encoder.getPulses() < 10) {
        left_motor.set_speed(0.1);
        right_motor.set_speed(0.1);
        //serial.printf("Left: %d, Right: %d\n", left_encoder.getPulses(), right_encoder.getPulses());
    }
}
<commit_msg>Added support for serial.<commit_after>#include "mbed.h"
#include "motor.h"
#include "QEI.h"

Motor left_motor(PB_6, PA_7);
Motor right_motor(PB_10, PC_7);

QEI left_encoder(PA_15, PB_3, NC, 12, QEI::X4_ENCODING);
QEI right_encoder(PA_1, PC_4, NC, 12, QEI::X4_ENCODING);

Serial serial(PA_9, PA_10);

int main()
{
    left_encoder.reset();
    right_encoder.reset();
    while(right_encoder.getPulses() > -10 && right_encoder.getPulses() < 10) {
        left_motor.set_speed(0.1);
        right_motor.set_speed(0.1);
        serial.printf("Left: %d, Right: %d\n", left_encoder.getPulses(), right_encoder.getPulses());
    }
}

{'fraction_non_alphanumeric': 0.1621411947245927, 'fraction_numerical': 0.0395655546935609, 'mean_word_length': 3.7252747252747254, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5636067', 'n_tokens_mistral': 579, 'n_tokens_neox': 534, 'n_words': 89}