mirror of https://github.com/ARMmbed/mbed-os.git
AnalogOut: Add explicit pinmap support
parent
eab08d7047
commit
bbd90b604b
|
@ -66,6 +66,15 @@ public:
|
||||||
analogout_init(&_dac, pin);
|
analogout_init(&_dac, pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Create an AnalogOut connected to the specified pin
|
||||||
|
*
|
||||||
|
* @param pinmap reference to strucure which holds static pinmap.
|
||||||
|
*/
|
||||||
|
AnalogOut(const PinMap &pinmap)
|
||||||
|
{
|
||||||
|
analogout_init_direct(&_dac, &pinmap);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set the output voltage, specified as a percentage (float)
|
/** Set the output voltage, specified as a percentage (float)
|
||||||
*
|
*
|
||||||
* @param value A floating-point value representing the output voltage,
|
* @param value A floating-point value representing the output voltage,
|
||||||
|
|
Loading…
Reference in New Issue