2024-11-11 14:36:11 -06:00
|
|
|
|
|
|
|
;; start is the intended function to load this ext.lisp file
|
|
|
|
;; I use `(save-image 'start)`
|
|
|
|
(defun start () (load-package "ext.lisp"))
|
|
|
|
|
|
|
|
;; Quick shorthand
|
|
|
|
(defun dir () (directory))
|
|
|
|
|
2024-11-11 16:27:44 -06:00
|
|
|
;; File manipulation
|
2024-11-11 14:36:11 -06:00
|
|
|
(defun file-read (filename) (with-sd-card (str filename) (read str)))
|
|
|
|
(defun file-append (filename data) (with-sd-card (str filename 2) (print data str)))
|
|
|
|
(defun file-write (filename data) (with-sd-card (str filename 2) (print data str)))
|
2024-11-11 16:27:44 -06:00
|
|
|
|
|
|
|
;; Maths
|
|
|
|
(defun sq (x) (* x x))
|