C state machine code example

For purposes of a comfortable working with serial interfaces, I wrote some template of a state machine, which is easy to modify for any given application. It could one of the good way to work with some processes.

https://gist.github.com/an-dr/f8f76cfc6498ab4b04ffd31c4b3dd31d

Configure Visual Studio toolchain on Eclipse

1. Install software: Eclipse IDE for C/C++ Developers Visual Studio 2. Open Eclipse -> Help -> Install New Software… -> Work with: http://download.eclipse.org/tools/cdt/releases/9.4/ -> CDT Optional Features -> C/C++ Visual C++ Support 9.4.3.201802261533 -> Next -> Agree -> Install -> Finish -> Restart 3. Close Eclipse 4. Open Developer Command Prompt for VS 2017 and run from it Eclipse (this trick will add all needed VS environment variables to path)

Install OpenCV for Visual Studio C++ development

1. Get software:

2. Install Visual Studio; Unpack OpenCV somethere and add enviromental variable

Turn On UART on Raspberry

  1. Download and write Raspbian or something similar;
  2. Add to config.txt on flash card:
1
2
# Enable UART
enable\uart=1