-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
115 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name=My Macros | ||
version=0.2 | ||
name=MyMacros | ||
version=0.3 | ||
author=Debinix Team <debinixteam@triatagroup.com> | ||
maintainer=Debinix Team <debinixteam@triatagroup.com> | ||
sentence=The Arduino library identifies and adds macros for your unique collection of development boards. | ||
paragraph=By maintaining this list of new or uncommon boards, they can be given macros in an Arduino uniform way. | ||
sentence=The Arduino library identifies your unique collection of development boards. | ||
paragraph=Give board-specific macros to new or uncommon boards. Code can branch depending on identified defined macros and for different development platforms. MyMacros.h file extends the known list from the Board Identify library. | ||
category=Other | ||
url=https://github.com/berrak/My_Macros | ||
architectures=* | ||
includes=My_Macros.h | ||
includes=MyMacros.h | ||
depends=Board Identify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# | ||
# mylink - script to find and create a symbolic link to a source Arduino sketch | ||
# Author: Debinix Team (C). License GPL-3.0 | ||
# Date: 2022-08-10 | ||
# | ||
parent_boards_directory_name="Arduino/CODE" | ||
|
||
case $# in | ||
0) echo -n "Give the name of the sketch, including '.ino': " | ||
read fname;; | ||
1) fname=$1 | ||
;; | ||
*) echo "Too many arguments given, aborting. Please correct and retry." | ||
exit;; | ||
esac | ||
|
||
if echo "$fname" | grep -q "\.ino"; then | ||
echo "Sketch '$fname'" | ||
mydir=$( cut -d '.' -f 1 <<< "$fname" ) | ||
else | ||
echo "Missing '.ino' in the sketch name. Please correct and retry." | ||
exit | ||
fi | ||
|
||
# Create a subdirectory for Arduino IDE | ||
if [ ! -d "$mydir" ] | ||
then | ||
mkdir $mydir | ||
fi | ||
|
||
if [ -h "$PWD/$mydir/$fname" ] | ||
then | ||
echo "A symbolic link with the name '$fname' already exists in '$PWD/$mydir'. Please remove this '$fname'-link, and try again." | ||
exit | ||
fi | ||
|
||
# Search below ../CODE i.e for a source sketch to link to for the board's subfolder tree | ||
find "$HOME/$parent_boards_directory_name" -name "$fname" -exec ln -s '{}' "$mydir/$fname" \; | ||
echo "Check that a symbolic link '$fname' has successfully been created in '$PWD/$mydir'." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* My_Macros.cpp | ||
* MyMacros.cpp | ||
* This file is not the droid you're looking for. | ||
* An Arduino library which allows grouping of macros for your unique collection of boards. | ||
* The Arduino library identifies your unique collection of development boards. | ||
* Created by Debinix Team (C). Licensed under GPL-3.0. | ||
* Date 2022-08-10. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters