Build Your Own AI Assistant Part 1 - Creating the Assistant
116820 Views
Is the new Raspberry Pi AI Kit better than Google Coral?
114678 Views
Control Arduino with Python using Firmata / PyFirmata
87081 Views
How to Map with LiDAR - using a Raspberry Pi Zero 2W, RPLidar and Rviz
57314 Views
Creating a Supercomputer with a Raspberry Pi 5 Cluster and Docker Swarm!
53588 Views
Node-Red Automation, MQTT, NodeMCU & MicroPython
52067 Views
LEGO Gets Lights & Sound with Tiny FX
Thinkman
Podman vs Docker
MicroPython Robotics
Bottango and Isaaca
LidarBot
Getting Started with C on the Raspberry Pi Pico
0h 20m
Running K3s on Raspberry Pi
0h 36m
From Docker to Podman
0h 28m
MicroPython Robotics Projects with the Raspberry Pi Pico
0h 24m
Bottango Basics
0h 22m
Mini-Rack 3D Design Tutorial
Learn how to Program in Python, C, Rust, and more.
Learn Linux from the basics to advanced topics.
Learn how to use a Raspberry Pi Pico
Learn MicroPython the best language for MicroControllers
Learn Docker, the leading containerization platform. Docker is used to build, ship, and run applications in a consistent and reliable manner, making it a popular choice for DevOps and cloud-native development.
Learn how to build SMARS robots, starting with the 3D Printing the model, Designing SMARS and Programming SMARS
Learn how to build robots, starting with the basics, then move on to learning Python and MicroPython for microcontrollers, finally learn how to make things with Fusion 360.
Learn Python, the most popular programming language in the world. Python is used in many different areas, including Web Development, Data Science, Machine Learning, Robotics and more.
Learn how to create robots in 3D, using Fusion 360 and FreeCAD. The models can be printed out using a 3d printer and then assembled into a physical robot.
Learn how to create Databases in Python, with SQLite3 and Redis.
KevsRobots Learning Platform
20% Percent Complete
By Kevin McAleer, 4 Minutes
Page last updated June 15, 2025
C is one of the oldest and most widely-used programming languages. It’s fast, powerful, and gives you direct control over the hardware — which makes it perfect for microcontrollers like the Raspberry Pi Pico.
C
C is a procedural programming language developed in the early 1970s.
Key features:
Origins of ‘C’ The name “C” comes from an earlier language called “B”, which was itself derived from the language “BCPL”. C was developed by Dennis Ritchie at Bell Labs in 1972. C was designed to be a system programming language for writing operating systems and low-level applications, but it quickly became popular for all kinds of software development. C is still widely used today, especially in embedded systems, operating systems, and performance-critical applications, and languages such as Processing, Arduino, and even Python have roots in C. C is often called the “mother of all programming languages” because it has influenced so many others. It’s a procedural language, meaning it focuses on functions and procedures to operate on data, it was later extended with object-oriented features in C++.
The name “C” comes from an earlier language called “B”, which was itself derived from the language “BCPL”. C was developed by Dennis Ritchie at Bell Labs in 1972. C was designed to be a system programming language for writing operating systems and low-level applications, but it quickly became popular for all kinds of software development. C is still widely used today, especially in embedded systems, operating systems, and performance-critical applications, and languages such as Processing, Arduino, and even Python have roots in C. C is often called the “mother of all programming languages” because it has influenced so many others. It’s a procedural language, meaning it focuses on functions and procedures to operate on data, it was later extended with object-oriented features in C++.
C is used in:
Anywhere speed and control matter — you’ll likely find C.
While you can use Python (via MicroPython) on the Pico, C has some big advantages:
With C, you get full control of the hardware, faster code, and better use of memory — essential for building real-world embedded systems.
Here’s a tiny example:
#include <stdio.h> int main() { printf("Hello, world!\n"); return 0; }
This program prints a message to the terminal. Don’t worry about the syntax yet — we’ll explain everything step-by-step in future lessons.
Notice the ‘{ }’ brackets? They define blocks of code, like functions or loops; in MicroPython, you would use indentation instead.
{ }
Also notice each line ends with a semicolon (;). This tells the compiler that the statement is complete. In Python, you don’t need semicolons.
;
C is a compiled language, which means you write the code, then use a compiler to turn it into machine code that the Pico can run. This is different from interpreted languages like Python, where you run the code directly.
C is a typed language, meaning you must declare the type of each variable (like int, float, char, etc.) before using it. This helps catch errors early and makes your code more efficient.
int
float
char
C is a powerful, efficient, and long-standing language that gives you precise control over how your programs run — ideal for working on microcontrollers like the Raspberry Pi Pico.
In the next lesson, we’ll dive into variables and data types in C so you can start writing your own logic.
Next up: Variables and Data Types
< Previous Next >
You can use the arrows ← → on your keyboard to navigate between lessons.
← →