Saturday, November 29, 2014

Better than Arduino How-to : Arduino++ - Why-Not?

Some people see things as they are and ask why. I see things as they might be and ask "why not?". Some things in the Arduino ecosystem that might benefit from some why-not-ism : You plug your Arduino into the PC and launch arduino software. WTH can't it automatically find out what board it is and which port you're connected to? One I've already ranted on : WTH can't the authors of the example code specify which boards the code will run fine without mods and (in the comments) what mods need be made for other boards. Better yet, why not some freaking pre-processor directives that make the whole thing a breeze?

Thursday, November 27, 2014

Arduino Duemilanove Sainsmart LCD Panel

Why they can't put comments in the example code to tell you what adjustments you need on a per-board-flavour basis, I don't know. Thou gets what thou payest fur.

In this case, it's teh LiquidCrystal lcd(... thingie )..
(And please grow up blogger.. I actually had to hack HTMl to get this to display correctly. I think you know which part needed the <)
#include <Wire.h>
#include <liquidcrystal.h>

LiquidCrystal lcd( 8, 9, 4, 5, 6, 7 );

void setup()
{
  lcd.begin(16, 2);
  lcd.print("hello, world!");
}

void loop()
{
    // your main loop code here...
}