lexdm3
Junior Member
Posts: 13
|
Post by lexdm3 on Jun 22, 2021 14:28:18 GMT -8
I'll try again on another issue that is a known problem but that has not been solved by the developer.
Arduino IDE code using the GD2 library does not compile on the SAMD processors but gives errors. James Bowman said at least 6 months ago that it could probably be fixed by someone editing the CPU #ifdef statements in the .h and/or .cpp files. That is beyond me.
Has anyone made this library work in Arduino IDE (not Python) on an SAMD21 (M0) or SAMD51 (M4) processor? If so, how did you do it and can we roll your fix(es) into the GD2 library?
Thanks!
|
|
mattp
Full Member
Posts: 37
|
Post by mattp on Jul 12, 2021 8:04:03 GMT -8
I've developed my own version for a 68000. I replaced the ASPI class, started to add in FATFS. You'll need to remove the "PROGMEM" bits (you can just define that as nothing #undef PROGMEM #define PROGMEM "uint8_t k = pgm_read_byte_near(bpltab + format);" needs to become: "uint8_t k = bpltab[format];" So it's not just errors that need to be corrected. You're more than welcome to use my version as a starting point. github.com/mattuna15/merlin-software/blob/master/gd2-lib/
|
|