November 24, 2024, 11:39:35 PM

Olimexino-Nano pintable?

Started by Kimmo, January 13, 2014, 07:40:44 PM

Previous topic - Next topic

Kimmo

I just received the new Nano-board with BB and BAT additions. I am little rusty with hardware, so I have tried to read some information, but most texts are for Mega or Uno boards and I think Nano is more like Leonardo. So I wonder how to convert Arduino examples' settings for the new Nano board?

The nano board is really nice and I would like to use it with battery power, but I wonder if there is any help how to do it?

I wonder if there is plans to make a prototyping board with same dimension as the other cards as the BB-card "ruins" the nice figure.

Lurch

You don't need to change the code.  Just pick Leonardo as board.  You may have to install a driver for the USB-RS232.  You should use a wait if you want to use output.  The examples show this for Leonardo.
void wait_for_input(void)
{
  Serial.println("Wait for input!");
  while(Serial.available() == 0);
  while(Serial.available() != 0){ Serial.read(); };
}

void setup()
{
  Serial.begin(9600);
  while(!Serial); //wait for serial port to connect - needed for Leonardo only
  wait_for_input();
  Serial.println("GLCD go...");
...