Skip to content

Commit 774be9b

Browse files
committed
Minor updates
1 parent 9caffcf commit 774be9b

File tree

3 files changed

+33
-26
lines changed

3 files changed

+33
-26
lines changed

config/sitemap.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,8 +1287,8 @@
12871287
"hash": "97d8ff268e598b197d705eddc63d0a4eb653554296f6283a9d216da6e9865f1d"
12881288
},
12891289
"reference/device-os/firmware.md": {
1290-
"date": "2023-10-18",
1291-
"hash": "4e37eec5d1f9bf66dc859b7ea5499a9183148d5ca8db178d9a3473cca79965c3"
1290+
"date": "2023-10-21",
1291+
"hash": "e95df05e09b1b04b2949dad277148b59a13ffb3a9102c2e193c432f7d4b4a867"
12921292
},
12931293
"reference/device-os/pin-info.md": {
12941294
"date": "2022-05-18",
@@ -1587,8 +1587,8 @@
15871587
"hash": "5eb86510d02810037678d5f563a36d3f7ea78e4e1019c83525fe77587c6cf057"
15881588
},
15891589
"troubleshooting/guides/build-tools-troubleshooting/specific-cli-version.md": {
1590-
"date": "2023-09-06",
1591-
"hash": "66358aa30ddf90f405ccf4ee6855820f57c2e59939dfeda2fdb06505e4172657"
1590+
"date": "2023-10-21",
1591+
"hash": "24501bde1968b74b268d36bd717513199eb3a9f9c175e518e5394ebee23b863d"
15921592
},
15931593
"troubleshooting/guides/build-tools-troubleshooting/troubleshooting-flashing-code.md": {
15941594
"date": "2022-08-24",
@@ -2279,8 +2279,8 @@
22792279
"hash": "f7ec692f347895ea420dd589741a8d823570eef6641364262b9f226fc8cec9ae"
22802280
},
22812281
"reference/device-os/api/battery-voltage/battery-voltage-photon-2.md": {
2282-
"date": "2023-09-20",
2283-
"hash": "f0324639ae8abe2829b1e1d07d6b36c4c35904df1aefe9c97f69e4521bdb5fd7"
2282+
"date": "2023-10-21",
2283+
"hash": "bd28c0c17739d5ce395ebe67d0c7c61e14c436f34093a2816246c7038f666936"
22842284
},
22852285
"reference/device-os/api/battery-voltage/battery-voltage-argon.md": {
22862286
"date": "2023-09-20",
@@ -3843,8 +3843,8 @@
38433843
"hash": "30a0ea5aed90da92b19d707fcace366d4bf782180cd63c42aa63d807f400ea1f"
38443844
},
38453845
"reference/device-os/api/system-calls/reset-reason.md": {
3846-
"date": "2023-09-20",
3847-
"hash": "1ca3b97c668b24749f0dff2df97ae22840361370bd99954dae0f7c69ada727c5"
3846+
"date": "2023-10-21",
3847+
"hash": "3fea340bdd84684076d16f3e748f051a1f492ddeee80b6d50c4450193525433e"
38483848
},
38493849
"reference/device-os/api/system-calls/backupramsync.md": {
38503850
"date": "2023-09-20",

src/content/reference/device-os/firmware.md

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4745,6 +4745,14 @@ float voltage = analogRead(A6) / 819.2;
47454745

47464746
The constant is from the ADC range (0 - 4095) mapped to the voltage from 0 - 5 VDC (the maximum supported on VBAT_MEAS).
47474747

4748+
There is a `CHG` pin defined on the P2, however it does not work properly.
4749+
4750+
{{collapse op="start" label="Show older information about CHG"}}
4751+
4752+
The current Photon 2 hardware is unable to reliably read the `CHG` pin. In particular, if you have a Photon 2 powered by both
4753+
USB and battery and is charging, then unplug the USB power, the charge LED will turn off, but the `CHG` pin will not change
4754+
state. This is a hardware issue and cannot be fixed in software.
4755+
47484756
The charge indicator on the Photon 2 can be read using:
47494757

47504758
```cpp
@@ -4754,6 +4762,8 @@ bool charging = digitalRead(CHG);
47544762

47554763
On the Photon 2, the `CHG` digital input is `HIGH` (1) when charging and `LOW` (0) when not charging, however you must set `pinMode(CHG, INPUT_PULLUP)`. You only have to set `pinMode` once, such as in setup.
47564764

4765+
{{collapse op="end"}}
4766+
47574767

47584768
### Battery Voltage - Argon
47594769

@@ -19735,20 +19745,21 @@ void setup() {
1973519745

1973619746
Returns a code describing reason of the last device reset. The following codes are defined:
1973719747

19738-
- `RESET_REASON_PIN_RESET`: Reset button or reset pin
19739-
- `RESET_REASON_POWER_MANAGEMENT`: Low-power management reset
19740-
- `RESET_REASON_POWER_DOWN`: Power-down reset
19741-
- `RESET_REASON_POWER_BROWNOUT`: Brownout reset
19742-
- `RESET_REASON_WATCHDOG`: Hardware watchdog reset
19743-
- `RESET_REASON_UPDATE`: Successful firmware update
19744-
- `RESET_REASON_UPDATE_TIMEOUT`: Firmware update timeout
19745-
- `RESET_REASON_FACTORY_RESET`: Factory reset requested
19746-
- `RESET_REASON_SAFE_MODE`: Safe mode requested
19747-
- `RESET_REASON_DFU_MODE`: DFU mode requested
19748-
- `RESET_REASON_PANIC`: System panic
19749-
- `RESET_REASON_USER`: User-requested reset
19750-
- `RESET_REASON_UNKNOWN`: Unspecified reset reason
19751-
- `RESET_REASON_NONE`: Information is not available
19748+
- `RESET_REASON_NONE`: Information is not available (0)
19749+
- `RESET_REASON_UNKNOWN`: Unspecified reset reason (10)
19750+
- `RESET_REASON_PIN_RESET`: Reset button or reset pin (20)
19751+
- `RESET_REASON_POWER_MANAGEMENT`: Low-power management reset (30)
19752+
- `RESET_REASON_POWER_DOWN`: Power-down reset (40)
19753+
- `RESET_REASON_POWER_BROWNOUT`: Brownout reset (50)
19754+
- `RESET_REASON_WATCHDOG`: Hardware watchdog reset (60)
19755+
- `RESET_REASON_UPDATE`: Successful firmware update (70)
19756+
- `RESET_REASON_UPDATE_ERROR`: Firmware update error, deprecated (80)
19757+
- `RESET_REASON_UPDATE_TIMEOUT`: Firmware update timeout (90)
19758+
- `RESET_REASON_FACTORY_RESET`: Factory reset requested (100)
19759+
- `RESET_REASON_SAFE_MODE`: Safe mode requested (110)
19760+
- `RESET_REASON_DFU_MODE`: DFU mode requested (120)
19761+
- `RESET_REASON_PANIC`: System panic (130)
19762+
- `RESET_REASON_USER`: User-requested reset (140)
1975219763

1975319764
`resetReasonData()`
1975419765

src/content/troubleshooting/guides/build-tools-troubleshooting/specific-cli-version.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ The current source for the Particle CLI can be found [in Github](https://github.
2121

2222
Some versions of interest:
2323

24-
- CLI v3.5.0 switched to Device OS 4.0.0 LTS.
25-
- If you need to use Device OS 2.3.0 LTS, you can use CLI v3.2.0.
2624
- If you need to use older platforms such as Redbear Duo and Core, use v2 (v2.16.0, currently).
27-
- The release notes indicate which Device OS version is installed by that version of the CLI if you want to install a specific version
28-
- There is no way to install the developer preview releases of Device OS (3.x, 5.x) using `particle update`.
2925

3026

3127
To replace the existing `particle` command you can use:

0 commit comments

Comments
 (0)