<commit_before># Haciendo una pausa

       wait_ms(100); // Milisegundos


# <commit_msg>add ADC y Speaker<commit_after># Haciendo una pausa

       wait_ms(100); // Milisegundos


# Defines de los pines

#define MATRIX_PIN P0_9
#define LDR_PIN P0_16
#define SPEAKER_PIN P0_8
#define POTENCIOMETER_PIN P0_22
#define BUTTON_PIN P0_23
#define RESET_PIN P0_1

#define NLEDS 25

# Sonidos

PwmOut speaker(SPEAKER_PIN); // el P0_8

float note=440;
speaker.period(1.0/note);           
speaker = 50.0;


# Lectura de valores analógicos

## Potenciometro

AnalogIn   ain(POTENCIOMETER_PIN);

float valorPot=ain.read();
{'fraction_non_alphanumeric': 0.08986928104575163, 'fraction_numerical': 0.05392156862745098, 'mean_word_length': 4.024590163934426, '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': '5027094', 'n_tokens_mistral': 275, 'n_tokens_neox': 256, 'n_words': 59}