MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / reset

Method reset

libraries/AD985X/AD985X.cpp:102–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101
102void AD9850::reset()
103{
104 // be sure to select the correct device
105 digitalWrite(_select, HIGH);
106 pulsePin(_reset);
107 if (_hwSPI)
108 {
109 #if defined(ESP32)
110 if (_useHSPI) pulsePin(14); // HSPI magic number clock
111 else pulsePin(18); // VSPI magic number clock
112 #else
113 // UNO hardware SPI
114 pulsePin(SPI_CLOCK);
115 #endif
116 }
117 else pulsePin(_clock);
118 digitalWrite(_select, LOW);
119
120 _config = 0; // 0 phase no power down
121 _freq = 0;
122 _factor = 0;
123 _offset = 0;
124 _autoUpdate = true;
125 writeData();
126}
127
128
129void AD9850::powerDown()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36