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

Method setGPIOpins

libraries/DAC8552/DAC8552.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80#if defined(ESP32)
81void DAC8552::setGPIOpins(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t select)
82{
83 _clock = clk;
84 _dataOut = mosi;
85 _select = select;
86 pinMode(_select, OUTPUT);
87 digitalWrite(_select, HIGH);
88
89 mySPI->end(); // disable SPI
90 mySPI->begin(clk, miso, mosi, select);
91}
92#endif
93
94

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected