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.
Dependents: MAX5216_16_Bit_DAC_Hello_Code
Fork of MAX5487_Digital_Pot_Potentiometer_Rheostat_Resistor_Wiper by
Diff: MAX5487.cpp
- Revision:
- 4:280d1e05f2ca
- Parent:
- 3:4d4053c4c29e
- Child:
- 5:bd8dbd9be2ac
--- a/MAX5487.cpp Sun Jul 15 03:49:41 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-#include "MAX5487.h"
-
-MAX5487::MAX5487(SPI &spi, DigitalOut &pin) : m_spi(spi), m_pin(pin)
-{
- m_pin = 1;
-}
-
-
-void MAX5487::writeCommand(MAX5487::setting_t setting, int value)
-{
- if((value >> 8) > 0) {
- printf("value in writeCommand > 8 bits!\r\n");
- return;
- }
- m_pin = 0;
- m_spi.write(setting);
- m_spi.write(value);
- m_pin = 1;
-}
-
-
-void MAX5487::writeCommand(MAX5487::setting_t setting)
-{
- m_pin = 0;
- m_spi.write(setting);
- m_pin = 1;
-}
-
\ No newline at end of file
