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

Method setGPIOpins

libraries/DAC8550/DAC8550.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74#if defined(ESP32)
75void DAC8550::setGPIOpins(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t select)
76{
77 _clock = clk;
78 _dataOut = mosi;
79 _select = select;
80 pinMode(_select, OUTPUT);
81 digitalWrite(_select, HIGH);
82
83 mySPI->end(); // disable SPI
84 mySPI->begin(clk, miso, mosi, select);
85}
86#endif
87
88

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected