Arduino Toolkit - @arduino/decrementResourceCount


: count = decrementResourceCount (ar, resource)

Decrement the count of a named resource by 1 and return the new count.

Inputs

ar - connected arduino object

resource - name of resource to decrement count.

Outputs

count = count of uses registered to resource.

See also: getResourceCount. incrementResourceCount.