Skip to content
Jan Cumps edited this page Oct 27, 2023 · 31 revisions

Programmer guide

SCPI commands and LabVIEW driver blocks are documented on element14 community.
image

SCPI function reference

gpio out

DIGI:OUT# 0|1
DIGI:OUT#?
0: 22 (led on pico-eurocard)
1: 14
2: 15

gpio in

DIGI:INP#?
0: 20
1: 21
2: 27 (button on pico-eurocard)

adc

ANA:INP#:RAW?
0: ADC0 GP26
1: ADC2 GP28

high definition adc (16 bit ADS1115)

ANA:HIRES:INP#:RAW?
0: AIN0
1: AIN1
2: AIN2
3: AIN3

pwm

ANA:OUTP#:RAW <0:4095>
ANA:OUTP#:RAW?
0: GP16
1: GP17
2: GP18

SCPI reference: device specific registers

digital input:

STATus:OPERation:DIGItal:INPut:CONDition?
STATus:OPERation:DIGItal:INPut:PTRansition
STATus:OPERation:DIGItal:INPut:PTRansition?
STATus:OPERation:DIGItal:INPut:NTRansition
STATus:OPERation:DIGItal:INPut:NTRansition?
STATus:OPERation:DIGItal:INPut:EVENt?
STATus:OPERation:DIGItal:INPut:ENABle
STATus:OPERation:DIGItal:INPut:ENABle?
0: 20
1: 21
2: 27 (button on pico-eurocard)

fanout: OPER[0]

contributing

check the project backlog for pending work

branches

  • maintenance branch: main
  • development branch for next release: development

Both branches can be updated with pull requests from this repository or (preferred) your personal fork.
When working on a new feature, base the feature branch in your fork on the development branch for the next release, and create pull request that targets this repository's development branch.
When working on a bug fix, base the feature branch in your fork on the maintenance branch main, and create pull request that targets this repository's main.
Sync your fork often. Also before starting a feature or creating a pull request.