eiginn / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

SSD1306 compile issue #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.referring to the ssd1306 device in any arduino sketch, either hw_spi or 
sw_spi choice
2.compile sketch in arduino 1.0 also 1.0.1 

What is the expected output?
Compiling of sketch

 What do you see instead?
Arduino IDE error message:
expected unqualifier-id before numeric constant

AVRDUDE error messages:
Helloworld.pde:-1: error: expected unqualifier-id before numeric constant
Helloworld.pde:-1: error: expected ')' before numeric constant

the rest were stating that 'u8g' was not declared in this scope...

What version of the product are you using? 
1.0.6 with Arduino IDE 1.0.1, also tried 1.0

On what operating system?
Windows 7

Please provide any additional information below.

Library performs beautifully with other hardware, a few other choices were 
arbitrarily un-commented and compiled without errors. 

I looked for this bug myself but have not been successful in finding it :) 

Original issue reported on code.google.com by etmoo...@gmail.com on 3 Jul 2012 at 10:47

GoogleCodeExporter commented 8 years ago
Thank you for the bug report.

Change
//U8GLIB_SBN1661_122X32(8,9,10,11,4,5,6,7,14,15, 17, U8G_PIN_NONE, 16); ; // 
8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 cs1=14, cs2=15,di=17,rw=16,reset = 16
//U8GLIB_SSD1306_128X64(13, 11, 10, 9);             // SW SPI Com: SCK = 13, 
MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X64(10, 9);             // HW SPI Com: CS = 10, A0 = 9 
(Hardware Pins are  SCK = 13 and MOSI = 11)

to
//U8GLIB_SBN1661_122X32 u8g(8,9,10,11,4,5,6,7,14,15, 17, U8G_PIN_NONE, 16); ; 
// 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 cs1=14, cs2=15,di=17,rw=16,reset = 16
//U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9);             // SW SPI Com: SCK = 
13, MOSI = 11, CS = 10, A0 = 9
//U8GLIB_SSD1306_128X64 u8g(10, 9);             // HW SPI Com: CS = 10, A0 = 9 
(Hardware Pins are  SCK = 13 and MOSI = 11)

in the examples

Original comment by olikr...@gmail.com on 4 Jul 2012 at 4:55

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 4 Jul 2012 at 4:57

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 4 Jul 2012 at 8:45

GoogleCodeExporter commented 8 years ago
I am embarrassed that I did not see this. 

Original comment by etmoo...@gmail.com on 4 Jul 2012 at 10:15