generated from macoy/gamelib-project-template
6 changed files with 49 additions and 17 deletions
@ -1,16 +1,16 @@ |
|||
Copyright (c) 2021 Macoy Madson |
|||
|
|||
This file is part of GameLib Project. |
|||
This file is part of Drink Counter. |
|||
|
|||
GameLib Project is free software: you can redistribute it and/or modify |
|||
Drink Counter 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, |
|||
Drink Counter 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 Drink Counter. If not, see <https://www.gnu.org/licenses/>. |
@ -1,3 +1,8 @@ |
|||
#+title: GameLib Project |
|||
#+title: Drink Counter |
|||
|
|||
This is a template repository for gamelib-based projects. |
|||
Currently an Arduino project for helping me count my drinks. |
|||
|
|||
* Setup |
|||
|
|||
- Download the [[https://github.com/arduino/arduino-cli/releases][Arduino CLI]]. There may be more steps because I had installed the IDE first before I found the CLI. |
|||
- Update ~Build.sh~ to point to the Arduino CLI install. |
|||
|
@ -0,0 +1,23 @@ |
|||
;; 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 "DrinkCounter") |
|||
|
|||
(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 setup () |
|||
(pinMode LED_BUILTIN OUTPUT)) |
|||
|
|||
(defun loop () |
|||
;; turn the LED on (HIGH is the voltage level) |
|||
(digitalWrite LED_BUILTIN HIGH) |
|||
;; wait for a second |
|||
(delay 10000) |
|||
;; turn the LED off by making the voltage LOW |
|||
(digitalWrite LED_BUILTIN LOW) |
|||
;; wait for a second |
|||
(delay 1000)) |
@ -1,7 +0,0 @@ |
|||
(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") |
|||
|
|||
(defun main (&return int) |
|||
(return 0)) |
Loading…
Reference in new issue