Browse Source

rename installs. add lib install.

pull/2/head
Fernando Trias 4 years ago
parent
commit
8b6340e198
  1. 8
      README.md
  2. 0
      install-linux.sh
  3. 0
      install-mac.command
  4. 0
      install-windows.bat
  5. 12
      teensy_debug.py

8
README.md

@ -60,16 +60,18 @@ The `#pragma` will eliminate optimizations. If you don't use it, the compiler wi
Installing on Mac
-------------------------------------------
This tool requires Python, which is installed by default on Macs. Install by running `install.command` located in the disribution direction. This script creates a new menu option in Arduino and copies itself to the tools directory. It makes no changes to any source code.
This tool requires Python, which is installed by default on Macs. Install by running `install-mac.command` located in the disribution direction. This script creates a new menu option in Arduino and copies itself to the tools directory. It makes no changes to any source code.
Copy the entire directoy to your local Arduino directory, which is usually `~/Documents/Arduino/libraries`.
Installing on Windows
-------------------------------------------
This tool is installed by running `install.bat` as Administrator. Do this by right-clicking on the file and selecting `Run as administraor`. This script creates a new menu option in Arduino and copies itself to the tools directory.
This tool is installed by running `install-windows.bat` as Administrator. Do this by right-clicking on the file and selecting `Run as administraor`. This script creates a new menu option in Arduino and copies itself to the tools directory.
Installing on Linux
-------------------------------------------
Run `install.sh` to install. It assumes your Arduino is installed in `~/arduino`. If this is not, pass the direction with the `-i=path` option.
Run `install-linux.sh` to install. It assumes your Arduino is installed in `~/arduino`. If this is not, pass the direction with the `-i=path` option.
New menu options
-------------------------------------------

0
install.sh → install-linux.sh

0
install.command → install-mac.command

0
install.bat → install-windows.bat

12
teensy_debug.py

@ -26,6 +26,8 @@ import re
import tempfile
import stat
import shutil
from os.path import expanduser
#
# Process args in style of teensy_post_compile
@ -126,6 +128,16 @@ def installGDB():
createFiles(AVR, EXT)
home = expanduser("~")
dest = home + "/Arduino/libraries/TeensyDebug/"
if not os.path.exists(dest):
print("not", dest)
os.makedirs(dest)
for i in ("README.md", "TeensyDebug.h", "TeensyDebug.cpp", "gdbstub.cpp"):
shutil.copy(i, dest)
shutil.copytree('examples', dest + "examples")
def createFiles(AVR, EXT):
with open(AVR + "boards.local.txt", "w+") as f:
f.write("menu.gdb=GDB\n")

Loading…
Cancel
Save