MCPcopy Create free account
hub / github.com/cifertech/nRFBox / jammerSetup

Function jammerSetup

nRFBox/jammer.cpp:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101void jammerSetup() {
102
103 Serial.begin(115200);
104
105 pinMode(BT1, INPUT_PULLUP);
106 pinMode(BT2, INPUT_PULLUP);
107
108 SPI.begin();
109 SPI.setDataMode(SPI_MODE0);
110 SPI.setBitOrder(MSBFIRST);
111 SPI.setClockDivider(SPI_CLOCK_DIV2);
112
113 pinMode(9, OUTPUT);
114 digitalWrite(9, LOW);
115
116 pinMode(10, OUTPUT);
117 digitalWrite(10, HIGH);
118
119}
120
121
122void jammerLoop() {

Callers 1

menuSetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected