Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pita_api/mod.ts>IO#setBitness

API for Pita projects, simpliest way to develop secure and powerful webapps for redpitaya.
Latest
method IO.prototype.setBitness
import { IO } from "https://deno.land/x/pita_api@0.9.1/mod.ts";

Set the bitness of the IO. Only for Analog IOs.

Examples

Example 1

analogOut1.setBitness(4n)

Parameters

bitness: Bitness<12>
  • The "bitness" parameter is a value that represents the number of bits used in the ADC/DAC.