aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-04-01 14:04:51 +0200
committerThomas White <taw@physics.org>2023-04-01 14:04:51 +0200
commit1411694a9e323d000675a02cf89f801bfe4565f0 (patch)
treea1c7afa3550b6d8d02c9d18cc49246a5286befc9
parent91ed3c300075fb96032fa767b66bf2e847eda7fd (diff)
docs/new-fixture.rst: Remove old quoting
-rw-r--r--docs/new-fixture.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/new-fixture.rst b/docs/new-fixture.rst
index 7a5b999..dc55601 100644
--- a/docs/new-fixture.rst
+++ b/docs/new-fixture.rst
@@ -132,10 +132,10 @@ Here is the code::
;; List of attributes
(fixture-attributes
- (attr-continuous 'intensity '(0 100) 0)
- (attr-continuous 'colour-temperature '(2800 6400) 3200)
- (attr-list 'strobe '(#f #t) #f)
- (attr-continuous 'strobe-frequency '(1 25) 1))
+ (attr-continuous intensity '(0 100) 0)
+ (attr-continuous colour-temperature '(2800 6400) 3200)
+ (attr-list strobe '(#f #t) #f)
+ (attr-continuous strobe-frequency '(1 25) 1))
;; Scanout code follows
@@ -143,18 +143,18 @@ Here is the code::
(set-chan8 4 0)
;; Set strobe channel
- (if (get-attr 'strobe)
+ (if (get-attr strobe)
(set-chan8 3 (scale-and-clamp-to-range
- (get-attr 'strobe-frequency)
+ (get-attr strobe-frequency)
'(1 25)
'(16 255)))
(set-chan8 3 0))
;; Set intensity channel
- (set-chan8 5 (percent->dmxval8 (get-attr 'intensity))))
+ (set-chan8 5 (percent->dmxval8 (get-attr intensity))))
;; Set values of warm and cold LEDs according to colour temperature
- (let ((coltemp (get-attr 'colour-temperature)))
+ (let ((coltemp (get-attr colour-temperature)))
(set-chan8 1 (scale-and-clamp-to-range coltemp '(2800 6400) '(0 255)))
(set-chan8 2 (scale-and-clamp-to-range coltemp '(2800 6400) '(255 0))))