Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: AnalogIO_1ch/MCP4921.hpp
- Revision:
- 1:18123753e1d0
- Parent:
- 0:b027da9cfc23
--- a/AnalogIO_1ch/MCP4921.hpp Mon Jul 28 07:25:49 2014 +0000 +++ b/AnalogIO_1ch/MCP4921.hpp Tue Jul 29 04:51:09 2014 +0000 @@ -6,7 +6,7 @@ // D13 SPI Serial Clock // D10 SPL Slave Select // -// 2014/07/18, Copyright (c) 2014 MIKAMI, Naoki +// 2014/07/29, Copyright (c) 2014 MIKAMI, Naoki //------------------------------------------------------ #ifndef MCP4921_HPP @@ -20,14 +20,14 @@ { public: // Constructor - DacMCP4921(PinName mosi = SPI_MOSI, // D11 - PinName sclk = SPI_SCK, // D13 - PinName cs = SPI_CS, // D10 + DacMCP4921(PinName mosi = SPI_MOSI, // D11, pin4 + PinName sclk = SPI_SCK, // D13, pin3 + PinName cs = SPI_CS, // D10, pin2 int hz = 20000000); - // -1.0f <= valeu <= 1.0f + // -1.0f <= value <= 1.0f void Write(float value); - // 0 <= valeu <= 4095 + // 0 <= value <= 4095 void Write(uint16_t value); // generate LDAC pulse for dual DAC void Ldac();