DoStuff Wiki
Attachments
History
Blame
View Source
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Changelog
Page Index
Hardware
Backplane
Board Features
Memory Map
News
20260512 - Increased Cpu Speed
Programming
Examples
Duart
PIT
Handling Interrupts
Machine Library
MMU
Reference Material
Runtime
Toolchains
Project Ideas
Operating System
Gloworm Port
Linux Port
Atari Vector Generator
Ethernet Card
Keyboard Controller
Monitor
BIOS
Books
Datasheets
Getting Connected
Home
Specs and Tech Notes
Programming
Machine Library
91e139
Commit
91e139
2026-03-21 15:06:40
Bob Green
: -/-
programming/machine library.md
..
@@ 24,3 24,11 @@
| 8 | Available to user. |
| 9 | Available to user. |
| 10 | Available to user. |
+
+
Two functions are provided, one to turn on a led, and another to turn it off.
+
+
```C
+
void set_led(int lednum);
+
void clear_led(int lednum);
+
```
+
Where `lednum` is an integer in the range of 5 through to 10, as per the table above. Any other value will be silently ignored.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9