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

Method setGPIOpins

libraries/DAC8554/DAC8554.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected