Thursday, 26 June 2014

C++11 on Arduino

With the release of the development version of the Arduino IDE software using GCC 4.8.1 (see here), it's possible to enable C++11 support by adding the flag -std=gnu++11 to the end of the compiler.cpp.flags line within hardware/arduino/avr/platform.txt.

This lets you compile:

void setup() {
    int array[] = { 1, 5, 2, 7, 9, 33 };
    
    // range-based for loops
    for (int i: array)
    {
        Serial.println(i);
    }
 
    // lambda expressions
    [] () { Serial.println("Lambda"); };
}

along with other C++11 goodies.

Wednesday, 11 June 2014

LaTeX cheat sheet

I'm a fan of LaTeX for typesetting and used it to produce my own book, which was a mixture of mostly text with a few black and white illustrations.

Mostly for my benefit, so I can find it again easily, here is a link to an A4 Linux cheat sheet.

Verbing weirds language

According to Wikipedia, dizzy has been "verbed", but quite how I'm not sure how. Ghastly.

Monday, 19 May 2014

New Arduino board - the Zero

Tre, Due, Uno...and now the new Arduino Zero!

Great to see a new Arduino board in the original form factor, but with a bigger, faster ARM core CPU, with embedded debugger, true analog out, 32kB RAM, 256kB flash, and 1,000 elephants*!

Running at 3.3V will mean a few changes to existing shields and support circuitry, but overall I think this is a great addition to the range. Looking forward to the Zero Mini...


* - One of these isn't true.