Skip to content

NanoXRP: Battery voltage function, resetbot improvements, fixed package.json#96

Open
SaintSampo wants to merge 3 commits into
mainfrom
jacob-nanoxrp
Open

NanoXRP: Battery voltage function, resetbot improvements, fixed package.json#96
SaintSampo wants to merge 3 commits into
mainfrom
jacob-nanoxrp

Conversation

@SaintSampo
Copy link
Copy Markdown
Collaborator

Replace the raw ADC threshold in Board.is_on with a voltage-based check (threshold 4.272 V) and add get_battery_voltage to read and convert ADC values. get_battery_voltage handles NanoXRP and RP2040 scaling and briefly toggles the VIN pin when needed. Also remove manual VIN pin reconfiguration from resetbot.py.

Replace the raw ADC threshold in Board.is_on with a voltage-based check (threshold 4.272 V) and add get_battery_voltage to read and convert ADC values. get_battery_voltage handles NanoXRP and RP2040 scaling and briefly toggles the VIN pin when needed. Also remove manual VIN pin reconfiguration from resetbot.py.
Include XRPLib/buzzer.py and XRPExamples/buzzer_examples.py in package urls so the buzzer module and its example are packaged, and increment package version from 2.1.3 to 2.1.4.
@SaintSampo SaintSampo changed the title NanoXRP: Battery voltage/resetbot improvements NanoXRP: Battery voltage function,, resetbot improvements, fixed package.json May 14, 2026
@SaintSampo SaintSampo changed the title NanoXRP: Battery voltage function,, resetbot improvements, fixed package.json NanoXRP: Battery voltage function, resetbot improvements, fixed package.json May 14, 2026
Replace the module-import check for XRPLib.buzzer with an explicit hardware capability check using hasattr(Pin.board, "BOARD_BUZZER") in XRPLib/resetbot.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant