powerOn.ino example

Testing sketch that simply turns on power to the sensors on the Mayfly.

Testing sketch that simply turns on power to the sensors on the Mayfly.

1/** =========================================================================
2 * @example{lineno} powerOn.ino
3 * @brief Testing sketch that simply turns on power to the sensors on the
4 * Mayfly.
5 *
6 * @m_examplenavigation{page_extra_helper_sketches,}
7 * ======================================================================= */
8
9#include <Arduino.h>
10
11int8_t powerPin = 22;
12
13void setup() {
14 pinMode(powerPin, OUTPUT);
15 digitalWrite(powerPin, HIGH);
16 pinMode(A5, OUTPUT);
17 digitalWrite(A5, HIGH);
18 pinMode(10, OUTPUT);
19 digitalWrite(10, HIGH);
20}
21
22void loop() {}