adafruit / Adafruit_SHARP_Memory_Display

This is an Arduino library for the Adafruit Monochrome SHARP Memory Displays
http://www.adafruit.com/products/1393
Other
60 stars 54 forks source link

Not compiling for Feather M0+ #5

Closed RadJaz closed 7 years ago

RadJaz commented 8 years ago

When trying to compile for the Feather M0+ using the Arduino IDE, I get an error message:

Warning: platform.txt from core 'Adafruit SAMD Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core. /home/jaz/Arduino/libraries/Adafruit_SHARP_Memory_Display/Adafruit_SharpMem.cpp: In constructor 'Adafruit_SharpMem::Adafruit_SharpMem(uint8_t, uint8_t, uint8_t)': /home/jaz/Arduino/libraries/Adafruit_SHARP_Memory_Display/Adafruit_SharpMem.cpp:64:15: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment clkport = portOutputRegister(digitalPinToPort(_clk)); ^ /home/jaz/Arduino/libraries/Adafruit_SHARP_Memory_Display/Adafruit_SharpMem.cpp:66:15: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment dataport = portOutputRegister(digitalPinToPort(_mosi)); ^ exit status 1 Error compiling.

I'd assume these lines that are inducing the error are some AVR specific stuff. I'm not sure though because I've had this library compile on a Teensy 3.2.

RadJaz commented 8 years ago

Pull request #6 fixes this issue and #7 is a fork of that that also includes color depth functionality.

ladyada commented 7 years ago

try now should be fixed! with latest commit!