Category: Blog
-
Increase Windows Console Line Limit
If you’re in a situation where your console output text is being truncated because so many lines have been output, you may want to increase the limit. Increase Windows Console Text Limit With a console window already spawned, right click the top and go to properties: Increase the Screen Buffer Size Height. You will be…
-
Faster Compiling: Visual Studio Unity (Jumbo) Builds
Unity/Jumbo builds are a way of speeding up C/C++ compilation by compiling multiple c/cpp files as a single object file. Speed improvements can come from not having to re-parse and compile shared headers. Even in projects that use pre-compiled headers, there is an overhead of processing the pre-compiled header which can be avoided with Unity/Jumbo…
-
Programming a Digital Potentiometer (MCP4131) With Raspberry Pi & WiringPi
Github Link: https://github.com/comeradealexi/MCP4131 Datasheet One of the most important parts of programming an MCP is studying the datasheet provided with it. For the MCP4131, you can download it here: https://www.microchip.com/en-us/product/MCP4131 It will provide everything you need to know about the chip. One of the most basic pieces of information we’ll need to start with is…
-
Connecting to Raspberry Pi direct to PC via Ethernet
This article will show you how to connect directly to a Raspberry Pi by connecting an ethernet cable directly to your PC without needing to do any setup on the Raspberry Pi itself. This means you don’t need to plug a keyboard and monitor into your Pi to connect to it. Requirements: PC with ethernet…
-
C++ unique/shared ptr custom deleters
I’ve recently found the need for a custom deleter function attached to smart pointers in C++ and I found there are a number of different ways to implement this. I’ll touch on the advantages/disadvantages of the different ways to use custom deleters and the difference between unique and shared ptr. std::unique_ptr: The type of the…