Skip to content

Commit

Permalink
Add macOS support in emulation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
enekochan committed Jun 8, 2020
1 parent 570cfe1 commit 1ecab1d
Show file tree
Hide file tree
Showing 778 changed files with 28,943 additions and 9,967 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ help:
@echo "============== LCDGFX library ================"
@echo "make docs generates documentation"
@echo "make help prints this help"
@echo "make library build library"
@echo "make ssd1306_sdl build SDL emulation library"
@echo "make cppcheck run cppcheck tests"
@echo ""
@echo "to build examples use scripts in tools subdir"
Expand All @@ -49,10 +51,12 @@ docs:
@echo "[DONE] check docs folder"

library:
mkdir -p $(BLD)
make -C ./src/ -f Makefile.$(ARCH) SDL_EMULATION=$(SDL_EMULATION) EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)" BLD=$(BLD)

ssd1306_sdl:
$(MAKE) -C ./tools/sdl -f Makefile.linux SDL_EMULATION=$(SDL_EMULATION) EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)" BLD=$(BLD)
mkdir -p $(BLD)
$(MAKE) -C ./tools/sdl -f Makefile.$(ARCH) SDL_EMULATION=$(SDL_EMULATION) EXTRA_CPPFLAGS="$(EXTRA_CPPFLAGS)" BLD=$(BLD)

include Makefile.cpputest

Expand All @@ -67,5 +71,5 @@ cppcheck:

clean:
make -C ./src/ -f Makefile.$(ARCH) clean
make -C ./tools/sdl -f Makefile.linux clean
make -C ./tools/sdl -f Makefile.$(ARCH) clean
rm -rf gmon.out
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [Easy to use](#easy-to-use)
* [Supported displays](#supported-displays)
* [Supported platforms](#supported-platforms)
* [The goals of lcdgfx library](#the-goals-of-ldcgfx-library)
* [Setting up](#setting-up)
* [License](#license)

Expand All @@ -22,7 +23,7 @@

lcdgfx driver is Arduino style C++ library with unicode support. The library can be compiled for plain Linux
(for example, raspberry spi), or you can use it with plain avr-gcc compiler without Arduino IDE. It supports
monochrome and RGB oleds and has debug mode, allowing to execute code on PC, using SDL2.0.
monochrome and RGB oleds and has debug mode, allowing to execute code on Linux, Windows and macOS, using SDL2.0.
Initially the library was intended to run on very small microcontrollers (with a little of RAM). It was developed to use as
few resources as possible, but still has powerful capabilities (NanoEngine), allowing to develop nice animation.
It works on any powerful devices like raspberry pi, esp32; and can be easily ported to new platform.
Expand Down Expand Up @@ -127,6 +128,8 @@ Compilers: gcc, clang
| **Linux** | | | |
| Raspberry Pi | X | X | i2c-dev, spidev, sys/class/gpio |
| [SDL Emulation](https://github.com/lexus2k/lcdgfx/wiki/How-to-run-emulator-mode) | X | X | demo code can be run without real OLED HW via SDL library |
| **macOS** | | | |
| [SDL Emulation](https://github.com/lexus2k/lcdgfx/wiki/How-to-run-emulator-mode) | X | X | demo code can be run without real OLED HW via SDL library |
| **Windows** | | | |
| [SDL Emulation](https://github.com/lexus2k/lcdgfx/wiki/How-to-run-emulator-mode) | X | X | demo code can be run without real OLED HW via MinGW32 + SDL library |
Expand Down Expand Up @@ -194,5 +197,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 9 additions & 6 deletions docs/_print__internal_8h.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LCDGFX LCD display driver: lcd_hal/Print_internal.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
Expand All @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">LCDGFX LCD display driver
&#160;<span id="projectnumber">1.0.3</span>
&#160;<span id="projectnumber">1.0.4</span>
</div>
<div id="projectbrief">This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays</div>
</td>
Expand All @@ -31,18 +31,21 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
Expand Down Expand Up @@ -89,7 +92,7 @@
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</a> 1.8.18
</small></address>
</body>
</html>
Loading

0 comments on commit 1ecab1d

Please sign in to comment.