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

Method setGPIOpins

libraries/MCP_ADC/MCP_ADC.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63#if defined(ESP32)
64void MCP_ADC::setGPIOpins(uint8_t clk, uint8_t miso, uint8_t mosi, uint8_t select)
65{
66 _clock = clk;
67 _dataIn = miso;
68 _dataOut = mosi;
69 _select = select;
70 pinMode(_select, OUTPUT);
71 digitalWrite(_select, HIGH);
72
73 mySPI->end(); // disable SPI
74 mySPI->begin(clk, miso, mosi, select);
75}
76#endif
77
78

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected