Skip to content

Instantly share code, notes, and snippets.

@scalone
Created June 26, 2018 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scalone/456ea07c328b540e3a366d6023daa1cc to your computer and use it in GitHub Desktop.
Save scalone/456ea07c328b540e3a366d6023daa1cc to your computer and use it in GitHub Desktop.
# Code from da_funk
def self.main_image
if adapter.respond_to?(:main_image) &&
File.exists?("./shared/#{adapter.main_image}")
adapter.main_image
else
MAIN_BMP
end
end
# Suggestion on mruby-platform
class Display
def self.main_image
"main_#{PAX::System.model}.bmp"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment