pxt-calliope/docs/device/crocodile-clips.md
Amerlander 918af4f3ac
Bump V3.0.22 ()
* change simulator svg

* change radio image

* Remove google fonts cdn

* change color of 'advanced' button

* font fix

* font fix 2

* display fix

* change fullsceen simulator bg

* Continuous servo

* handle continuous state

* adding shims

* update rendering for continuous servos

* fixing sim

* fix sig

* typo

* fix sim

* bump pxt

* bump pxt

* rerun travis

* Input blocks revision

- add Button and Pin event types
- merge onPinPressed & onPinReleased in new onPinEvent function
- create new onButtonEvent function

* update input blocks in docs and tests

* remove device_pin_release block

* Hide DAL.x behind Enum

* bring back deprecated blocks, but hide them

* shims and locales files

* fix input.input. typing

* remove buildpr

* bump V3

* update simulator aspect ratio

* add Loudness Block

* revoke loudness block

* Adds soundLevel

To be replaced by pxt-common-packages when DAL is updated.

* Remove P0 & P3 from AnalogPin

Co-authored-by: Juri <gitkraken@juriwolf.de>
2020-09-08 02:04:25 -07:00

1.5 KiB

Crocodile clips

The large holes at the bottom of the board are designed to attach alligator/crocodile clips to create electrical circuit with other components.

~hint

No crocodile clips!?!?! Use wires or aluminium foil!

~

Connecting crocodile clips

The hole for P0 and GND allow to grab the board on the side which makes for a great grip.

Pass one jaw in the hole and grab the side of the board with the other jaw.

For the center holes, P1 and P2, you can also grab the bottom of the board but they are a bit harder to grip.

You can also grip the board between the jaws. In which case, you will want to make sure to avoid overlapping the jaws with the other pins as it will create short-circuit in the board.

Adding a little tape helps keeping the crocodile clips in place.

Example: on pin pressed with random numbers

This example displays a random number every time the crocodile clip holds GND then connects and disconnects the P0 pin. Each time the crocodile clip is firmly connected and disconnected from pin P0, the @boardname@ will return a random Number between 0 and the parameter limit.

input.onPinPressed(TouchPin.P0, () => {
    basic.showNumber(randint(0, 10))
})

See also

micro:bit pins