Skip to main content

Appendix A C for Python Programmers

This appendix is a brief introduction to the C programming concepts we use in this course, each compared with the Python you already know. It covers how a C program is translated to machine language and uploaded to our microcontroller, hexadecimal and binary numbers, types, integer division, and the syntax of conditions, loops, functions and arrays, and it ends with the coding style we ask for in the code you submit. Bit operators, an important concept in embedded systems programming, are covered in the main text, namely Subsection 1.2.3, where we first need them.
The ENGS 20 C book covers each of these topics in more depth.