I would recommend reading parts I and II first. Microchip had recently released set of development boards which really helped to ease microcontroller development – Curiosity Boards. I got this one. Let’s create our first[…]
Tag: C
PIC microcontroller, part II
Now let’s use real microprocessor. For this project we will need microprocessor, programmer and scheme with LED which we used in Arduino and Raspberry Pi projects. Also prerequisite is that you completed project in part[…]
Raspberry Pi + C = Blinking LED
This time we are going to write C application for Raspberry Pi to do a blinking LED. We would reuse the same scheme as we use in Python example. For C example we will use[…]
PIC microcontroller, part I
And now let’s go to the lowest level – microcontrollers. That’s what drives every electronic device around you. I found this one in my drawer: PIC16F690. You can buy ‘raw’ device or buy experimentation board,[…]
Arduino
Let’s switch gear and switch to micro controllers. The best way to start is with Arduino. You can buy just the board, or start-up kit like this one. Next step is download and install studio[…]
makefiles, part II
Like I said with just one file it doesn’t make sense to create a makefile. Let’s create something more complex. Let’s create four files: main.cpp, class1.cpp, class1.h and common.h // common.h #pragma once enum class[…]
makefiles, part I
got tired of remembering all compiler and linker switches? I got a good news for you – you can setup everything once and forget about it. One way is to user some studio and create[…]
Hello, World on C/C++ on Windows, part II
This time we are going to use Windows SDK. We are going to write a program which would accept file name as command line parameter and would print out content of that file. This could[…]
Hello, World on C/C++ on Windows
On to Windows. And we will continue using command line only, no Studio yet. The are two options in my opinion: Cygwin which is Linux stimulations and Build Tools for Visual Studio 2019 (scroll down[…]
Hello, World on C/C++ on Linux, part II
Last time we wrote C application, this time let’s do a C++. Our Hello, World could look like this: #include <iostream> int main() { []{ std::cout