How use "Grove - OLED Display 128*64" on Raspberry pi?

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
liver636
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Wed May 21, 2014 11:57 am

How use "Grove - OLED Display 128*64" on Raspberry pi?

Post by liver636 » Wed May 21, 2014 12:17 pm

I am try to use "Grove - OLED Display 128*64" on my Raspberry pi.

And my connection is in attach.


And my source is from:
||||| github.c*o*m*/Seeed-Studio/Grove-RaspberryPi/tree/master/Grove%20-%20OLED%20Display%20128x64 (Please remove the red * in the link, I am new user, can't post with link


But when I try to run, it shows:



pi@tree2 ~/OLED/OLED_Display12864/examples/OLED_Bitmap_Inverse_Display $ cd ..
pi@tree2 ~/OLED/OLED_Display12864/examples $ cd ..
pi@tree2 ~/OLED/OLED_Display12864 $ ls
examples keywords.txt license.txt OLED_Bitmap_Inverse_Display.ino SeeedOLED.cpp SeeedOLED.h
pi@tree2 ~/OLED/OLED_Display12864 $ ./OLED_Bitmap_Inverse_Display.ino
./OLED_Bitmap_Inverse_Display.ino: line 5: static: command not found
./OLED_Bitmap_Inverse_Display.ino: line 6: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 7: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 8: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 9: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 10: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 11: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 12: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 13: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 14: 0x60,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 15: 0xff,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 16: 0xc0,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 17: 0xc0,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 18: 0x80,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 19: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 20: 0xc0,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 21: 0xf8,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 22: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 23: 0xcf,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 24: 0x7d,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 25: 0x66,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 26: 0x07,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 27: 0x11,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 28: 0x3f,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 29: 0x7f,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 30: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 31: 0x01,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 32: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 33: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 34: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 35: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 36: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 37: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 38: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 39: 0x20,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 40: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 41: 0x08,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 42: 0xa0,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 43: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 44: 0x20,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 45: 0x20,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 46: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 47: 0x02,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 48: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 49: 0x02,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 50: 0x02,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 51: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 52: 0x02,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 53: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 54: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 55: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 56: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 57: 0x20,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 58: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 59: 0x2a,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 60: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 61: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 62: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 63: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 64: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 65: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 66: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 67: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 68: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 69: 0x00,: command not found
./OLED_Bitmap_Inverse_Display.ino: line 70: syntax error near unexpected token `}'
./OLED_Bitmap_Inverse_Display.ino: line 70: `};'
pi@tree2 ~/OLED/OLED_Display12864 $ vi OLED_Bitmap_Inverse_Display.ino
pi@tree2 ~/OLED/OLED_Display12864 $ Grove - OLED Display 128*64

yexiaobo
Pre-kindergarten
Pre-kindergarten
Posts: 46
Joined: Tue Dec 11, 2012 10:53 am

Re: How use "Grove - OLED Display 128*64" on Raspberry pi?

Post by yexiaobo » Fri May 30, 2014 5:04 pm

Hi,

*.ino ? There are no file with .ino suffix.

You should compile source code to excute file with Makefile.

example:

..Grove-RaspberryPi/Grove - OLED Display 128x64$ make -f Makefile
..Grove-RaspberryPi/Grove - OLED Display 128x64$ ./OLED

Post Reply