Flow control with three threats Blinking LEDs in the main and a thread for the led. Reading analog input with 12 bits and calculating moving average in a thread for the potentiometer connect: D10 - 330 Ohm - LED - GND D11 - 330 Ohm - LED - GND GND - Pot 1 A3 - Pot 2 Vcc - Pot 3 Tested with Nucleo-L432KC but should work with almost any board Thanks to "mbed-os-Flow-Control_Thread" example and AnalogIn API Reference Timo Karppinen 25.6.2020, Apache 2.0

Flow control with three threats Blinking LEDs in the main and a thread for the led. Reading analog input with 12 bits and calculating moving average in a thread for the potentiometer connect: D10 - 330 Ohm - LED - GND D11 - 330 Ohm - LED - GND GND - Pot 1 A3 - Pot 2 Vcc - Pot 3

Tested with Nucleo-L432KC but should work with almost any board

Thanks to "mbed-os-Flow-Control_Thread" example and AnalogIn API Reference Timo Karppinen 25.6.2020, Apache 2.0

Committer:
timo_k2
Date:
Thu Jun 25 15:51:09 2020 +0000
Revision:
0:156098cfb039
Flow control with three threats. Blinking LEDs in the main and a thread for the led. Reading analog input with 12 bits and calculating moving average in a thread for the potentiometer.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
timo_k2 0:156098cfb039 1 # Application Flow Control: Thread example
timo_k2 0:156098cfb039 2 copied/forked from Mbed OS snippets "mbed-os-snippet-Flow-Control-Thread " 25.6.2020
timo_k2 0:156098cfb039 3
timo_k2 0:156098cfb039 4 A threaded Blinky implementation.
timo_k2 0:156098cfb039 5 MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only.
timo_k2 0:156098cfb039 6
timo_k2 0:156098cfb039 7 Added a thread for potentiometer reading and value filtering. Works fine now with three threads.