<commit_before>#include <stdio.h>

#include <contiki.h>

#include <sys/clock.h>

#include "letmecreate/click/color2.h"
#include "letmecreate/core/debug.h"

PROCESS(main_process, "Main process");
AUTOSTART_PROCESSES(&main_process);
/*---------------------------------------------------------------------------*/
PROCESS_THREAD(main_process, ev, data)
{
    PROCESS_BEGIN();
    INIT_NETWORK_DEBUG();
    {
        static uint16_t r, g, b;

        PRINTF("=====Start=====\n");
        i2c_init();
        color2_click_enable();

        color2_click_get_color(&r, &g, &b);
        PRINTF("red: %u\n", r);
        PRINTF("green: %u\n", g);
        PRINTF("blue: %u\n\n", b);

        color2_click_disable();
        i2c_release();
    }

    PROCESS_END();
}

/*---------------------------------------------------------------------------*/
<commit_msg>examples/color2: Added missing I2C include<commit_after>#include <stdio.h>

#include <contiki.h>

#include <sys/clock.h>

#include "letmecreate/click/color2.h"
#include "letmecreate/core/i2c.h"
#include "letmecreate/core/debug.h"

PROCESS(main_process, "Main process");
AUTOSTART_PROCESSES(&main_process);
/*---------------------------------------------------------------------------*/
PROCESS_THREAD(main_process, ev, data)
{
    PROCESS_BEGIN();
    INIT_NETWORK_DEBUG();
    {
        static uint16_t r, g, b;

        PRINTF("=====Start=====\n");
        i2c_init();
        color2_click_enable();

        color2_click_get_color(&r, &g, &b);
        PRINTF("red: %u\n", r);
        PRINTF("green: %u\n", g);
        PRINTF("blue: %u\n\n", b);

        color2_click_disable();
        i2c_release();
    }

    PROCESS_END();
}

/*---------------------------------------------------------------------------*/

{'fraction_non_alphanumeric': 0.3221781055019853, 'fraction_numerical': 0.010777084515031198, 'mean_word_length': 1.660633484162896, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2845004', 'n_tokens_mistral': 600, 'n_tokens_neox': 566, 'n_words': 90}