Modified Makefile to be able to create a shared library. This simplifies
the use of that code (used in the example) in other projects. Now, the
example provided links against this library as well.
Because Raspberry Pi and Jetson differ in hardware, they use different
libraries, specific for each platform. So, I have added a simple rule
which tells the user to make for one or for the other, instead of making
for both.
I have added a gitignore that ignores de bin folder, which is not
necessary to be under source control. The two binaries, epd (example)
and the library are ignored as well. I have modified the Makefile
accordingly to be able to create the bin folder.
Finally, I have added a little print in the examples' main.c to tell the
user to uncomment one of the tests, because by default, the example demo
does nothing and do not inform the user.
Modified Makefile to create a easy to link shard library for e-Paper display
driver for Raspberry Pi (C code).
This way, it is more easy to link against this code when creating custom
projects which use that e-paper screen.
* Reorganized src variables
* Created 2 new targets: make lib and make example (and make all)
* make clean now does not file if files do not exist
* make clean removes bin directory. There is a target which create it
automatically
* Move lib files into waveshare_epd package
* Use int() where integer division is needed
* Use logging (debug level) in library files, so they can be used by a
user script without print()s being output
* Use logging (info level) in example files
* Move Font.ttc file into pic directory
* epdconfig.py: Detect RPi or Jetson Nano
* Search for sysfs_software_spi.so in several places
* Include both Jetson and RPi readme files
* Include setup.py for package installation
* Fix few small syntax errors preventing setuptools byte-compiling
Coordinate ranges are from 0 to width-1 (or height-1). This means when calculating the rotation, using `x = this->width - y;` would lead to x of range from `this->width` (when `y=0`) to `1` (when `y=this->width-1`). Thus additional -1 is required to get correct coordinates after rotation and prevent image from clipping.