This is an easy example for the use of fann as ANN lib and an Q-Learning algorithm to train a network
STM32F4 Discovery Board -> CortexM4 with FPU
solder a extra button from GND to PC6!
GPLv2
fann (LGPL see http://leenissen.dk/) (added as static library to this project)
System Workbench (Eclipse based) STM CubeMX
Press the blue Discovery button if you wan't to train the state change. Press the new button to "untrain" this action. Do this a 100 times and the pattern will be displayed after training.