olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.24k stars 313 forks source link

MSP430 port #318

Open olikraus opened 9 years ago

olikraus commented 9 years ago

Originally reported on Google Code with ID 319

see sys and release: create full release

Reported by olikraus on 2015-02-05 21:21:57

secureemail commented 7 years ago

Hi, i tried the HelloWorld example with Energia IDE v1.6.10E18, commented out U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NONE); // I2C / TWI but I get:

:0:12: warning: missing whitespace after the macro name [enabled by default]
u8g_com_io.c:282: error: 'P4DIR' undeclared here (not in a function)
u8g_com_io.c:283: error: 'P5DIR' undeclared here (not in a function)
u8g_com_io.c:284: error: 'P6DIR' undeclared here (not in a function)
u8g_com_io.c:285: error: 'P7DIR' undeclared here (not in a function)
u8g_com_io.c:286: error: 'P8DIR' undeclared here (not in a function)
u8g_com_io.c:299: error: 'P4OUT' undeclared here (not in a function)
u8g_com_io.c:300: error: initializer element is not constant
u8g_com_io.c:300: error: (near initialization for 'u8g_msp_port_P[3]')
u8g_com_io.c:30
0: error: 'P5OUT' undeclared here (not in a function)
u8g_com_io.c:301: error: initializer element is not constant
u8g_com_io.c:301: error: (near initialization for 'u8g_msp_port_P[4]')
u8g_com_io.c:301: error: 'P6OUT' undeclared here (not in a function)
u8g_com_io.c:302: error: initializer element is not constant
u8g_com_io.c:302: error: (near initialization for 'u8g_msp_port_P[5]')
u8g_com_io.c:302: error: 'P7OUT' undeclared here (not in a function)
u8g_com_io.c:303: error: initializer element is not constant
u8g_com_io.c:303: error: (near initialization for 'u8g_msp_port_P[6]')
u8g_com_io.c:303: error: 'P8OUT' undeclared here (not in a function)
u8g_com_io.c:310: error: initializer element is not constant
u8g_com_io.c:310: error: (near initialization for 'u8g_msp_port_P[7]')
sketch/u8g_com_io.c:314:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
sketch/u8g_com_io.c:315:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
sketch/u8g_com_io.c:316:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
u8g_com_io.c:316: error: 'P4IN' undeclared here (not in a function)
u8g_com_io.c:317: error: initializer element is not constant
u8g_com_io.c:317: error: (near initialization for 'u8g_msp_pin_P[3]')
u8g_com_io.c:317: error: 'P5IN' undeclared here (not in a function)
u8g_com_io.c:318: error: initializer element is not constant
u8g_com_io.c:318: error: (near initialization for 'u8g_msp_pin_P[4]')
u8g_com_io.c:318: error: 'P6IN' undeclared here (not in a function)
u8g_com_io.c:319: error: initializer element is not constant
u8g_com_io.c:319: error: (near initialization for 'u8g_msp_pin_P[5]')
u8g_com_io.c:319: error: 'P7IN' undeclared here (not in a function)
u8g_com_io.c:320: error: initializer element is not constant
u8g_com_io.c:320: error: (near initialization for 'u8g_msp_pin_P[6]')
u8g_com_io.c:320: error: 'P8IN' undeclared here (not in a function)
u8g_com_io.c:327: error: initializer element is not constant
u8g_com_io.c:327: error: (near initialization for 'u8g_msp_pin_P[7]')
exit status 1
'P4DIR' undeclared here (not in a function)

Then I tried adding

include "Energia.h"

include

which I usually add in my MSP430 G2553 projects but this unfortunately didn't work and I get the same error.

MSP430 support, especially for MSP430G2553 would be really awesome.

olikraus commented 7 years ago

I can not do/say anything here. I wanted to create a msp430 version, yet it never happend. I also do not know whether the contributed code works.

secureemail commented 7 years ago

Thanks for wanting to create a MSP430 version. I guess I can confirm that it unfortunately doesn't work. You can buy a MSP-EXP430G2 LaunchPad for only $10. Maybe you can make a minimal working version for the MSP430G2553. The errors above only look as some #define like P4DIR can't be found.