Browse Source

Add submodule, initial keyboard stuff

master
Macoy Madson 6 months ago
parent
commit
4d616438ee
  1. 24
      Build.sh
  2. 8
      COPYING
  3. 1
      Dependencies/cakelisp
  4. 1
      Dependencies/gamelib
  5. 4
      ReadMe.org
  6. 0
      src/Config_RP2040.cake
  7. 6
      src/Keypad.cake

24
Build.sh

@ -9,10 +9,26 @@ cd $CAKELISP_DIR
cd ../..
echo "\n\nGameLib Project\n\n"
echo "\n\nKeyboards\n\n"
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
$CAKELISP --verbose-processes --execute \
src/Config_Linux.cake \
src/Main.cake || exit $?
#
# Keypad
#
$CAKELISP --verbose-processes --skip-build \
src/Config_RP2040.cake \
src/Keypad.cake || exit $?
# Arduino build expects things to have specific names and extensions
mv cakelisp_cache/Keypad/Keypad.cake.c cakelisp_cache/Keypad/Keypad.ino || exit $?
# cp src/LowPower.* cakelisp_cache/Keypad/ || exit $?
# mv cakelisp_cache/Keypad/LowPower.c cakelisp_cache/Keypad/LowPower.ino || exit $?
/media/macoy/Preserve/Programs/arduino-cli_0.29.0-rc.1_Linux_64bit/arduino-cli --no-color \
compile -b arduino:avr:uno ./cakelisp_cache/Keypad/Keypad.ino || exit $?
/media/macoy/Preserve/Programs/arduino-cli_0.29.0-rc.1_Linux_64bit/arduino-cli --no-color \
upload -b arduino:avr:uno --port /dev/ttyACM0 ./cakelisp_cache/Keypad || exit $?

8
COPYING

@ -1,16 +1,16 @@
Copyright (c) 2021 Macoy Madson
This file is part of GameLib Project.
This file is part of Keyboards.
GameLib Project is free software: you can redistribute it and/or modify
Keyboards is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GameLib Project is distributed in the hope that it will be useful,
Keyboards is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GameLib Project. If not, see <https://www.gnu.org/licenses/>.
along with Keyboards. If not, see <https://www.gnu.org/licenses/>.

1
Dependencies/cakelisp

@ -0,0 +1 @@
Subproject commit 753ba5b084ef9c7e20a1387d56b23cba3db72549

1
Dependencies/gamelib

@ -0,0 +1 @@
Subproject commit 036744cca4e777449bc7fb1e4fe3c63e97df0040

4
ReadMe.org

@ -1,3 +1,3 @@
#+title: GameLib Project
#+title: Keyboards
This is a template repository for gamelib-based projects.
This is my dumping ground for various physical keyboard firmware and designs.

0
src/Config_Linux.cake → src/Config_RP2040.cake

6
src/Main.cake → src/Keypad.cake

@ -1,7 +1,13 @@
;; Arduino build expects things to have specific names and extensions. We'll create a build label
;; just to make our build directory match, which appears to be necessary.
(add-build-config-label "Keypad")
(set-cakelisp-option cakelisp-src-dir "Dependencies/cakelisp/src")
(add-cakelisp-search-directory "Dependencies/gamelib/src")
(add-cakelisp-search-directory "Dependencies/cakelisp/runtime")
(add-cakelisp-search-directory "src")
(import "CHelpers.cake")
(defun main (&return int)
(return 0))
Loading…
Cancel
Save