Skip to content

Commit c29b047

Browse files
get ready for W release
1 parent 2603653 commit c29b047

File tree

4 files changed

+133
-44
lines changed

4 files changed

+133
-44
lines changed

docs/source/api.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,11 @@ phi2
156156
codepage
157157
--------
158158
159-
.. c:function:: int codepage(void)
159+
.. c:function:: int codepage(int cp)
160160
161-
Retrieves the CP setting from the RIA. This is the encoding the filesystem is using and, if VGA is installed, the console and default font.
161+
Temporarily overrides the code page if non zero. Returns to system setting when 6502 stops. This is the encoding the filesystem is using and, if VGA is installed, the console and default font. If zero, the system CP setting is selected and returned. If the requested code page is unavailable, a different code page will be selected and returned. For example: ``if (850!=codepage(850)) puts("error");``
162+
163+
:param cp: code page or 0 for system setting.
162164

163165
:returns: The code page. One of: 437, 720, 737, 771, 775, 850, 852, 855, 857, 860, 861, 862, 863, 864, 865, 866, 869, 932, 936, 949, 950.
164166
:errno: will not fail

docs/source/index.rst

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,49 @@
1010
Picocomputer 6502
1111
=================
1212

13-
The Picocomputer explores retro computing and game development by bridging the void between genuine 8-bit hardware and modern devices.
13+
The **Picocomputer 6502** is a platform for exploring retro computing and game development, bridging the gap between authentic 8-bit hardware and modern devices.
1414

1515
.. image:: _static/founders.jpg
16-
:width: 600
17-
:alt: Alternative text
16+
:width: 600
17+
:alt: Picocomputer Photo
1818

1919
Key Features
2020
------------
21-
* 64KB of System RAM
22-
* 64KB of Extended RAM
23-
* VGA Graphics
24-
* 8-channel Stereo Sound Generator
25-
* USB for Keyboard, Mouse, and Gamepads
26-
* 100% through-hole
21+
22+
- **64KB System RAM**
23+
- **64KB Extended RAM**
24+
- **VGA Graphics Output**
25+
- **8-Channel Stereo Sound Generator**
26+
- **USB Support** for Keyboard, Mouse, and Gamepads
27+
- **WiFi** for NTP and modem emulation
28+
- **100% Through-Hole Construction**
2729

2830
Resources
2931
---------
3032

31-
Please use GitHub and the Forums for support, Discord for casual chat.
33+
For support and community interaction, please use the following channels:
34+
35+
- **GitHub:** https://github.com/picocomputer
36+
- **Forums:** https://github.com/picocomputer/community/discussions
37+
- **Discord:** https://discord.gg/TC6X8kTr6d
38+
- **Wiki:** https://github.com/picocomputer/community/wiki
39+
- **YouTube:** https://youtube.com/playlist?list=PLvCRDUYedILfHDoD57Yj8BAXNmNJLVM2r
40+
41+
Datasheets & Documentation
42+
--------------------------
43+
44+
The RP6502 chipset consists of three main components:
3245

33-
* GitHub: https://github.com/picocomputer
34-
* Forums: https://github.com/picocomputer/community/discussions
35-
* Discord: https://discord.gg/TC6X8kTr6d
36-
* Wiki: https://github.com/picocomputer/community/wiki
37-
* YouTube: https://youtube.com/playlist?list=PLvCRDUYedILfHDoD57Yj8BAXNmNJLVM2r
46+
- :doc:`RP6502-RIA<ria>`: An interface adapter for the 6502, similar to CIA, VIA, and ACIA devices.
47+
- :doc:`RP6502-RIA-W<ria_w>`: An alternative RIA with wireless radio technology.
48+
- :doc:`RP6502-VGA<vga>`: An optional video chip that connects to the RP6502-RIA.
3849

39-
Datasheets
40-
----------
50+
All components are based on Raspberry Pi Pico 2 boards running RP6502 firmware.
4151

42-
The RP6502 chipset comes in two parts. The RP6502-RIA is an interface adapter that connects to a 6502 much like CIA, VIA, and ACIA devices. The RP6502-VGA is an optional video chip that connects to the RP6502-RIA. Both of these are simply Raspberry Pi Picos with the RP6502 firmware.
52+
Further documentation:
4353

44-
* :doc:`Schematic, PCB, and Parts <hardware>`
45-
* :doc:`RIA Interface Adapter <ria>`
46-
* :doc:`VGA Graphics Processing Unit <vga>`
47-
* :doc:`API for 6502 Programing <api>`
54+
- :doc:`Schematic, PCB, and Parts <hardware>`
55+
- :doc:`RIA Interface Adapter <ria>`
56+
- :doc:`RIA W Interface Adapter <ria_w>`
57+
- :doc:`VGA Graphics Processing Unit <vga>`
58+
- :doc:`API for 6502 Programming <api>`

docs/source/ria_w.rst

Lines changed: 59 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,86 @@
11
RP6502-RIA-W
22
############
33

4-
Rumbledethumps Picocomputer 6502 Interface Adapter W.
4+
Rumbledethumps Picocomputer 6502 Interface Adapter W
55

66
.. contents:: Table of Contents
77
:local:
88

99
1. Introduction
1010
===============
1111

12-
The RP6502 Interface Adapter W (RIA W) is a Raspberry Pi Pico 2 W with RP6502-RIA-W firmware. The RIA W provides everythiung the :doc:`ria` does along with the wireless services described in this document.
12+
The **RP6502 Interface Adapter W (RIA W)** is a Raspberry Pi Pico 2 W running the RP6502-RIA-W firmware. The RIA W provides all the features of the :doc:`ria` plus integrated wireless services, as described below.
1313

1414
2. WiFi Setup
1515
=============
1616

17-
The WiFi hardware is an Infineon CYW43439 supporting Wi-Fi 4 (802.11n). Configuration is done from the console.
17+
The RIA W uses an Infineon CYW43439 chip supporting Wi-Fi 4 (802.11n). Configuration is performed via the console interface.
1818

19-
`SET RF (0|1)` is used to disable all radios without clearing any other settings. It defaults to 1 (enabled).
19+
- **Enable/Disable Radio:**
20+
Use ``SET RF (0|1)`` to enable (1, default) or disable (0) all radios without affecting other settings.
2021

21-
`SET RFCC (cc|-)` can be used to improve WiFi performance. `help set rfcc` will show the supported country codes. Clearing with "-" will use the Worldwide default.
22+
- **Set Country Code:**
23+
``SET RFCC (cc|-)`` sets the WiFi country code for optimal performance (e.g., ``US``, ``GB``). Use ``help set rfcc`` to list supported codes. Use ``-`` to reset to the worldwide default.
2224

23-
`SET SSID (ssid|-)` sets the name of your WiFi network, also called the Service Set Identifier.
25+
- **Set Network Name (SSID):**
26+
``SET SSID (ssid|-)`` sets your WiFi network name (Service Set Identifier). Use ``-`` to clear.
2427

25-
`SET PASS (pass|-)` sets the password for your WiFi network, if you have one.
28+
- **Set Network Password:**
29+
``SET PASS (pass|-)`` sets your WiFi password. Use ``-`` to clear.
2630

27-
You can check WiFi status with the `status` command.
31+
- **Check WiFi Status:**
32+
Use the ``status`` command to view current WiFi connection and settings.
2833

29-
3. Network Time Protocol
30-
========================
34+
3. Network Time Protocol (NTP)
35+
==============================
3136

32-
The real time clock will automatically update its time whenever connected to the internet.You can check NTP status with the `status` command.
37+
The real-time clock (RTC) automatically synchronizes with internet time servers when connected.
38+
Check NTP status with the `status` command.
3339

34-
If you prefer local time instead of UTC, set the TZ. Always remember `help set tz` is there for you. Once set, it will adjust for daylight savings time if your locale uses it.
40+
- **Set Time Zone:**
41+
To use local time instead of UTC, set your time zone with ``SET TZ``. Use ``help set tz`` for guidance. Daylight saving adjustments are automatic if your locale observes them.
3542

36-
Once your Wifi and time zone are set, you can forget about time. Drift isn't a problem and there's no battery to replace.
43+
Once WiFi and time zone are configured, timekeeping is automatic—no battery required and no drift to worry about.
3744

38-
4. Modem
39-
========
45+
4. Modem Emulation
46+
==================
4047

41-
lorem ipsum
48+
The RIA W can emulate a Hayes modem for BBS access. Beware that raw TCP and telnet protocols are plain text in transit.
4249

43-
3.1. AT Commands
44-
----------------
50+
- **AT Commands:**
51+
The modem interface supports standard AT commands for dialing, answering, and configuration.
4552

46-
dolar sit amet
53+
Example AT commands:
54+
55+
- ``ATDexample.com:23`` — Dial a BBS
56+
- ``+++`` — Escape back to command mode
57+
- ``ATE1`` — Set echo
58+
- ``ATH`` — Hang up
59+
- ``ATO`` — Return to call
60+
- ``ATQ0`` — Set quieting
61+
- ``ATSxxx?`` — Query register number xxx
62+
- ``ATSxxx=yyy`` — Set register number xxx with value yyy
63+
- ``ATV1`` — Set verbosity
64+
- ``ATX0`` — Set progress messaging
65+
- ``ATZ`` — Load profile from NVRAM
66+
- ``AT&F`` — Load factory profile
67+
- ``AT&V`` — View profile
68+
- ``AT&W`` — Write profile to NVRAM
69+
- ``AT&Z0=example.com:23`` — Save "telephone number" to NVRAM
70+
- ``AT+RF=your_ssid`` and ``AT+RF?`` — Access RIA setting RF
71+
- ``AT+RFCC=your_ssid`` and ``AT+RFCC?`` — Access RIA setting RFCC
72+
- ``AT+SSID=your_ssid`` and ``AT+SSID?`` — Access RIA setting SSID
73+
- ``AT+PASSS=your_ssid`` and ``AT+PASS?`` — Access RIA setting PASS
74+
75+
A full telnet stack has yet to be written so all connections are raw TCP.
76+
77+
"Telephone Numbers" are saved immadiately and are not linked to profiles.
78+
79+
`Please contribute to this documentation. <https://github.com/picocomputer/picocomputer.github.io>`_
80+
81+
5. Additional Resources
82+
=======================
83+
84+
- :doc:`RIA Interface Adapter <ria>`
85+
- :doc:`API for 6502 Programming <api>`
86+
- :doc:`Schematic, PCB, and Case Files <hardware>`

docs/source/vga.rst

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ C0 control codes
487487
:widths: 5 5 5 5 80
488488
:header-rows: 1
489489

490-
* - ^
490+
* - \^
491491
- C0
492492
- Abbr
493493
- Name
@@ -554,6 +554,14 @@ Missing numbers are treated as 0. Some functions, like cursor movement, treat 0
554554
- Abbr
555555
- Name
556556
- Effect
557+
* - CSI n A
558+
- CUU
559+
- Cursor Up
560+
- Move the cursor n cells up.
561+
* - CSI n B
562+
- CUD
563+
- Cursor Down
564+
- Move the cursor n cells down.
557565
* - CSI n C
558566
- CUF
559567
- Cursor Forward
@@ -566,10 +574,38 @@ Missing numbers are treated as 0. Some functions, like cursor movement, treat 0
566574
- DCH
567575
- Delete Character
568576
- Delete n cells, move line left.
577+
* - CSI n ; m H
578+
- CUP
579+
- Cursor Position
580+
- Move the cursor to row n column m. 1-indexed.
581+
* - CSI n J
582+
- ED
583+
- Erase in Display
584+
- - 0: Erases from the cursor position to the end of the screen.
585+
- 1: Erases from the beginning of the screen to the cursor position.
586+
- 2, 3: Erases the entire screen.
587+
* - CSI n K
588+
- EL
589+
- Erase in Line
590+
- - 0: Erases from the cursor position to the end of the line.
591+
- 1: Erases from the beginning of the line to the cursor position.
592+
- 2: Erases the entire line.
569593
* - CSI n m
570594
- SGR
571595
- Select Graphic Rendition
572596
- Selects colors and styles.
597+
* - CSI 6n
598+
- DSR
599+
- Device Status Report
600+
- Responds with the cursor position (CPR) ESC\[n;mR, where n is the row and m is the column. 1-indexed.
601+
* - CSI s
602+
- SCP
603+
- Save Current Cursor Position
604+
- Save cursor row and col for retrieval with RCP.
605+
* - CSI u
606+
- RCP
607+
- Restore Saved Cursor Position
608+
- Moves cursor to position stored by SCP.
573609

574610

575611
SGR Parameters

0 commit comments

Comments
 (0)