
rgb through potentiometer
main.cpp
- Committer:
- tweagle
- Date:
- 2020-02-10
- Revision:
- 0:b4c55dd82abb
File content as of revision 0:b4c55dd82abb:
/* mbed Microcontroller Library * Copyright (c) 2019 ARM Limited * SPDX-License-Identifier: Apache-2.0 */ #include "mbed.h" #include "platform/mbed_thread.h" PwmOut r (D5); PwmOut g (D8); PwmOut b (D9); AnalogIn pot1 (A0); AnalogIn pot2 (A1); int main() { while (true) { r=pot1; g=pot2; b=pot1; } }