Skip to content

Commit

Permalink
Move emulator to IT8951 project, to use link emulator instead of eink…
Browse files Browse the repository at this point in the history
…-display as EPD

I.e. ln -s ../IT8951/emulator ./EPD
  • Loading branch information
Willenbrink committed Apr 8, 2019
1 parent 1206682 commit b56fd79
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 38 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.merlin
EPD
_build/*
*.so
31 changes: 0 additions & 31 deletions EPDE/EPD.ml

This file was deleted.

4 changes: 0 additions & 4 deletions EPDE/dune

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# PaperTerminal
# PaperTerminal
To use this project, add a softlink to the IT8951 project named EPD.
For this both the emulator (for dev on laptop) and the eink-display can be used.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
make --directory=IT8951;
make --directory=EPD;
make;
dune build ./term.exe;
sudo killall term.exe;
Expand Down
2 changes: 1 addition & 1 deletion term.ml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ let main () =

let update_line i s =
EPD.draw_text (0, i * 16) s;
if linesChanged < 3 then EPD.display_buffer (0, i * 16) (799, i * 16 + 16) EPD.Fast
if linesChanged < 3 then EPD.display_buffer ((0, i * 16),(799, i * 16 + 16)) EPD.Fast
in
List.iteri (fun i s -> match nth_opt prevlines i with
| None -> update_line i s
Expand Down

0 comments on commit b56fd79

Please sign in to comment.