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

Method setGPIOpins

libraries/AD985X/AD985X.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87#if defined(ESP32)
88void AD9850::setGPIOpins(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t select)
89{
90 _clock = clk;
91 _dataOut = mosi;
92 _select = select;
93 pinMode(_select, OUTPUT);
94 digitalWrite(_select, LOW);
95
96 mySPI->end(); // disable SPI
97 mySPI->begin(clk, miso, mosi, select);
98}
99#endif
100
101

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected