oefening

Dependencies:   C12832

main.cpp

Committer:
henrybuyssie
Date:
2020-02-10
Revision:
0:9379316708c1

File content as of revision 0:9379316708c1:

/* mbed Microcontroller Library
 * Copyright (c) 2019 ARM Limited
 * SPDX-License-Identifier: Apache-2.0
 */


#include "mbed.h"
#include "platform/mbed_thread.h"
#include "C12832.h"

// Blinking rate in milliseconds
#define BLINKING_RATE_MS 500



AnalogIn pot1 (A0);
AnalogIn pot2 (A1);
PwmOut r (D5);
PwmOut g (D8);
PwmOut b (D9);

int main()
{
    while(1){
    r = (float)pot1;
    g = (float)pot2;
    b = (float)pot1;
    wait(0.1);
    }
}