My friend and i have been trying to convert the adafruit library to maple. However we have not been successful, if there is any one out there who can help, pleas do it would be greatly appreciated?
ST7565 LCD Help!!!!
(7 posts) (3 voices)-
Posted 4 years ago #
-
Hi house91320,
Just a couple of suggestions on asking for help in the open source world:
- It might help if you posted a link to the library you want a port for ;)
- It would also help if you wrote some details on what you tried, what went wrong, etc. This helps convince people that you've "done your homework", and also provides a good starting point for anyone who comes across this topic in the future.
Posted 4 years ago # -
it turns out the lcd was broken
Posted 4 years ago # -
ST7565 is an LCD I've been wanting to play with for a long while. Unfortunately, it's been out of stock on Adafruit for some time. I'll have a Maple-optimized library written for it one day, whenever I can get my hands on it.
Otherwise, if you wish to port Adafruit's library, you'll need to:
- change the includes, and
- replace PROGMEM with __FLASH__.Otherwise, the library aught to work as-is since it uses bit-bang SPI via wirish's shiftOut.
-robodude666
Posted 4 years ago # -
Otherwise, the library aught to work as-is since it uses bit-bang SPI via wirish's shiftOut.
Unfortunately, due to usages of things like pgm_read_byte(), more work is required:
https://github.com/adafruit/ST7565-LCD/blob/master/ST7565/ST7565.cpp#L142
There's a little advice on replacing pgmspace.h here:
http://leaflabs.com/docs/arm-gcc.html#switching-from-avr-gcc
I would personally really love to see some sort of pgmspace-stm32-compat.h header that replaced the most common usages of pgmspace.h with Cortex M3 or STM32 equivalents. It's mentioned briefly on the "missing features" wiki page:
Posted 4 years ago # -
Oh. Fix that too.
Posted 4 years ago # -
that would be great i relay suck at software i am defiantly a hardware guy.
Posted 4 years ago #
Reply
You must log in to post.