Embedded Wednesdays: Logic in C Part I

Andrei drew the short straw. His punishment was to write a blog post on boolean logic and bit manipulations. That way Elecia and Chris Svec could refer to the post rather than having to explain it themselves.

This first part is a useful review of boolean logic. If you find it useful, please buy Chris Gammell a beer. 

Read More

ESE101: Building an Assembly Language Playground

A wise man once said:

Take a kid to a playground and he’ll play for a day. Teach a kid to build a playground and he’ll get frustrated, bored, and wander off.

Today I’m going to teach you to build an assembly language playground. If that sounds fun, read on! If not, then feel free to wander off.

Read More

Embedded Wednesdays: Functions Part 2

In the final serving of the Embedded Wednesdays crash course in C, Andrei gives a bowlful of function goodness. Parameters, return values, headers, and prototypes. Sprinkle some prototypes, add #includes on top, then add some Good Habits for keeping you regular. But you can't have all of this wholesome goodness without talking about the inevitable void.

In French, the Rice Krispie guys Snap, Crackle, and Pop are known as Crik, Crak, and Crok. All of those names start with C. Coincidence, I don't think so. Pull up a chair and grab a heaping helping of C functions.  (Corny? No, I Oat to know how that is Spelt)

Read More

APIs Are Like Lasagna

Stuart McAndrew and I were talking a little about code. He’s a coding newbie, reading many libraries in order to make progress on building his own satellite (OzQube-1). He asked an interesting question about making code for other people.

(Note: I would use ice cream to explain object-oriented programming. But that's not what this is about at all.)

Read More

ESE101: Microcontroller Peripherals, GPIOs, and Blinking Lights: Part 3

This week we complete our three-part look introduction to peripherals, GPIOs, and blinking lights.

By the end of this post you’ll understand how to bend physics to your will with a little bit of typing and mouse clicking. We’ll alter the flow of electrons on a circuit board and make electricity flow through an LED and turn a light on.

This is kind of magical, people, so check it out.

Read More