Manual: 80x32/132x64 limits, fast baud rates, smooth scroll; drop duplicate PC section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe1daf180d
commit
af9f381ec8
2 files changed
+8
-23
No files matched your search
+8
-23
@@ -471,7 +471,9 @@ colours, `PRINT CHR$(27);"[4m"` turns on underlining, and
|
|||||||
`PRINT CHR$(27);"[2K"` erases the current line.
|
`PRINT CHR$(27);"[2K"` erases the current line.
|
||||||
|
|
||||||
When the cursor passes the bottom row the text scrolls. The graphics layer
|
When the cursor passes the bottom row the text scrolls. The graphics layer
|
||||||
stays where it is.
|
stays where it is. With **SW8** up the scroll is smooth but held to 7.5 lines a
|
||||||
|
second (15 with SW9 up as well), which slows down long listings; flip SW8 down
|
||||||
|
for full speed.
|
||||||
|
|
||||||
## 9. The machine
|
## 9. The machine
|
||||||
|
|
||||||
@@ -857,7 +859,10 @@ into BASIC, and what BASIC prints is also sent back to the PC. The tools need:
|
|||||||
```
|
```
|
||||||
If the port is then only open to root (`ls -l /dev/ttyUSB1`), the getty left
|
If the port is then only open to root (`ls -l /dev/ttyUSB1`), the getty left
|
||||||
it that way; `sudo chmod 666 /dev/ttyUSB1` opens it again.
|
it that way; `sudo chmod 666 /dev/ttyUSB1` opens it again.
|
||||||
3. The baud rate set by SW1:0 (SW0 up is 9600).
|
3. The baud rate set by SW1:0: `00` 115200, `01` 9600, `10` 921600, `11`
|
||||||
|
3,000,000. The tools take `--baud` with any of these; 3,000,000 is the
|
||||||
|
fastest and works fine, since the board paces the PC with XON/XOFF. The
|
||||||
|
examples below use 9600.
|
||||||
|
|
||||||
**Sending a program to the board:**
|
**Sending a program to the board:**
|
||||||
|
|
||||||
@@ -889,26 +894,6 @@ When you're done, flip SW14 back down, and bring the getty back with
|
|||||||
`sudo systemctl unmask --runtime serial-getty@ttyUSB1` (a reboot does it too).
|
`sudo systemctl unmask --runtime serial-getty@ttyUSB1` (a reboot does it too).
|
||||||
Don't do that with SW14 up.
|
Don't do that with SW14 up.
|
||||||
|
|
||||||
Keep programs as plain text files with one numbered line per line. To type one
|
|
||||||
into the board:
|
|
||||||
|
|
||||||
1. Flip **SW15** and **SW14** up.
|
|
||||||
2. Make sure nothing else is using the serial port. If a login getty is running
|
|
||||||
on it, stop it:
|
|
||||||
```
|
|
||||||
sudo systemctl stop serial-getty@ttyUSB1
|
|
||||||
```
|
|
||||||
3. Send the file at the baud rate set by SW1:0 (SW0 up is 9600):
|
|
||||||
```
|
|
||||||
tools/send-bas.py basic/examples/graphics-demo.bas --baud 9600 --run
|
|
||||||
```
|
|
||||||
This sends `NEW`, then the program, then `RUN`. Leave out `--run` to only
|
|
||||||
load it, and add `--keep` to merge it into the program already there.
|
|
||||||
4. Flip SW14 back down when you're done. Restart the getty with
|
|
||||||
`sudo systemctl start serial-getty@ttyUSB1` if you want the PC login back.
|
|
||||||
|
|
||||||
Pasting into a terminal program such as `picocom` works too.
|
|
||||||
|
|
||||||
## 13. Error messages
|
## 13. Error messages
|
||||||
|
|
||||||
An error stops the program and reports the line, for example
|
An error stops the program and reports the line, for example
|
||||||
@@ -999,6 +984,6 @@ bouncing ball and a Mandelbrot set, then prints how long it all took.
|
|||||||
| User functions | FNA–FNZ, one argument each |
|
| User functions | FNA–FNZ, one argument each |
|
||||||
| FOR nesting / GOSUB nesting | 16 / 32 |
|
| FOR nesting / GOSUB nesting | 16 / 32 |
|
||||||
| Graphics | 320 × 240, 16 colours |
|
| Graphics | 320 × 240, 16 colours |
|
||||||
| Text | 80 × 30 |
|
| Text | 80 × 32, or 132 × 64 |
|
||||||
| Files in flash | 64, 1,784 KB in all, 32 KB each |
|
| Files in flash | 64, 1,784 KB in all, 32 KB each |
|
||||||
| Open data files | 3 |
|
| Open data files | 3 |
|
||||||
Binary file not shown.
Reference in new issue
Block a user